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