Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1 | # Copyright (c) 2018 Cisco and/or its affiliates. |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | # you may not use this file except in compliance with the License. |
| 4 | # You may obtain a copy of the License at: |
| 5 | # |
| 6 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 8 | # Unless required by applicable law or agreed to in writing, software |
| 9 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | # See the License for the specific language governing permissions and |
| 12 | # limitations under the License. |
| 13 | |
| 14 | add_definitions (-DWITH_LIBSSL=1) |
Damjan Marion | d16004d | 2018-08-26 10:14:52 +0200 | [diff] [blame] | 15 | include_directories(${OPENSSL_INCLUDE_DIR}) |
| 16 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 17 | unset(VNET_SOURCES) |
| 18 | unset(VNET_HEADERS) |
| 19 | unset(VNET_API_FILES) |
| 20 | unset(VNET_MULTIARCH_SOURCES) |
| 21 | |
| 22 | ############################################################################## |
| 23 | # Generic stuff |
| 24 | ############################################################################## |
| 25 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 26 | buffer.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 27 | config.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 28 | devices/devices.c |
| 29 | devices/netlink.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 30 | flow/flow.c |
| 31 | flow/flow_cli.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 32 | handoff.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 33 | interface.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 34 | interface_api.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 35 | interface_cli.c |
| 36 | interface_format.c |
| 37 | interface_output.c |
| 38 | interface_stats.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 39 | misc.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 40 | ) |
| 41 | |
| 42 | list(APPEND VNET_HEADERS |
| 43 | api_errno.h |
| 44 | buffer.h |
| 45 | config.h |
| 46 | devices/devices.h |
| 47 | devices/netlink.h |
| 48 | flow/flow.h |
| 49 | global_funcs.h |
| 50 | handoff.h |
| 51 | interface.h |
| 52 | interface_funcs.h |
| 53 | ip/ip4_to_ip6.h |
| 54 | ip/ip6_to_ip4.h |
| 55 | l3_types.h |
| 56 | plugin/plugin.h |
| 57 | pipeline.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 58 | vnet.h |
| 59 | vnet_all_api_h.h |
| 60 | vnet_msg_enum.h |
| 61 | util/radix.h |
| 62 | util/refcount.h |
| 63 | ) |
| 64 | |
| 65 | list(APPEND VNET_API_FILES interface.api) |
| 66 | |
| 67 | ############################################################################## |
| 68 | # Policer infra |
| 69 | ############################################################################## |
| 70 | list(APPEND VNET_SOURCES |
| 71 | policer/node_funcs.c |
| 72 | policer/policer.c |
| 73 | policer/xlate.c |
| 74 | policer/policer_api.c |
| 75 | ) |
| 76 | |
| 77 | list(APPEND VNET_HEADERS |
| 78 | policer/police.h |
| 79 | policer/policer.h |
| 80 | policer/xlate.h |
| 81 | ) |
| 82 | |
| 83 | list(APPEND VNET_API_FILES policer/policer.api) |
| 84 | |
| 85 | ############################################################################## |
| 86 | # Cop - junk filter |
| 87 | ############################################################################## |
| 88 | list(APPEND VNET_SOURCES |
| 89 | cop/cop.c |
| 90 | cop/node1.c |
| 91 | cop/ip4_whitelist.c |
| 92 | cop/ip6_whitelist.c |
| 93 | cop/cop_api.c |
| 94 | ) |
| 95 | |
| 96 | list(APPEND VNET_HEADERS |
| 97 | cop/cop.h |
| 98 | ) |
| 99 | |
| 100 | list(APPEND VNET_API_FILES cop/cop.api) |
| 101 | |
| 102 | ############################################################################## |
| 103 | # Layer 2 protocols go here |
| 104 | ############################################################################## |
| 105 | |
| 106 | ############################################################################## |
| 107 | # Layer 2 protocol: Ethernet |
| 108 | ############################################################################## |
| 109 | list(APPEND VNET_SOURCES |
Neale Ranns | de5b08f | 2018-08-29 06:37:18 -0700 | [diff] [blame] | 110 | ethernet/ethernet_types_api.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 111 | ethernet/format.c |
| 112 | ethernet/init.c |
| 113 | ethernet/interface.c |
Neale Ranns | de5b08f | 2018-08-29 06:37:18 -0700 | [diff] [blame] | 114 | ethernet/mac_address.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 115 | ethernet/node.c |
| 116 | ethernet/pg.c |
| 117 | ethernet/sfp.c |
| 118 | ethernet/p2p_ethernet.c |
| 119 | ethernet/p2p_ethernet_input.c |
| 120 | ethernet/p2p_ethernet_api.c |
| 121 | ) |
| 122 | |
Neale Ranns | eb1525f | 2018-09-09 04:41:02 -0400 | [diff] [blame] | 123 | list(APPEND VNET_MULTIARCH_SOURCES ethernet/node.c) |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 124 | |
| 125 | list(APPEND VNET_HEADERS |
| 126 | ethernet/error.def |
| 127 | ethernet/ethernet.h |
| 128 | ethernet/packet.h |
| 129 | ethernet/types.def |
| 130 | ethernet/sfp.h |
| 131 | ethernet/p2p_ethernet.h |
| 132 | ) |
| 133 | |
| 134 | list(APPEND VNET_API_FILES ethernet/p2p_ethernet.api) |
| 135 | |
| 136 | ############################################################################## |
| 137 | # Layer 2 protocol: Ethernet bridging |
| 138 | ############################################################################## |
| 139 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 140 | l2/feat_bitmap.c |
| 141 | l2/l2_api.c |
| 142 | l2/l2_bd.c |
| 143 | l2/l2_bvi.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 144 | l2/l2_input_classify.c |
| 145 | l2/l2_output_classify.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 146 | l2/l2_efp_filter.c |
| 147 | l2/l2_fib.c |
| 148 | l2/l2_flood.c |
| 149 | l2/l2_fwd.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 150 | l2/l2_input.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 151 | l2/l2_input_vtr.c |
| 152 | l2/l2_learn.c |
| 153 | l2/l2_output.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 154 | l2/l2_in_out_acl.c |
Andrew Yourtchenko | a23cade | 2018-10-06 09:18:00 +0200 | [diff] [blame] | 155 | l2/l2_in_out_feat_arc.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 156 | l2/l2_patch.c |
| 157 | l2/l2_rw.c |
Neale Ranns | b474380 | 2018-09-05 09:13:57 -0700 | [diff] [blame] | 158 | l2/l2_uu_fwd.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 159 | l2/l2_vtr.c |
| 160 | l2/l2_xcrw.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 161 | ) |
| 162 | |
Neale Ranns | c25eb45 | 2018-09-12 06:53:03 -0400 | [diff] [blame] | 163 | list(APPEND VNET_MULTIARCH_SOURCES |
| 164 | l2/l2_fwd.c |
| 165 | l2/l2_learn.c |
| 166 | l2/l2_output.c |
| 167 | ) |
Neale Ranns | eb1525f | 2018-09-09 04:41:02 -0400 | [diff] [blame] | 168 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 169 | list(APPEND VNET_HEADERS |
| 170 | l2/feat_bitmap.h |
| 171 | l2/l2_input.h |
| 172 | l2/l2_output.h |
| 173 | l2/l2_vtr.h |
| 174 | l2/l2_input_vtr.h |
| 175 | l2/l2_efp_filter.h |
| 176 | l2/l2_fwd.h |
| 177 | l2/l2_bd.h |
| 178 | l2/l2_bvi.h |
| 179 | l2/l2_flood.h |
| 180 | l2/l2_fib.h |
| 181 | l2/l2_rw.h |
| 182 | l2/l2_xcrw.h |
| 183 | l2/l2_classify.h |
| 184 | ) |
| 185 | |
| 186 | list(APPEND VNET_API_FILES l2/l2.api) |
| 187 | |
| 188 | ############################################################################## |
| 189 | # Layer 2 protocol: SRP |
| 190 | ############################################################################## |
| 191 | list(APPEND VNET_SOURCES |
| 192 | srp/format.c |
| 193 | srp/interface.c |
| 194 | srp/node.c |
| 195 | srp/pg.c |
| 196 | ) |
| 197 | |
| 198 | list(APPEND VNET_HEADERS |
| 199 | srp/packet.h |
| 200 | srp/srp.h |
| 201 | ) |
| 202 | |
| 203 | ############################################################################## |
| 204 | # Layer 2 protocol: PPP |
| 205 | ############################################################################## |
| 206 | list(APPEND VNET_SOURCES |
| 207 | ppp/node.c |
| 208 | ppp/pg.c |
| 209 | ppp/ppp.c |
| 210 | ) |
| 211 | |
| 212 | list(APPEND VNET_HEADERS |
| 213 | ppp/error.def |
| 214 | ppp/ppp.h |
| 215 | ppp/packet.h |
| 216 | ) |
| 217 | |
| 218 | ############################################################################## |
| 219 | # Layer 2 protocol: HDLC |
| 220 | ############################################################################## |
| 221 | list(APPEND VNET_SOURCES |
| 222 | hdlc/node.c |
| 223 | hdlc/pg.c |
| 224 | hdlc/hdlc.c |
| 225 | ) |
| 226 | |
| 227 | list(APPEND VNET_HEADERS |
| 228 | hdlc/error.def |
| 229 | hdlc/hdlc.h |
| 230 | hdlc/packet.h |
| 231 | ) |
| 232 | |
| 233 | ############################################################################## |
| 234 | # Layer 2 protocol: LLC |
| 235 | ############################################################################## |
| 236 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 237 | llc/llc.c |
| 238 | llc/node.c |
| 239 | llc/pg.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 240 | ) |
| 241 | |
| 242 | list(APPEND VNET_HEADERS |
| 243 | llc/llc.h |
| 244 | ) |
| 245 | |
| 246 | ############################################################################## |
| 247 | # Layer 2 protocol: SNAP |
| 248 | ############################################################################## |
| 249 | list(APPEND VNET_SOURCES |
| 250 | snap/snap.c |
| 251 | snap/node.c |
| 252 | snap/pg.c |
| 253 | ) |
| 254 | |
| 255 | list(APPEND VNET_HEADERS |
| 256 | snap/snap.h |
| 257 | ) |
| 258 | |
| 259 | ############################################################################## |
| 260 | # Layer 2 / vxlan |
| 261 | ############################################################################## |
| 262 | list(APPEND VNET_SOURCES |
| 263 | vxlan/vxlan.c |
| 264 | vxlan/encap.c |
| 265 | vxlan/decap.c |
| 266 | vxlan/vxlan_api.c |
| 267 | ) |
| 268 | |
| 269 | list(APPEND VNET_HEADERS |
| 270 | vxlan/vxlan.h |
| 271 | vxlan/vxlan_packet.h |
| 272 | vxlan/vxlan_error.def |
| 273 | ) |
| 274 | |
Eyal Bari | a5679e8 | 2018-08-26 15:20:07 +0300 | [diff] [blame] | 275 | list(APPEND VNET_MULTIARCH_SOURCES vxlan/decap.c) |
| 276 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 277 | list(APPEND VNET_API_FILES vxlan/vxlan.api) |
| 278 | |
| 279 | ############################################################################## |
| 280 | # Layer 2 / Geneve |
| 281 | ############################################################################## |
| 282 | list(APPEND VNET_SOURCES |
| 283 | geneve/geneve.c |
| 284 | geneve/encap.c |
| 285 | geneve/decap.c |
| 286 | geneve/geneve_api.c |
| 287 | ) |
| 288 | |
| 289 | list(APPEND VNET_HEADERS |
| 290 | geneve/geneve.h |
| 291 | geneve/geneve_packet.h |
| 292 | geneve/geneve_error.def |
| 293 | ) |
| 294 | |
| 295 | list(APPEND VNET_API_FILES geneve/geneve.api) |
| 296 | |
| 297 | ############################################################################## |
| 298 | # Layer 2 / Bonding |
| 299 | ############################################################################## |
| 300 | list(APPEND VNET_SOURCES |
| 301 | bonding/cli.c |
| 302 | bonding/node.c |
| 303 | bonding/device.c |
| 304 | bonding/bond_api.c |
| 305 | ) |
| 306 | |
| 307 | list(APPEND VNET_HEADERS |
| 308 | bonding/node.h |
| 309 | ) |
| 310 | |
Damjan Marion | cefe134 | 2018-09-21 18:11:33 +0200 | [diff] [blame] | 311 | list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c bonding/device.c) |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 312 | list(APPEND VNET_API_FILES bonding/bond.api) |
| 313 | |
| 314 | ############################################################################## |
| 315 | # Layer 2 / LLDP |
| 316 | ############################################################################## |
| 317 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 318 | lldp/lldp_input.c |
| 319 | lldp/lldp_node.c |
| 320 | lldp/lldp_output.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 321 | lldp/lldp_cli.c |
| 322 | lldp/lldp_api.c |
| 323 | ) |
| 324 | |
| 325 | list(APPEND VNET_HEADERS |
| 326 | lldp/lldp_protocol.h |
| 327 | lldp/lldp.h |
| 328 | ) |
| 329 | |
| 330 | list(APPEND VNET_API_FILES lldp/lldp.api) |
| 331 | |
| 332 | ############################################################################## |
| 333 | # Layer 2/3 "classify" |
| 334 | ############################################################################## |
| 335 | list(APPEND VNET_SOURCES |
| 336 | classify/vnet_classify.c |
| 337 | classify/ip_classify.c |
| 338 | classify/in_out_acl.c |
| 339 | classify/policer_classify.c |
| 340 | classify/flow_classify.c |
| 341 | classify/flow_classify_node.c |
| 342 | classify/vnet_classify.h |
| 343 | classify/classify_api.c |
| 344 | ) |
| 345 | |
| 346 | list(APPEND VNET_HEADERS |
| 347 | classify/vnet_classify.h |
| 348 | classify/in_out_acl.h |
| 349 | classify/policer_classify.h |
| 350 | classify/flow_classify.h |
| 351 | ) |
| 352 | |
| 353 | list(APPEND VNET_API_FILES classify/classify.api) |
| 354 | |
| 355 | ############################################################################## |
| 356 | # Layer 3 protocols go here |
| 357 | ############################################################################## |
| 358 | |
| 359 | ############################################################################## |
| 360 | # Layer 3 protocol: IP v4/v6 |
| 361 | ############################################################################## |
| 362 | list(APPEND VNET_SOURCES |
| 363 | ip/format.c |
| 364 | ip/icmp4.c |
| 365 | ip/icmp6.c |
| 366 | ip/ip46_cli.c |
| 367 | ip/ip_types_api.c |
| 368 | ip/ip4_format.c |
| 369 | ip/ip4_forward.c |
| 370 | ip/ip4_punt_drop.c |
| 371 | ip/ip4_input.c |
| 372 | ip/ip4_options.c |
| 373 | ip/ip4_mtrie.c |
| 374 | ip/ip4_pg.c |
| 375 | ip/ip4_source_and_port_range_check.c |
| 376 | ip/ip4_source_check.c |
| 377 | ip/ip4_reassembly.c |
| 378 | ip/ip6_format.c |
| 379 | ip/ip6_forward.c |
| 380 | ip/ip6_ll_table.c |
| 381 | ip/ip6_ll_types.c |
| 382 | ip/ip6_punt_drop.c |
| 383 | ip/ip6_hop_by_hop.c |
| 384 | ip/ip6_input.c |
| 385 | ip/ip6_neighbor.c |
| 386 | ip/ip6_pg.c |
| 387 | ip/ip6_reassembly.c |
| 388 | ip/rd_cp.c |
| 389 | ip/ip_neighbor.c |
| 390 | ip/ip_api.c |
| 391 | ip/ip_checksum.c |
| 392 | ip/ip_frag.c |
| 393 | ip/ip.c |
| 394 | ip/ip_init.c |
| 395 | ip/ip_in_out_acl.c |
| 396 | ip/lookup.c |
| 397 | ip/ping.c |
| 398 | ip/punt_api.c |
| 399 | ip/punt.c |
| 400 | ) |
| 401 | |
| 402 | list(APPEND VNET_HEADERS |
| 403 | ip/format.h |
| 404 | ip/icmp46_packet.h |
| 405 | ip/icmp4.h |
| 406 | ip/icmp6.h |
| 407 | ip/igmp_packet.h |
| 408 | ip/ip4_error.h |
| 409 | ip/ip4.h |
| 410 | ip/ip4_mtrie.h |
| 411 | ip/ip4_packet.h |
| 412 | ip/ip6_error.h |
| 413 | ip/ip6.h |
| 414 | ip/ip6_hop_by_hop.h |
| 415 | ip/ip6_hop_by_hop_packet.h |
| 416 | ip/ip6_packet.h |
| 417 | ip/ip6_neighbor.h |
| 418 | ip/ip.h |
| 419 | ip/ip_packet.h |
| 420 | ip/ip_source_and_port_range_check.h |
| 421 | ip/ip_neighbor.h |
| 422 | ip/lookup.h |
| 423 | ip/ports.def |
| 424 | ip/protocols.def |
| 425 | ip/punt_error.def |
| 426 | ip/punt.h |
| 427 | ) |
| 428 | |
| 429 | list(APPEND VNET_API_FILES |
| 430 | ip/ip.api |
| 431 | ip/rd_cp.api |
| 432 | ip/punt.api |
| 433 | ) |
| 434 | |
| 435 | list(APPEND VNET_MULTIARCH_SOURCES ip/ip4_forward.c ip/ip4_input.c) |
| 436 | |
| 437 | ############################################################################## |
| 438 | # Layer 2/3 ARP |
| 439 | ############################################################################## |
| 440 | list(APPEND VNET_SOURCES |
| 441 | ethernet/arp.c |
| 442 | ) |
| 443 | |
| 444 | list(APPEND VNET_HEADERS |
| 445 | ethernet/arp_packet.h |
| 446 | ethernet/arp.h |
| 447 | ) |
| 448 | |
| 449 | ############################################################################## |
| 450 | # Bidirectional Forwarding Detection |
| 451 | ############################################################################## |
| 452 | |
| 453 | list(APPEND VNET_HEADERS |
| 454 | bfd/bfd_protocol.h |
| 455 | bfd/bfd_main.h |
| 456 | bfd/bfd_api.h |
| 457 | bfd/bfd_udp.h |
| 458 | ) |
| 459 | |
| 460 | list(APPEND VNET_SOURCES |
| 461 | bfd/bfd_api.h |
| 462 | bfd/bfd_udp.c |
| 463 | bfd/bfd_main.c |
| 464 | bfd/bfd_protocol.c |
| 465 | bfd/bfd_cli.c |
| 466 | bfd/bfd_api.c |
| 467 | ) |
| 468 | |
| 469 | list(APPEND VNET_API_FILES bfd/bfd.api) |
| 470 | |
| 471 | ############################################################################## |
| 472 | # Layer 3 protocol: IPSec |
| 473 | ############################################################################## |
| 474 | list(APPEND VNET_SOURCES |
| 475 | ipsec/ipsec.c |
| 476 | ipsec/ipsec_cli.c |
| 477 | ipsec/ipsec_format.c |
| 478 | ipsec/ipsec_input.c |
| 479 | ipsec/ipsec_if.c |
| 480 | ipsec/ipsec_if_in.c |
| 481 | ipsec/esp_format.c |
| 482 | ipsec/esp_encrypt.c |
| 483 | ipsec/esp_decrypt.c |
| 484 | ipsec/ah_decrypt.c |
| 485 | ipsec/ah_encrypt.c |
| 486 | ipsec/ikev2.c |
| 487 | ipsec/ikev2_crypto.c |
| 488 | ipsec/ikev2_cli.c |
| 489 | ipsec/ikev2_payload.c |
| 490 | ipsec/ikev2_format.c |
| 491 | ipsec/ipsec_api.c |
| 492 | ) |
| 493 | |
Klement Sekera | b8f3544 | 2018-10-29 13:38:19 +0100 | [diff] [blame] | 494 | list(APPEND VNET_MULTIARCH_SOURCES |
| 495 | ipsec/esp_encrypt.c |
| 496 | ipsec/esp_decrypt.c |
| 497 | ipsec/ah_decrypt.c |
| 498 | ipsec/ah_encrypt.c |
| 499 | ) |
| 500 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 501 | list(APPEND VNET_API_FILES ipsec/ipsec.api) |
| 502 | |
| 503 | list(APPEND VNET_SOURCES |
| 504 | ipsec/ipsec_output.c |
| 505 | ) |
| 506 | |
| 507 | list(APPEND VNET_HEADERS |
| 508 | ipsec/ipsec.h |
| 509 | ipsec/esp.h |
| 510 | ipsec/ah.h |
| 511 | ipsec/ikev2.h |
| 512 | ipsec/ikev2_priv.h |
| 513 | ) |
| 514 | |
| 515 | ############################################################################## |
| 516 | # Layer 3 protocol: osi |
| 517 | ############################################################################## |
| 518 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 519 | osi/node.c |
| 520 | osi/osi.c |
| 521 | osi/pg.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 522 | ) |
| 523 | |
| 524 | list(APPEND VNET_HEADERS |
| 525 | osi/osi.h |
| 526 | ) |
| 527 | |
| 528 | ############################################################################## |
| 529 | # Layer 4 protocol: tcp |
| 530 | ############################################################################## |
| 531 | list(APPEND VNET_SOURCES |
| 532 | tcp/tcp_api.c |
| 533 | tcp/tcp_format.c |
| 534 | tcp/tcp_pg.c |
| 535 | tcp/tcp_syn_filter4.c |
| 536 | tcp/tcp_output.c |
| 537 | tcp/tcp_input.c |
| 538 | tcp/tcp_newreno.c |
| 539 | tcp/tcp.c |
| 540 | ) |
| 541 | |
| 542 | list(APPEND VNET_HEADERS |
| 543 | tcp/tcp_packet.h |
| 544 | tcp/tcp_timer.h |
| 545 | tcp/tcp_debug.h |
| 546 | tcp/tcp.h |
| 547 | tcp/tcp_error.def |
| 548 | ) |
| 549 | |
| 550 | list(APPEND VNET_API_FILES tcp/tcp.api) |
| 551 | |
| 552 | ############################################################################## |
| 553 | # Layer 4 protocol: udp |
| 554 | ############################################################################## |
| 555 | list(APPEND VNET_SOURCES |
| 556 | udp/udp.c |
| 557 | udp/udp_input.c |
| 558 | udp/udp_format.c |
| 559 | udp/udp_local.c |
| 560 | udp/udp_pg.c |
| 561 | udp/udp_encap_node.c |
| 562 | udp/udp_encap.c |
| 563 | udp/udp_api.c |
| 564 | ) |
| 565 | |
| 566 | list(APPEND VNET_HEADERS |
| 567 | udp/udp_error.def |
| 568 | udp/udp.h |
| 569 | udp/udp_packet.h |
| 570 | ) |
| 571 | |
| 572 | list(APPEND VNET_API_FILES udp/udp.api) |
| 573 | |
| 574 | ############################################################################## |
| 575 | # Layer 4 protocol: sctp |
| 576 | ############################################################################## |
| 577 | list(APPEND VNET_SOURCES |
| 578 | sctp/sctp_api.c |
| 579 | sctp/sctp.c |
| 580 | sctp/sctp_pg.c |
| 581 | sctp/sctp_input.c |
| 582 | sctp/sctp_output.c |
| 583 | sctp/sctp_format.c |
| 584 | ) |
| 585 | |
| 586 | list(APPEND VNET_HEADERS |
| 587 | sctp/sctp_error.def |
| 588 | sctp/sctp_packet.h |
| 589 | sctp/sctp_timer.h |
| 590 | sctp/sctp.h |
| 591 | ) |
| 592 | |
| 593 | list(APPEND VNET_API_FILES sctp/sctp.api) |
| 594 | |
| 595 | ############################################################################## |
| 596 | # Tunnel protocol: gre |
| 597 | ############################################################################## |
| 598 | list(APPEND VNET_SOURCES |
| 599 | gre/gre.c |
| 600 | gre/node.c |
| 601 | gre/interface.c |
| 602 | gre/pg.c |
| 603 | gre/gre_api.c |
| 604 | ) |
| 605 | |
| 606 | list(APPEND VNET_HEADERS |
| 607 | gre/gre.h |
| 608 | gre/packet.h |
| 609 | gre/error.def |
| 610 | ) |
| 611 | |
| 612 | list(APPEND VNET_API_FILES gre/gre.api) |
| 613 | |
| 614 | ############################################################################## |
| 615 | # Tunnel protocol: ipip |
| 616 | ############################################################################## |
| 617 | list(APPEND VNET_SOURCES |
| 618 | ipip/ipip.c |
| 619 | ipip/node.c |
| 620 | ipip/sixrd.c |
| 621 | ipip/ipip_api.c |
| 622 | ipip/ipip_cli.c |
| 623 | ) |
| 624 | |
| 625 | list(APPEND VNET_HEADERS |
| 626 | ipip/ipip.h |
| 627 | ) |
| 628 | |
| 629 | list(APPEND VNET_API_FILES ipip/ipip.api) |
| 630 | |
| 631 | ############################################################################## |
| 632 | # Tunnel protocol: l2tpv3 |
| 633 | ############################################################################## |
| 634 | list(APPEND VNET_SOURCES |
| 635 | l2tp/l2tp.c |
| 636 | l2tp/encap.c |
| 637 | l2tp/decap.c |
| 638 | l2tp/pg.c |
| 639 | l2tp/l2tp_api.c |
| 640 | ) |
| 641 | |
| 642 | list(APPEND VNET_HEADERS |
| 643 | l2tp/l2tp.h |
| 644 | l2tp/packet.h |
| 645 | ) |
| 646 | |
| 647 | list(APPEND VNET_API_FILES l2tp/l2tp.api) |
| 648 | |
| 649 | ############################################################################## |
| 650 | # Tunnel protocol: gre+mpls |
| 651 | ############################################################################## |
| 652 | list(APPEND VNET_SOURCES |
| 653 | mpls/mpls.c |
| 654 | mpls/mpls_lookup.c |
| 655 | mpls/mpls_output.c |
| 656 | mpls/mpls_features.c |
| 657 | mpls/mpls_input.c |
| 658 | mpls/interface.c |
| 659 | mpls/mpls_tunnel.c |
| 660 | mpls/pg.c |
| 661 | mpls/mpls_api.c |
| 662 | ) |
| 663 | |
| 664 | list(APPEND VNET_HEADERS |
| 665 | mpls/mpls.h |
| 666 | mpls/mpls_types.h |
| 667 | mpls/mpls_tunnel.h |
| 668 | mpls/packet.h |
| 669 | mpls/error.def |
| 670 | ) |
| 671 | |
| 672 | list(APPEND VNET_API_FILES mpls/mpls.api) |
| 673 | |
| 674 | ############################################################################## |
Mohsin Kazmi | 61b94c6 | 2018-08-20 18:32:39 +0200 | [diff] [blame] | 675 | # Tunnel protocol: vxlan-gbp |
| 676 | ############################################################################## |
| 677 | list(APPEND VNET_SOURCES |
| 678 | vxlan-gbp/decap.c |
| 679 | vxlan-gbp/encap.c |
| 680 | vxlan-gbp/vxlan_gbp_api.c |
| 681 | vxlan-gbp/vxlan_gbp.c |
| 682 | ) |
| 683 | |
| 684 | list(APPEND VNET_HEADERS |
| 685 | vxlan-gbp/vxlan_gbp.h |
| 686 | vxlan-gbp/vxlan_gbp_packet.h |
| 687 | vxlan-gbp/vxlan_gbp_error.def |
| 688 | ) |
| 689 | |
| 690 | list(APPEND VNET_API_FILES vxlan-gbp/vxlan_gbp.api) |
| 691 | |
| 692 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 693 | # Tunnel protocol: vxlan-gpe |
| 694 | ############################################################################## |
| 695 | |
| 696 | list(APPEND VNET_SOURCES |
| 697 | vxlan-gpe/vxlan_gpe.c |
| 698 | vxlan-gpe/encap.c |
| 699 | vxlan-gpe/decap.c |
| 700 | vxlan-gpe/vxlan_gpe_api.c |
| 701 | ) |
| 702 | |
| 703 | list(APPEND VNET_HEADERS |
| 704 | vxlan-gpe/vxlan_gpe.h |
| 705 | vxlan-gpe/vxlan_gpe_packet.h |
| 706 | vxlan-gpe/vxlan_gpe_error.def |
| 707 | ) |
| 708 | |
| 709 | list(APPEND VNET_API_FILES vxlan-gpe/vxlan_gpe.api) |
| 710 | |
| 711 | ############################################################################## |
| 712 | # Tunnel protocol: ipsec+gre |
| 713 | ############################################################################## |
| 714 | list(APPEND VNET_SOURCES |
| 715 | ipsec-gre/ipsec_gre.c |
| 716 | ipsec-gre/node.c |
| 717 | ipsec-gre/interface.c |
| 718 | ipsec-gre/ipsec_gre_api.c |
| 719 | ) |
| 720 | |
| 721 | list(APPEND VNET_HEADERS |
| 722 | ipsec-gre/ipsec_gre.h |
| 723 | ipsec-gre/error.def |
| 724 | ) |
| 725 | |
| 726 | list(APPEND VNET_API_FILES ipsec-gre/ipsec_gre.api) |
| 727 | |
| 728 | ############################################################################## |
| 729 | # LISP control plane: lisp-cp |
| 730 | ############################################################################## |
| 731 | |
| 732 | list(APPEND VNET_SOURCES |
| 733 | lisp-cp/lisp_types.c |
| 734 | lisp-cp/lisp_cp_dpo.c |
| 735 | lisp-cp/control.c |
| 736 | lisp-cp/gid_dictionary.c |
| 737 | lisp-cp/lisp_msg_serdes.c |
| 738 | lisp-cp/packets.c |
| 739 | lisp-cp/one_cli.c |
| 740 | lisp-cp/lisp_cli.c |
| 741 | lisp-cp/one_api.c |
| 742 | lisp-cp/lisp_api.c |
| 743 | ) |
| 744 | |
| 745 | list(APPEND VNET_HEADERS |
| 746 | lisp-cp/lisp_types.h |
| 747 | lisp-cp/packets.h |
| 748 | lisp-cp/gid_dictionary.h |
| 749 | lisp-cp/lisp_cp_messages.h |
| 750 | lisp-cp/lisp_msg_serdes.h |
| 751 | lisp-cp/control.h |
| 752 | ) |
| 753 | |
| 754 | list(APPEND VNET_API_FILES lisp-cp/lisp.api) |
| 755 | list(APPEND VNET_API_FILES lisp-cp/one.api) |
| 756 | |
| 757 | ############################################################################## |
| 758 | # Tunnel protocol: lisp-gpe |
| 759 | ############################################################################## |
| 760 | |
| 761 | list(APPEND VNET_SOURCES |
| 762 | lisp-gpe/lisp_gpe.c |
| 763 | lisp-gpe/lisp_gpe_sub_interface.c |
| 764 | lisp-gpe/lisp_gpe_adjacency.c |
| 765 | lisp-gpe/lisp_gpe_tunnel.c |
| 766 | lisp-gpe/lisp_gpe_fwd_entry.c |
| 767 | lisp-gpe/lisp_gpe_tenant.c |
| 768 | lisp-gpe/interface.c |
| 769 | lisp-gpe/decap.c |
| 770 | lisp-gpe/lisp_gpe_api.c |
| 771 | ) |
| 772 | |
| 773 | list(APPEND VNET_HEADERS |
| 774 | lisp-gpe/lisp_gpe.h |
| 775 | lisp-gpe/lisp_gpe_fwd_entry.h |
| 776 | lisp-gpe/lisp_gpe_tenant.h |
| 777 | lisp-gpe/lisp_gpe_packet.h |
| 778 | lisp-gpe/lisp_gpe_error.def |
| 779 | ) |
| 780 | |
| 781 | list(APPEND VNET_API_FILES lisp-gpe/lisp_gpe.api) |
| 782 | |
| 783 | ############################################################################## |
| 784 | # DHCP client |
| 785 | ############################################################################## |
| 786 | list(APPEND VNET_SOURCES |
| 787 | dhcp/client.c |
| 788 | dhcp/dhcp_client_detect.c |
| 789 | dhcp/dhcp6_client_common_dp.c |
| 790 | dhcp/dhcp6_pd_client_dp.c |
| 791 | dhcp/dhcp6_pd_client_cp.c |
| 792 | dhcp/dhcp6_ia_na_client_dp.c |
| 793 | dhcp/dhcp6_ia_na_client_cp.c |
| 794 | dhcp/dhcp_api.c |
| 795 | ) |
| 796 | |
| 797 | list(APPEND VNET_HEADERS |
| 798 | dhcp/client.h |
| 799 | dhcp/dhcp6_client_common_dp.h |
| 800 | dhcp/dhcp6_pd_client_dp.h |
| 801 | dhcp/dhcp6_ia_na_client_dp.h |
| 802 | ) |
| 803 | |
| 804 | list(APPEND VNET_API_FILES |
| 805 | dhcp/dhcp.api |
| 806 | dhcp/dhcp6_pd_client_cp.api |
| 807 | dhcp/dhcp6_ia_na_client_cp.api |
| 808 | ) |
| 809 | |
| 810 | ############################################################################## |
| 811 | # DHCP proxy |
| 812 | ############################################################################## |
| 813 | list(APPEND VNET_SOURCES |
| 814 | dhcp/dhcp6_proxy_node.c |
| 815 | dhcp/dhcp4_proxy_node.c |
| 816 | dhcp/dhcp_proxy.c |
| 817 | ) |
| 818 | |
| 819 | list(APPEND VNET_HEADERS |
| 820 | dhcp/dhcp4_packet.h |
| 821 | dhcp/dhcp6_packet.h |
| 822 | dhcp/dhcp_proxy.h |
| 823 | dhcp/dhcp6_proxy_error.def |
| 824 | dhcp/dhcp4_proxy_error.def |
| 825 | ) |
| 826 | |
| 827 | ############################################################################## |
| 828 | # ipv6 segment routing |
| 829 | ############################################################################## |
| 830 | |
| 831 | list(APPEND VNET_SOURCES |
| 832 | srv6/sr.c |
| 833 | srv6/sr_localsid.c |
| 834 | srv6/sr_policy_rewrite.c |
| 835 | srv6/sr_steering.c |
| 836 | srv6/sr_api.c |
| 837 | ) |
| 838 | |
| 839 | list(APPEND VNET_HEADERS |
| 840 | srv6/sr_packet.h |
| 841 | srv6/sr.h |
| 842 | ) |
| 843 | |
| 844 | list(APPEND VNET_API_FILES srv6/sr.api) |
| 845 | |
| 846 | ############################################################################## |
| 847 | # mpls segment routing |
| 848 | ############################################################################## |
| 849 | |
| 850 | list(APPEND VNET_SOURCES |
| 851 | srmpls/sr_mpls_policy.c |
| 852 | srmpls/sr_mpls_steering.c |
| 853 | srmpls/sr_mpls_api.c |
| 854 | ) |
| 855 | |
| 856 | list(APPEND VNET_HEADERS |
| 857 | srmpls/sr_mpls.h |
| 858 | ) |
| 859 | |
| 860 | list(APPEND VNET_API_FILES srmpls/sr_mpls.api) |
| 861 | |
| 862 | ############################################################################## |
| 863 | # IPFIX / netflow v10 |
| 864 | ############################################################################## |
| 865 | list(APPEND VNET_SOURCES |
| 866 | ipfix-export/flow_report.c |
| 867 | ipfix-export/flow_api.c |
| 868 | ) |
| 869 | |
| 870 | list(APPEND VNET_HEADERS |
| 871 | ipfix-export/flow_report.h |
| 872 | ipfix-export/ipfix_info_elements.h |
| 873 | ipfix-export/ipfix_packet.h |
| 874 | ) |
| 875 | |
| 876 | list(APPEND VNET_API_FILES ipfix-export/ipfix_export.api) |
| 877 | |
| 878 | ############################################################################## |
| 879 | # IPFIX classify code |
| 880 | ############################################################################## |
| 881 | |
| 882 | list(APPEND VNET_SOURCES |
| 883 | ipfix-export/flow_report_classify.c |
| 884 | ) |
| 885 | |
| 886 | list(APPEND VNET_HEADERS |
| 887 | ipfix-export/flow_report_classify.h |
| 888 | ) |
| 889 | |
| 890 | ############################################################################## |
| 891 | # lawful intercept |
| 892 | ############################################################################## |
| 893 | |
| 894 | list(APPEND VNET_SOURCES |
| 895 | lawful-intercept/lawful_intercept.c |
| 896 | lawful-intercept/node.c |
| 897 | ) |
| 898 | |
| 899 | list(APPEND VNET_HEADERS |
| 900 | lawful-intercept/lawful_intercept.h |
| 901 | ) |
| 902 | |
| 903 | ############################################################################## |
| 904 | # SPAN (port mirroring) |
| 905 | ############################################################################## |
| 906 | |
| 907 | list(APPEND VNET_SOURCES |
| 908 | span/span_api.c |
| 909 | span/span.c |
| 910 | span/node.c |
| 911 | ) |
| 912 | |
| 913 | list(APPEND VNET_HEADERS |
| 914 | span/span.h |
| 915 | ) |
| 916 | |
| 917 | list(APPEND VNET_API_FILES span/span.api) |
| 918 | |
| 919 | ############################################################################## |
| 920 | # DNS proxy, API |
| 921 | ############################################################################## |
| 922 | list(APPEND VNET_SOURCES |
| 923 | dns/dns.c |
| 924 | dns/dns.h |
| 925 | dns/dns_packet.h |
| 926 | dns/reply_node.c |
| 927 | dns/request_node.c |
| 928 | dns/resolver_process.c |
| 929 | ) |
| 930 | |
| 931 | list(APPEND VNET_HEADERS |
| 932 | dns/dns.h |
| 933 | ) |
| 934 | |
| 935 | list(APPEND VNET_API_FILES dns/dns.api) |
| 936 | |
| 937 | ############################################################################## |
| 938 | # Packet generator |
| 939 | ############################################################################## |
| 940 | |
| 941 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 942 | pg/cli.c |
| 943 | pg/edit.c |
| 944 | pg/init.c |
| 945 | pg/input.c |
| 946 | pg/output.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 947 | pg/stream.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 948 | pg/pg_api.c |
| 949 | ) |
| 950 | |
| 951 | list(APPEND VNET_HEADERS |
| 952 | pg/pg.h |
| 953 | pg/edit.h |
| 954 | ) |
| 955 | |
| 956 | list(APPEND VNET_API_FILES pg/pg.api) |
| 957 | |
| 958 | ############################################################################## |
| 959 | # virtio |
| 960 | ############################################################################## |
| 961 | |
| 962 | list(APPEND VNET_SOURCES |
| 963 | devices/virtio/device.c |
| 964 | devices/virtio/node.c |
| 965 | devices/virtio/vhost_user.c |
| 966 | devices/virtio/vhost_user_input.c |
| 967 | devices/virtio/vhost_user_output.c |
| 968 | devices/virtio/vhost_user_api.c |
| 969 | devices/virtio/virtio.c |
| 970 | ) |
| 971 | |
| 972 | list(APPEND VNET_HEADERS |
| 973 | devices/virtio/virtio.h |
| 974 | devices/virtio/vhost_user.h |
| 975 | ) |
| 976 | |
| 977 | list(APPEND VNET_MULTIARCH_SOURCES |
| 978 | devices/virtio/vhost_user_input.c |
| 979 | devices/virtio/vhost_user_output.c |
| 980 | ) |
| 981 | |
| 982 | list(APPEND VNET_API_FILES devices/virtio/vhost_user.api) |
| 983 | |
| 984 | ############################################################################## |
| 985 | # tap interface (with virtio backend) |
| 986 | ############################################################################## |
| 987 | |
| 988 | list(APPEND VNET_SOURCES |
| 989 | devices/tap/cli.c |
| 990 | devices/tap/tap.c |
| 991 | devices/tap/tapv2_api.c |
| 992 | ) |
| 993 | |
| 994 | list(APPEND VNET_HEADERS |
| 995 | devices/tap/tap.h |
| 996 | ) |
| 997 | |
| 998 | list(APPEND VNET_API_FILES devices/tap/tapv2.api) |
| 999 | |
| 1000 | ############################################################################## |
| 1001 | # tap interface (with virtio backend) |
| 1002 | ############################################################################## |
| 1003 | |
| 1004 | list(APPEND VNET_SOURCES |
| 1005 | devices/pipe/pipe_api.c |
| 1006 | devices/pipe/pipe.c |
| 1007 | ) |
| 1008 | |
| 1009 | list(APPEND VNET_HEADERS |
| 1010 | devices/pipe/pipe.h |
| 1011 | ) |
| 1012 | |
| 1013 | list(APPEND VNET_API_FILES devices/pipe/pipe.api) |
| 1014 | |
| 1015 | ############################################################################## |
| 1016 | # session managmeent |
| 1017 | ############################################################################## |
| 1018 | |
| 1019 | list(APPEND VNET_SOURCES |
| 1020 | session/session.c |
| 1021 | session/session_table.c |
| 1022 | session/session_rules_table.c |
| 1023 | session/session_lookup.c |
| 1024 | session/session_node.c |
| 1025 | session/transport.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1026 | session/application.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1027 | session/session_cli.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1028 | session/application_interface.c |
| 1029 | session/application_namespace.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1030 | session/segment_manager.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1031 | session/session_api.c |
| 1032 | ) |
| 1033 | |
| 1034 | list(APPEND VNET_HEADERS |
| 1035 | session/session.h |
| 1036 | session/session_table.h |
| 1037 | session/session_rules_table.h |
| 1038 | session/stream_session.h |
| 1039 | session/session_lookup.h |
| 1040 | session/application.h |
| 1041 | session/transport.h |
| 1042 | session/transport_interface.h |
| 1043 | session/application_interface.h |
| 1044 | session/application_namespace.h |
| 1045 | session/session_debug.h |
| 1046 | session/segment_manager.h |
| 1047 | session/mma_template.h |
| 1048 | session/mma_template.c |
| 1049 | session/mma_16.h |
| 1050 | session/mma_40.h |
| 1051 | ) |
| 1052 | |
| 1053 | list(APPEND VNET_API_FILES session/session.api) |
| 1054 | |
| 1055 | ############################################################################## |
| 1056 | # session layer applications |
| 1057 | ############################################################################## |
| 1058 | |
| 1059 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1060 | session-apps/echo_client.c |
| 1061 | session-apps/echo_server.c |
| 1062 | session-apps/http_server.c |
| 1063 | session-apps/proxy.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1064 | ) |
| 1065 | |
| 1066 | list(APPEND VNET_HEADERS |
| 1067 | session-apps/echo_client.h |
| 1068 | session-apps/proxy.h |
| 1069 | ) |
| 1070 | |
| 1071 | ############################################################################## |
| 1072 | # TLS protocol |
| 1073 | ############################################################################## |
| 1074 | |
| 1075 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1076 | tls/tls.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1077 | ) |
| 1078 | |
| 1079 | list(APPEND VNET_HEADERS |
| 1080 | tls/tls.h |
| 1081 | ) |
| 1082 | |
| 1083 | ############################################################################## |
| 1084 | # Linux packet interface |
| 1085 | ############################################################################## |
| 1086 | |
| 1087 | list(APPEND VNET_SOURCES |
| 1088 | devices/af_packet/af_packet.c |
| 1089 | devices/af_packet/device.c |
| 1090 | devices/af_packet/node.c |
| 1091 | devices/af_packet/cli.c |
| 1092 | devices/af_packet/af_packet_api.c |
| 1093 | ) |
| 1094 | |
| 1095 | list(APPEND VNET_HEADERS |
| 1096 | devices/af_packet/af_packet.h |
| 1097 | ) |
| 1098 | |
| 1099 | list(APPEND VNET_API_FILES devices/af_packet/af_packet.api) |
| 1100 | |
| 1101 | ############################################################################## |
| 1102 | # NETMAP interface |
| 1103 | ############################################################################## |
| 1104 | |
| 1105 | list(APPEND VNET_SOURCES |
| 1106 | devices/netmap/netmap.c |
| 1107 | devices/netmap/device.c |
| 1108 | devices/netmap/node.c |
| 1109 | devices/netmap/cli.c |
| 1110 | devices/netmap/netmap_api.c |
| 1111 | ) |
| 1112 | |
| 1113 | list(APPEND VNET_HEADERS |
| 1114 | devices/netmap/netmap.h |
| 1115 | ) |
| 1116 | |
| 1117 | list(APPEND VNET_API_FILES devices/netmap/netmap.api) |
| 1118 | |
| 1119 | ############################################################################## |
| 1120 | # Driver feature graph arc support |
| 1121 | ############################################################################## |
| 1122 | |
| 1123 | list(APPEND VNET_SOURCES |
| 1124 | feature/feature.c |
| 1125 | feature/feature_api.c |
| 1126 | feature/registration.c |
| 1127 | ) |
| 1128 | |
| 1129 | list(APPEND VNET_HEADERS |
| 1130 | feature/feature.h |
| 1131 | ) |
| 1132 | |
| 1133 | list(APPEND VNET_API_FILES feature/feature.api) |
| 1134 | |
| 1135 | ############################################################################## |
| 1136 | # Unix kernel related |
| 1137 | ############################################################################## |
| 1138 | |
| 1139 | # FIXME: unix/hgshm.c |
| 1140 | |
| 1141 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1142 | unix/gdb_funcs.c |
| 1143 | unix/pcap.c |
| 1144 | unix/tap_api.c |
| 1145 | unix/tapcli.c |
| 1146 | unix/tuntap.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1147 | ) |
| 1148 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1149 | list(APPEND VNET_HEADERS |
| 1150 | unix/pcap.h |
| 1151 | unix/tuntap.h |
| 1152 | unix/tapcli.h |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1153 | ) |
| 1154 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1155 | list(APPEND VNET_API_FILES unix/tap.api) |
| 1156 | |
| 1157 | ############################################################################## |
| 1158 | # FIB |
| 1159 | ############################################################################## |
| 1160 | |
| 1161 | list(APPEND VNET_SOURCES |
| 1162 | fib/fib.c |
| 1163 | fib/fib_test.c |
| 1164 | fib/ip4_fib.c |
| 1165 | fib/ip6_fib.c |
| 1166 | fib/mpls_fib.c |
| 1167 | fib/fib_table.c |
| 1168 | fib/fib_walk.c |
| 1169 | fib/fib_types.c |
| 1170 | fib/fib_node.c |
| 1171 | fib/fib_node_list.c |
| 1172 | fib/fib_entry.c |
| 1173 | fib/fib_entry_src.c |
| 1174 | fib/fib_entry_src_rr.c |
| 1175 | fib/fib_entry_src_interface.c |
| 1176 | fib/fib_entry_src_interpose.c |
| 1177 | fib/fib_entry_src_default_route.c |
| 1178 | fib/fib_entry_src_special.c |
| 1179 | fib/fib_entry_src_api.c |
| 1180 | fib/fib_entry_src_adj.c |
| 1181 | fib/fib_entry_src_mpls.c |
| 1182 | fib/fib_entry_src_lisp.c |
| 1183 | fib/fib_entry_cover.c |
| 1184 | fib/fib_entry_delegate.c |
| 1185 | fib/fib_path_list.c |
| 1186 | fib/fib_path.c |
| 1187 | fib/fib_path_ext.c |
| 1188 | fib/fib_urpf_list.c |
| 1189 | fib/fib_attached_export.c |
| 1190 | fib/fib_api.c |
| 1191 | fib/fib_bfd.c |
| 1192 | ) |
| 1193 | |
| 1194 | list(APPEND VNET_HEADERS |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1195 | fib/fib.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1196 | fib/fib_api.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1197 | fib/ip4_fib.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1198 | fib/ip6_fib.h |
| 1199 | fib/fib_types.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1200 | fib/fib_table.h |
| 1201 | fib/fib_node.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1202 | fib/fib_node_list.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1203 | fib/fib_entry.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1204 | fib/fib_entry_delegate.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1205 | ) |
| 1206 | |
| 1207 | ############################################################################## |
| 1208 | # ADJ |
| 1209 | ############################################################################## |
| 1210 | |
| 1211 | list(APPEND VNET_SOURCES |
| 1212 | adj/adj_nbr.c |
| 1213 | adj/adj_glean.c |
| 1214 | adj/adj_midchain.c |
| 1215 | adj/adj_mcast.c |
| 1216 | adj/adj_l2.c |
| 1217 | adj/adj_nsh.c |
| 1218 | adj/adj.c |
| 1219 | adj/rewrite.c |
| 1220 | adj/adj_bfd.c |
| 1221 | adj/adj_delegate.c |
| 1222 | ) |
| 1223 | |
| 1224 | list(APPEND VNET_HEADERS |
| 1225 | adj/adj.h |
| 1226 | adj/adj_types.h |
| 1227 | adj/adj_glean.h |
| 1228 | adj/adj_nsh.h |
| 1229 | adj/adj_nbr.h |
| 1230 | adj/rewrite.h |
| 1231 | ) |
| 1232 | |
| 1233 | ############################################################################## |
| 1234 | # Data-Plane Objects |
| 1235 | ############################################################################## |
| 1236 | |
| 1237 | list(APPEND VNET_SOURCES |
| 1238 | dpo/dpo.c |
| 1239 | dpo/drop_dpo.c |
| 1240 | dpo/ip_null_dpo.c |
| 1241 | dpo/ip6_ll_dpo.c |
| 1242 | dpo/punt_dpo.c |
| 1243 | dpo/receive_dpo.c |
| 1244 | dpo/load_balance.c |
| 1245 | dpo/load_balance_map.c |
| 1246 | dpo/lookup_dpo.c |
| 1247 | dpo/classify_dpo.c |
| 1248 | dpo/replicate_dpo.c |
| 1249 | dpo/interface_rx_dpo.c |
| 1250 | dpo/interface_tx_dpo.c |
| 1251 | dpo/mpls_disposition.c |
| 1252 | dpo/mpls_label_dpo.c |
| 1253 | dpo/l3_proxy_dpo.c |
| 1254 | dpo/dvr_dpo.c |
| 1255 | ) |
| 1256 | |
| 1257 | list(APPEND VNET_HEADERS |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1258 | dpo/load_balance.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1259 | dpo/drop_dpo.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1260 | dpo/lookup_dpo.h |
| 1261 | dpo/punt_dpo.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1262 | dpo/classify_dpo.h |
| 1263 | dpo/receive_dpo.h |
| 1264 | dpo/ip_null_dpo.h |
| 1265 | dpo/replicate_dpo.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1266 | dpo/dpo.h |
| 1267 | ) |
| 1268 | |
| 1269 | ############################################################################## |
| 1270 | # Multicast FIB |
| 1271 | ############################################################################## |
| 1272 | |
| 1273 | list(APPEND VNET_SOURCES |
| 1274 | mfib/mfib_test.c |
| 1275 | mfib/mfib_forward.c |
| 1276 | mfib/ip4_mfib.c |
| 1277 | mfib/ip6_mfib.c |
| 1278 | mfib/mfib_types.c |
| 1279 | mfib/mfib_signal.c |
| 1280 | mfib/mfib_itf.c |
| 1281 | mfib/mfib_entry.c |
| 1282 | mfib/mfib_table.c |
| 1283 | ) |
| 1284 | |
| 1285 | list(APPEND VNET_HEADERS |
| 1286 | mfib/ip4_mfib.h |
| 1287 | mfib/mfib_types.h |
| 1288 | mfib/mfib_table.h |
| 1289 | ) |
| 1290 | |
| 1291 | ############################################################################## |
| 1292 | # Utilities |
| 1293 | ############################################################################## |
| 1294 | |
| 1295 | list(APPEND VNET_SOURCES |
| 1296 | util/radix.c |
| 1297 | util/refcount.c |
Neale Ranns | c8352bc | 2018-08-29 10:23:58 -0700 | [diff] [blame] | 1298 | util/throttle.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1299 | util/trajectory.c |
| 1300 | ) |
| 1301 | |
Damjan Marion | ac5554c | 2018-08-30 22:56:59 +0200 | [diff] [blame] | 1302 | list(APPEND VNET_HEADERS |
| 1303 | util/throttle.h |
| 1304 | ) |
| 1305 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1306 | ############################################################################## |
| 1307 | # QoS |
| 1308 | ############################################################################## |
| 1309 | |
| 1310 | list(APPEND VNET_SOURCES |
| 1311 | qos/qos_types.c |
| 1312 | qos/qos_api.c |
| 1313 | qos/qos_egress_map.c |
| 1314 | qos/qos_record.c |
| 1315 | qos/qos_mark.c |
| 1316 | ) |
| 1317 | |
| 1318 | list(APPEND VNET_API_FILES qos/qos.api) |
| 1319 | |
| 1320 | ############################################################################## |
| 1321 | # BIER |
| 1322 | ############################################################################## |
| 1323 | |
| 1324 | list(APPEND VNET_SOURCES |
| 1325 | bier/bier_bit_string.c |
| 1326 | bier/bier_entry.c |
| 1327 | bier/bier_fmask.c |
| 1328 | bier/bier_fmask_db.c |
| 1329 | bier/bier_input.c |
| 1330 | bier/bier_lookup.c |
| 1331 | bier/bier_output.c |
| 1332 | bier/bier_table.c |
| 1333 | bier/bier_types.c |
| 1334 | bier/bier_test.c |
| 1335 | bier/bier_api.c |
| 1336 | bier/bier_drop.c |
| 1337 | bier/bier_update.c |
| 1338 | bier/bier_imp_node.c |
| 1339 | bier/bier_imp.c |
| 1340 | bier/bier_disp_entry.c |
| 1341 | bier/bier_disp_lookup_node.c |
| 1342 | bier/bier_disp_dispatch_node.c |
| 1343 | bier/bier_disp_table.c |
| 1344 | bier/bier_bift_table.c |
| 1345 | ) |
| 1346 | |
| 1347 | list(APPEND VNET_HEADERS |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1348 | bier/bier_types.h |
| 1349 | bier/bier_entry.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1350 | bier/bier_update.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1351 | bier/bier_table.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1352 | ) |
| 1353 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1354 | list(APPEND VNET_API_FILES bier/bier.api) |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1355 | |
Florin Coras | 41c9e04 | 2018-09-11 00:10:41 -0700 | [diff] [blame] | 1356 | ############################################################################## |
| 1357 | # VNET Library |
| 1358 | ############################################################################## |
| 1359 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1360 | add_vpp_library(vnet |
| 1361 | SOURCES ${VNET_SOURCES} |
| 1362 | MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES} |
| 1363 | INSTALL_HEADERS ${VNET_HEADERS} |
| 1364 | API_FILES ${VNET_API_FILES} |
| 1365 | LINK_LIBRARIES vppinfra svm vlib ${OPENSSL_LIBRARIES} |
| 1366 | DEPENDS api_headers |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1367 | ) |
Florin Coras | 41c9e04 | 2018-09-11 00:10:41 -0700 | [diff] [blame] | 1368 | |
| 1369 | ############################################################################## |
| 1370 | # Session echo apps |
| 1371 | ############################################################################## |
| 1372 | |
| 1373 | option(VPP_BUILD_SESSION_ECHO_APPS "Build session echo apps." ON) |
| 1374 | if(VPP_BUILD_SESSION_ECHO_APPS) |
| 1375 | add_vpp_executable(tcp_echo |
| 1376 | SOURCES ../tests/vnet/session/tcp_echo.c |
| 1377 | LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt |
| 1378 | DEPENDS api_headers |
| 1379 | NO_INSTALL |
| 1380 | ) |
| 1381 | add_vpp_executable(udp_echo |
| 1382 | SOURCES ../tests/vnet/session/udp_echo.c |
| 1383 | LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt |
| 1384 | DEPENDS api_headers |
| 1385 | NO_INSTALL |
| 1386 | ) |
| 1387 | endif(VPP_BUILD_SESSION_ECHO_APPS) |
| 1388 | |
Neale Ranns | c25eb45 | 2018-09-12 06:53:03 -0400 | [diff] [blame] | 1389 | ############################################################################## |