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