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