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