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