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 | |
| 437 | list(APPEND VNET_MULTIARCH_SOURCES ip/ip4_forward.c ip/ip4_input.c) |
| 438 | |
| 439 | ############################################################################## |
| 440 | # Layer 2/3 ARP |
| 441 | ############################################################################## |
| 442 | list(APPEND VNET_SOURCES |
| 443 | ethernet/arp.c |
| 444 | ) |
| 445 | |
| 446 | list(APPEND VNET_HEADERS |
| 447 | ethernet/arp_packet.h |
| 448 | ethernet/arp.h |
| 449 | ) |
| 450 | |
| 451 | ############################################################################## |
| 452 | # Bidirectional Forwarding Detection |
| 453 | ############################################################################## |
| 454 | |
| 455 | list(APPEND VNET_HEADERS |
| 456 | bfd/bfd_protocol.h |
| 457 | bfd/bfd_main.h |
| 458 | bfd/bfd_api.h |
| 459 | bfd/bfd_udp.h |
| 460 | ) |
| 461 | |
| 462 | list(APPEND VNET_SOURCES |
| 463 | bfd/bfd_api.h |
| 464 | bfd/bfd_udp.c |
| 465 | bfd/bfd_main.c |
| 466 | bfd/bfd_protocol.c |
| 467 | bfd/bfd_cli.c |
| 468 | bfd/bfd_api.c |
| 469 | ) |
| 470 | |
| 471 | list(APPEND VNET_API_FILES bfd/bfd.api) |
| 472 | |
| 473 | ############################################################################## |
| 474 | # Layer 3 protocol: IPSec |
| 475 | ############################################################################## |
| 476 | list(APPEND VNET_SOURCES |
| 477 | ipsec/ipsec.c |
| 478 | ipsec/ipsec_cli.c |
| 479 | ipsec/ipsec_format.c |
| 480 | ipsec/ipsec_input.c |
| 481 | ipsec/ipsec_if.c |
| 482 | ipsec/ipsec_if_in.c |
Neale Ranns | 999c8ee | 2019-02-01 03:31:24 -0800 | [diff] [blame] | 483 | ipsec/ipsec_sa.c |
| 484 | ipsec/ipsec_spd.c |
| 485 | ipsec/ipsec_spd_policy.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 486 | ipsec/esp_format.c |
| 487 | ipsec/esp_encrypt.c |
| 488 | ipsec/esp_decrypt.c |
| 489 | ipsec/ah_decrypt.c |
| 490 | ipsec/ah_encrypt.c |
| 491 | ipsec/ikev2.c |
| 492 | ipsec/ikev2_crypto.c |
| 493 | ipsec/ikev2_cli.c |
| 494 | ipsec/ikev2_payload.c |
| 495 | ipsec/ikev2_format.c |
| 496 | ipsec/ipsec_api.c |
| 497 | ) |
| 498 | |
Klement Sekera | b8f3544 | 2018-10-29 13:38:19 +0100 | [diff] [blame] | 499 | list(APPEND VNET_MULTIARCH_SOURCES |
| 500 | ipsec/esp_encrypt.c |
| 501 | ipsec/esp_decrypt.c |
| 502 | ipsec/ah_decrypt.c |
| 503 | ipsec/ah_encrypt.c |
| 504 | ) |
| 505 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 506 | list(APPEND VNET_API_FILES ipsec/ipsec.api) |
| 507 | |
| 508 | list(APPEND VNET_SOURCES |
| 509 | ipsec/ipsec_output.c |
| 510 | ) |
| 511 | |
| 512 | list(APPEND VNET_HEADERS |
| 513 | ipsec/ipsec.h |
| 514 | ipsec/esp.h |
| 515 | ipsec/ah.h |
| 516 | ipsec/ikev2.h |
| 517 | ipsec/ikev2_priv.h |
| 518 | ) |
| 519 | |
| 520 | ############################################################################## |
| 521 | # Layer 3 protocol: osi |
| 522 | ############################################################################## |
| 523 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 524 | osi/node.c |
| 525 | osi/osi.c |
| 526 | osi/pg.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 527 | ) |
| 528 | |
| 529 | list(APPEND VNET_HEADERS |
| 530 | osi/osi.h |
| 531 | ) |
| 532 | |
| 533 | ############################################################################## |
| 534 | # Layer 4 protocol: tcp |
| 535 | ############################################################################## |
| 536 | list(APPEND VNET_SOURCES |
| 537 | tcp/tcp_api.c |
| 538 | tcp/tcp_format.c |
| 539 | tcp/tcp_pg.c |
| 540 | tcp/tcp_syn_filter4.c |
| 541 | tcp/tcp_output.c |
| 542 | tcp/tcp_input.c |
| 543 | tcp/tcp_newreno.c |
Florin Coras | 2e31cc3 | 2018-09-25 14:00:34 -0700 | [diff] [blame] | 544 | tcp/tcp_cubic.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 545 | tcp/tcp.c |
| 546 | ) |
| 547 | |
| 548 | list(APPEND VNET_HEADERS |
| 549 | tcp/tcp_packet.h |
| 550 | tcp/tcp_timer.h |
| 551 | tcp/tcp_debug.h |
| 552 | tcp/tcp.h |
| 553 | tcp/tcp_error.def |
| 554 | ) |
| 555 | |
| 556 | list(APPEND VNET_API_FILES tcp/tcp.api) |
| 557 | |
| 558 | ############################################################################## |
| 559 | # Layer 4 protocol: udp |
| 560 | ############################################################################## |
| 561 | list(APPEND VNET_SOURCES |
| 562 | udp/udp.c |
| 563 | udp/udp_input.c |
| 564 | udp/udp_format.c |
| 565 | udp/udp_local.c |
| 566 | udp/udp_pg.c |
| 567 | udp/udp_encap_node.c |
| 568 | udp/udp_encap.c |
| 569 | udp/udp_api.c |
| 570 | ) |
| 571 | |
| 572 | list(APPEND VNET_HEADERS |
| 573 | udp/udp_error.def |
| 574 | udp/udp.h |
| 575 | udp/udp_packet.h |
| 576 | ) |
| 577 | |
| 578 | list(APPEND VNET_API_FILES udp/udp.api) |
| 579 | |
| 580 | ############################################################################## |
| 581 | # Layer 4 protocol: sctp |
| 582 | ############################################################################## |
| 583 | list(APPEND VNET_SOURCES |
| 584 | sctp/sctp_api.c |
| 585 | sctp/sctp.c |
| 586 | sctp/sctp_pg.c |
| 587 | sctp/sctp_input.c |
| 588 | sctp/sctp_output.c |
| 589 | sctp/sctp_format.c |
| 590 | ) |
| 591 | |
| 592 | list(APPEND VNET_HEADERS |
| 593 | sctp/sctp_error.def |
| 594 | sctp/sctp_packet.h |
| 595 | sctp/sctp_timer.h |
| 596 | sctp/sctp.h |
| 597 | ) |
| 598 | |
| 599 | list(APPEND VNET_API_FILES sctp/sctp.api) |
| 600 | |
| 601 | ############################################################################## |
| 602 | # Tunnel protocol: gre |
| 603 | ############################################################################## |
| 604 | list(APPEND VNET_SOURCES |
| 605 | gre/gre.c |
| 606 | gre/node.c |
| 607 | gre/interface.c |
| 608 | gre/pg.c |
| 609 | gre/gre_api.c |
| 610 | ) |
| 611 | |
| 612 | list(APPEND VNET_HEADERS |
| 613 | gre/gre.h |
| 614 | gre/packet.h |
| 615 | gre/error.def |
| 616 | ) |
| 617 | |
| 618 | list(APPEND VNET_API_FILES gre/gre.api) |
| 619 | |
| 620 | ############################################################################## |
| 621 | # Tunnel protocol: ipip |
| 622 | ############################################################################## |
| 623 | list(APPEND VNET_SOURCES |
| 624 | ipip/ipip.c |
| 625 | ipip/node.c |
| 626 | ipip/sixrd.c |
| 627 | ipip/ipip_api.c |
| 628 | ipip/ipip_cli.c |
| 629 | ) |
| 630 | |
| 631 | list(APPEND VNET_HEADERS |
| 632 | ipip/ipip.h |
| 633 | ) |
| 634 | |
| 635 | list(APPEND VNET_API_FILES ipip/ipip.api) |
| 636 | |
| 637 | ############################################################################## |
| 638 | # Tunnel protocol: l2tpv3 |
| 639 | ############################################################################## |
| 640 | list(APPEND VNET_SOURCES |
| 641 | l2tp/l2tp.c |
| 642 | l2tp/encap.c |
| 643 | l2tp/decap.c |
| 644 | l2tp/pg.c |
| 645 | l2tp/l2tp_api.c |
| 646 | ) |
| 647 | |
| 648 | list(APPEND VNET_HEADERS |
| 649 | l2tp/l2tp.h |
| 650 | l2tp/packet.h |
| 651 | ) |
| 652 | |
| 653 | list(APPEND VNET_API_FILES l2tp/l2tp.api) |
| 654 | |
| 655 | ############################################################################## |
| 656 | # Tunnel protocol: gre+mpls |
| 657 | ############################################################################## |
| 658 | list(APPEND VNET_SOURCES |
| 659 | mpls/mpls.c |
| 660 | mpls/mpls_lookup.c |
| 661 | mpls/mpls_output.c |
| 662 | mpls/mpls_features.c |
| 663 | mpls/mpls_input.c |
| 664 | mpls/interface.c |
| 665 | mpls/mpls_tunnel.c |
| 666 | mpls/pg.c |
| 667 | mpls/mpls_api.c |
| 668 | ) |
| 669 | |
| 670 | list(APPEND VNET_HEADERS |
| 671 | mpls/mpls.h |
| 672 | mpls/mpls_types.h |
| 673 | mpls/mpls_tunnel.h |
| 674 | mpls/packet.h |
| 675 | mpls/error.def |
| 676 | ) |
| 677 | |
| 678 | list(APPEND VNET_API_FILES mpls/mpls.api) |
| 679 | |
| 680 | ############################################################################## |
Mohsin Kazmi | 61b94c6 | 2018-08-20 18:32:39 +0200 | [diff] [blame] | 681 | # Tunnel protocol: vxlan-gbp |
| 682 | ############################################################################## |
| 683 | list(APPEND VNET_SOURCES |
| 684 | vxlan-gbp/decap.c |
| 685 | vxlan-gbp/encap.c |
| 686 | vxlan-gbp/vxlan_gbp_api.c |
| 687 | vxlan-gbp/vxlan_gbp.c |
Neale Ranns | 93cc3ee | 2018-10-10 07:22:51 -0700 | [diff] [blame] | 688 | vxlan-gbp/vxlan_gbp_packet.c |
Mohsin Kazmi | 61b94c6 | 2018-08-20 18:32:39 +0200 | [diff] [blame] | 689 | ) |
| 690 | |
| 691 | list(APPEND VNET_HEADERS |
| 692 | vxlan-gbp/vxlan_gbp.h |
| 693 | vxlan-gbp/vxlan_gbp_packet.h |
| 694 | vxlan-gbp/vxlan_gbp_error.def |
| 695 | ) |
| 696 | |
| 697 | list(APPEND VNET_API_FILES vxlan-gbp/vxlan_gbp.api) |
| 698 | |
| 699 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 700 | # Tunnel protocol: vxlan-gpe |
| 701 | ############################################################################## |
| 702 | |
| 703 | list(APPEND VNET_SOURCES |
| 704 | vxlan-gpe/vxlan_gpe.c |
| 705 | vxlan-gpe/encap.c |
| 706 | vxlan-gpe/decap.c |
| 707 | vxlan-gpe/vxlan_gpe_api.c |
| 708 | ) |
| 709 | |
| 710 | list(APPEND VNET_HEADERS |
| 711 | vxlan-gpe/vxlan_gpe.h |
| 712 | vxlan-gpe/vxlan_gpe_packet.h |
| 713 | vxlan-gpe/vxlan_gpe_error.def |
| 714 | ) |
| 715 | |
| 716 | list(APPEND VNET_API_FILES vxlan-gpe/vxlan_gpe.api) |
| 717 | |
| 718 | ############################################################################## |
| 719 | # Tunnel protocol: ipsec+gre |
| 720 | ############################################################################## |
| 721 | list(APPEND VNET_SOURCES |
| 722 | ipsec-gre/ipsec_gre.c |
| 723 | ipsec-gre/node.c |
| 724 | ipsec-gre/interface.c |
| 725 | ipsec-gre/ipsec_gre_api.c |
| 726 | ) |
| 727 | |
| 728 | list(APPEND VNET_HEADERS |
| 729 | ipsec-gre/ipsec_gre.h |
| 730 | ipsec-gre/error.def |
| 731 | ) |
| 732 | |
| 733 | list(APPEND VNET_API_FILES ipsec-gre/ipsec_gre.api) |
| 734 | |
| 735 | ############################################################################## |
| 736 | # LISP control plane: lisp-cp |
| 737 | ############################################################################## |
| 738 | |
| 739 | list(APPEND VNET_SOURCES |
| 740 | lisp-cp/lisp_types.c |
| 741 | lisp-cp/lisp_cp_dpo.c |
| 742 | lisp-cp/control.c |
| 743 | lisp-cp/gid_dictionary.c |
| 744 | lisp-cp/lisp_msg_serdes.c |
| 745 | lisp-cp/packets.c |
| 746 | lisp-cp/one_cli.c |
| 747 | lisp-cp/lisp_cli.c |
| 748 | lisp-cp/one_api.c |
| 749 | lisp-cp/lisp_api.c |
| 750 | ) |
| 751 | |
| 752 | list(APPEND VNET_HEADERS |
| 753 | lisp-cp/lisp_types.h |
| 754 | lisp-cp/packets.h |
| 755 | lisp-cp/gid_dictionary.h |
| 756 | lisp-cp/lisp_cp_messages.h |
| 757 | lisp-cp/lisp_msg_serdes.h |
| 758 | lisp-cp/control.h |
| 759 | ) |
| 760 | |
| 761 | list(APPEND VNET_API_FILES lisp-cp/lisp.api) |
| 762 | list(APPEND VNET_API_FILES lisp-cp/one.api) |
| 763 | |
| 764 | ############################################################################## |
| 765 | # Tunnel protocol: lisp-gpe |
| 766 | ############################################################################## |
| 767 | |
| 768 | list(APPEND VNET_SOURCES |
| 769 | lisp-gpe/lisp_gpe.c |
| 770 | lisp-gpe/lisp_gpe_sub_interface.c |
| 771 | lisp-gpe/lisp_gpe_adjacency.c |
| 772 | lisp-gpe/lisp_gpe_tunnel.c |
| 773 | lisp-gpe/lisp_gpe_fwd_entry.c |
| 774 | lisp-gpe/lisp_gpe_tenant.c |
| 775 | lisp-gpe/interface.c |
| 776 | lisp-gpe/decap.c |
| 777 | lisp-gpe/lisp_gpe_api.c |
| 778 | ) |
| 779 | |
| 780 | list(APPEND VNET_HEADERS |
| 781 | lisp-gpe/lisp_gpe.h |
| 782 | lisp-gpe/lisp_gpe_fwd_entry.h |
| 783 | lisp-gpe/lisp_gpe_tenant.h |
| 784 | lisp-gpe/lisp_gpe_packet.h |
| 785 | lisp-gpe/lisp_gpe_error.def |
| 786 | ) |
| 787 | |
| 788 | list(APPEND VNET_API_FILES lisp-gpe/lisp_gpe.api) |
| 789 | |
| 790 | ############################################################################## |
| 791 | # DHCP client |
| 792 | ############################################################################## |
| 793 | list(APPEND VNET_SOURCES |
| 794 | dhcp/client.c |
| 795 | dhcp/dhcp_client_detect.c |
| 796 | dhcp/dhcp6_client_common_dp.c |
| 797 | dhcp/dhcp6_pd_client_dp.c |
| 798 | dhcp/dhcp6_pd_client_cp.c |
| 799 | dhcp/dhcp6_ia_na_client_dp.c |
| 800 | dhcp/dhcp6_ia_na_client_cp.c |
| 801 | dhcp/dhcp_api.c |
| 802 | ) |
| 803 | |
| 804 | list(APPEND VNET_HEADERS |
| 805 | dhcp/client.h |
| 806 | dhcp/dhcp6_client_common_dp.h |
| 807 | dhcp/dhcp6_pd_client_dp.h |
| 808 | dhcp/dhcp6_ia_na_client_dp.h |
| 809 | ) |
| 810 | |
| 811 | list(APPEND VNET_API_FILES |
| 812 | dhcp/dhcp.api |
| 813 | dhcp/dhcp6_pd_client_cp.api |
| 814 | dhcp/dhcp6_ia_na_client_cp.api |
| 815 | ) |
| 816 | |
| 817 | ############################################################################## |
| 818 | # DHCP proxy |
| 819 | ############################################################################## |
| 820 | list(APPEND VNET_SOURCES |
| 821 | dhcp/dhcp6_proxy_node.c |
| 822 | dhcp/dhcp4_proxy_node.c |
| 823 | dhcp/dhcp_proxy.c |
| 824 | ) |
| 825 | |
| 826 | list(APPEND VNET_HEADERS |
| 827 | dhcp/dhcp4_packet.h |
| 828 | dhcp/dhcp6_packet.h |
| 829 | dhcp/dhcp_proxy.h |
| 830 | dhcp/dhcp6_proxy_error.def |
| 831 | dhcp/dhcp4_proxy_error.def |
| 832 | ) |
| 833 | |
| 834 | ############################################################################## |
| 835 | # ipv6 segment routing |
| 836 | ############################################################################## |
| 837 | |
| 838 | list(APPEND VNET_SOURCES |
| 839 | srv6/sr.c |
| 840 | srv6/sr_localsid.c |
| 841 | srv6/sr_policy_rewrite.c |
| 842 | srv6/sr_steering.c |
| 843 | srv6/sr_api.c |
| 844 | ) |
| 845 | |
| 846 | list(APPEND VNET_HEADERS |
| 847 | srv6/sr_packet.h |
| 848 | srv6/sr.h |
| 849 | ) |
| 850 | |
| 851 | list(APPEND VNET_API_FILES srv6/sr.api) |
| 852 | |
| 853 | ############################################################################## |
| 854 | # mpls segment routing |
| 855 | ############################################################################## |
| 856 | |
| 857 | list(APPEND VNET_SOURCES |
| 858 | srmpls/sr_mpls_policy.c |
| 859 | srmpls/sr_mpls_steering.c |
| 860 | srmpls/sr_mpls_api.c |
| 861 | ) |
| 862 | |
| 863 | list(APPEND VNET_HEADERS |
| 864 | srmpls/sr_mpls.h |
| 865 | ) |
| 866 | |
| 867 | list(APPEND VNET_API_FILES srmpls/sr_mpls.api) |
| 868 | |
| 869 | ############################################################################## |
| 870 | # IPFIX / netflow v10 |
| 871 | ############################################################################## |
| 872 | list(APPEND VNET_SOURCES |
| 873 | ipfix-export/flow_report.c |
| 874 | ipfix-export/flow_api.c |
| 875 | ) |
| 876 | |
| 877 | list(APPEND VNET_HEADERS |
| 878 | ipfix-export/flow_report.h |
| 879 | ipfix-export/ipfix_info_elements.h |
| 880 | ipfix-export/ipfix_packet.h |
| 881 | ) |
| 882 | |
| 883 | list(APPEND VNET_API_FILES ipfix-export/ipfix_export.api) |
| 884 | |
| 885 | ############################################################################## |
| 886 | # IPFIX classify code |
| 887 | ############################################################################## |
| 888 | |
| 889 | list(APPEND VNET_SOURCES |
| 890 | ipfix-export/flow_report_classify.c |
| 891 | ) |
| 892 | |
| 893 | list(APPEND VNET_HEADERS |
| 894 | ipfix-export/flow_report_classify.h |
| 895 | ) |
| 896 | |
| 897 | ############################################################################## |
| 898 | # lawful intercept |
| 899 | ############################################################################## |
| 900 | |
| 901 | list(APPEND VNET_SOURCES |
| 902 | lawful-intercept/lawful_intercept.c |
| 903 | lawful-intercept/node.c |
| 904 | ) |
| 905 | |
| 906 | list(APPEND VNET_HEADERS |
| 907 | lawful-intercept/lawful_intercept.h |
| 908 | ) |
| 909 | |
| 910 | ############################################################################## |
| 911 | # SPAN (port mirroring) |
| 912 | ############################################################################## |
| 913 | |
| 914 | list(APPEND VNET_SOURCES |
| 915 | span/span_api.c |
| 916 | span/span.c |
| 917 | span/node.c |
| 918 | ) |
| 919 | |
| 920 | list(APPEND VNET_HEADERS |
| 921 | span/span.h |
| 922 | ) |
| 923 | |
| 924 | list(APPEND VNET_API_FILES span/span.api) |
| 925 | |
| 926 | ############################################################################## |
| 927 | # DNS proxy, API |
| 928 | ############################################################################## |
| 929 | list(APPEND VNET_SOURCES |
| 930 | dns/dns.c |
| 931 | dns/dns.h |
| 932 | dns/dns_packet.h |
| 933 | dns/reply_node.c |
| 934 | dns/request_node.c |
| 935 | dns/resolver_process.c |
| 936 | ) |
| 937 | |
| 938 | list(APPEND VNET_HEADERS |
| 939 | dns/dns.h |
| 940 | ) |
| 941 | |
| 942 | list(APPEND VNET_API_FILES dns/dns.api) |
| 943 | |
| 944 | ############################################################################## |
| 945 | # Packet generator |
| 946 | ############################################################################## |
| 947 | |
| 948 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 949 | pg/cli.c |
| 950 | pg/edit.c |
| 951 | pg/init.c |
| 952 | pg/input.c |
| 953 | pg/output.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 954 | pg/stream.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 955 | pg/pg_api.c |
| 956 | ) |
| 957 | |
| 958 | list(APPEND VNET_HEADERS |
| 959 | pg/pg.h |
| 960 | pg/edit.h |
| 961 | ) |
| 962 | |
| 963 | list(APPEND VNET_API_FILES pg/pg.api) |
| 964 | |
| 965 | ############################################################################## |
| 966 | # virtio |
| 967 | ############################################################################## |
| 968 | |
| 969 | list(APPEND VNET_SOURCES |
| 970 | devices/virtio/device.c |
| 971 | devices/virtio/node.c |
| 972 | devices/virtio/vhost_user.c |
| 973 | devices/virtio/vhost_user_input.c |
| 974 | devices/virtio/vhost_user_output.c |
| 975 | devices/virtio/vhost_user_api.c |
| 976 | devices/virtio/virtio.c |
Mohsin Kazmi | d6c15af | 2018-10-23 18:00:47 +0200 | [diff] [blame] | 977 | devices/virtio/virtio_api.c |
| 978 | devices/virtio/cli.c |
| 979 | devices/virtio/pci.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 980 | ) |
| 981 | |
| 982 | list(APPEND VNET_HEADERS |
Mohsin Kazmi | d6c15af | 2018-10-23 18:00:47 +0200 | [diff] [blame] | 983 | devices/virtio/pci.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 984 | devices/virtio/virtio.h |
| 985 | devices/virtio/vhost_user.h |
| 986 | ) |
| 987 | |
| 988 | list(APPEND VNET_MULTIARCH_SOURCES |
| 989 | devices/virtio/vhost_user_input.c |
| 990 | devices/virtio/vhost_user_output.c |
| 991 | ) |
| 992 | |
Mohsin Kazmi | d6c15af | 2018-10-23 18:00:47 +0200 | [diff] [blame] | 993 | list(APPEND VNET_API_FILES |
| 994 | devices/virtio/vhost_user.api |
| 995 | devices/virtio/virtio.api |
| 996 | ) |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 997 | |
| 998 | ############################################################################## |
| 999 | # tap interface (with virtio backend) |
| 1000 | ############################################################################## |
| 1001 | |
| 1002 | list(APPEND VNET_SOURCES |
| 1003 | devices/tap/cli.c |
| 1004 | devices/tap/tap.c |
| 1005 | devices/tap/tapv2_api.c |
| 1006 | ) |
| 1007 | |
| 1008 | list(APPEND VNET_HEADERS |
| 1009 | devices/tap/tap.h |
| 1010 | ) |
| 1011 | |
| 1012 | list(APPEND VNET_API_FILES devices/tap/tapv2.api) |
| 1013 | |
| 1014 | ############################################################################## |
| 1015 | # tap interface (with virtio backend) |
| 1016 | ############################################################################## |
| 1017 | |
| 1018 | list(APPEND VNET_SOURCES |
| 1019 | devices/pipe/pipe_api.c |
| 1020 | devices/pipe/pipe.c |
| 1021 | ) |
| 1022 | |
| 1023 | list(APPEND VNET_HEADERS |
| 1024 | devices/pipe/pipe.h |
| 1025 | ) |
| 1026 | |
| 1027 | list(APPEND VNET_API_FILES devices/pipe/pipe.api) |
| 1028 | |
| 1029 | ############################################################################## |
| 1030 | # session managmeent |
| 1031 | ############################################################################## |
| 1032 | |
| 1033 | list(APPEND VNET_SOURCES |
| 1034 | session/session.c |
| 1035 | session/session_table.c |
| 1036 | session/session_rules_table.c |
| 1037 | session/session_lookup.c |
| 1038 | session/session_node.c |
| 1039 | session/transport.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1040 | session/application.c |
Florin Coras | 623eb56 | 2019-02-03 19:28:34 -0800 | [diff] [blame] | 1041 | session/application_worker.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1042 | session/session_cli.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1043 | session/application_interface.c |
| 1044 | session/application_namespace.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1045 | session/segment_manager.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1046 | session/session_api.c |
| 1047 | ) |
| 1048 | |
| 1049 | list(APPEND VNET_HEADERS |
| 1050 | session/session.h |
| 1051 | session/session_table.h |
| 1052 | session/session_rules_table.h |
Florin Coras | 288eaab | 2019-02-03 15:26:14 -0800 | [diff] [blame] | 1053 | session/session_types.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1054 | session/session_lookup.h |
| 1055 | session/application.h |
| 1056 | session/transport.h |
| 1057 | session/transport_interface.h |
| 1058 | session/application_interface.h |
| 1059 | session/application_namespace.h |
| 1060 | session/session_debug.h |
| 1061 | session/segment_manager.h |
| 1062 | session/mma_template.h |
| 1063 | session/mma_template.c |
| 1064 | session/mma_16.h |
| 1065 | session/mma_40.h |
| 1066 | ) |
| 1067 | |
| 1068 | list(APPEND VNET_API_FILES session/session.api) |
| 1069 | |
| 1070 | ############################################################################## |
| 1071 | # session layer applications |
| 1072 | ############################################################################## |
| 1073 | |
| 1074 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1075 | session-apps/echo_client.c |
| 1076 | session-apps/echo_server.c |
| 1077 | session-apps/http_server.c |
| 1078 | session-apps/proxy.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1079 | ) |
| 1080 | |
| 1081 | list(APPEND VNET_HEADERS |
| 1082 | session-apps/echo_client.h |
| 1083 | session-apps/proxy.h |
| 1084 | ) |
| 1085 | |
| 1086 | ############################################################################## |
| 1087 | # TLS protocol |
| 1088 | ############################################################################## |
| 1089 | |
| 1090 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1091 | tls/tls.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1092 | ) |
| 1093 | |
| 1094 | list(APPEND VNET_HEADERS |
| 1095 | tls/tls.h |
| 1096 | ) |
| 1097 | |
| 1098 | ############################################################################## |
| 1099 | # Linux packet interface |
| 1100 | ############################################################################## |
| 1101 | |
| 1102 | list(APPEND VNET_SOURCES |
| 1103 | devices/af_packet/af_packet.c |
| 1104 | devices/af_packet/device.c |
| 1105 | devices/af_packet/node.c |
| 1106 | devices/af_packet/cli.c |
| 1107 | devices/af_packet/af_packet_api.c |
| 1108 | ) |
| 1109 | |
| 1110 | list(APPEND VNET_HEADERS |
| 1111 | devices/af_packet/af_packet.h |
| 1112 | ) |
| 1113 | |
| 1114 | list(APPEND VNET_API_FILES devices/af_packet/af_packet.api) |
| 1115 | |
| 1116 | ############################################################################## |
| 1117 | # NETMAP interface |
| 1118 | ############################################################################## |
| 1119 | |
| 1120 | list(APPEND VNET_SOURCES |
| 1121 | devices/netmap/netmap.c |
| 1122 | devices/netmap/device.c |
| 1123 | devices/netmap/node.c |
| 1124 | devices/netmap/cli.c |
| 1125 | devices/netmap/netmap_api.c |
| 1126 | ) |
| 1127 | |
| 1128 | list(APPEND VNET_HEADERS |
| 1129 | devices/netmap/netmap.h |
| 1130 | ) |
| 1131 | |
| 1132 | list(APPEND VNET_API_FILES devices/netmap/netmap.api) |
| 1133 | |
| 1134 | ############################################################################## |
| 1135 | # Driver feature graph arc support |
| 1136 | ############################################################################## |
| 1137 | |
| 1138 | list(APPEND VNET_SOURCES |
| 1139 | feature/feature.c |
| 1140 | feature/feature_api.c |
| 1141 | feature/registration.c |
| 1142 | ) |
| 1143 | |
| 1144 | list(APPEND VNET_HEADERS |
| 1145 | feature/feature.h |
| 1146 | ) |
| 1147 | |
| 1148 | list(APPEND VNET_API_FILES feature/feature.api) |
| 1149 | |
| 1150 | ############################################################################## |
| 1151 | # Unix kernel related |
| 1152 | ############################################################################## |
| 1153 | |
| 1154 | # FIXME: unix/hgshm.c |
| 1155 | |
| 1156 | list(APPEND VNET_SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1157 | unix/gdb_funcs.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1158 | unix/tuntap.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1159 | ) |
| 1160 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1161 | list(APPEND VNET_HEADERS |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1162 | unix/tuntap.h |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1163 | ) |
| 1164 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1165 | ############################################################################## |
| 1166 | # FIB |
| 1167 | ############################################################################## |
| 1168 | |
| 1169 | list(APPEND VNET_SOURCES |
| 1170 | fib/fib.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1171 | fib/ip4_fib.c |
| 1172 | fib/ip6_fib.c |
| 1173 | fib/mpls_fib.c |
| 1174 | fib/fib_table.c |
| 1175 | fib/fib_walk.c |
| 1176 | fib/fib_types.c |
| 1177 | fib/fib_node.c |
| 1178 | fib/fib_node_list.c |
| 1179 | fib/fib_entry.c |
| 1180 | fib/fib_entry_src.c |
| 1181 | fib/fib_entry_src_rr.c |
| 1182 | fib/fib_entry_src_interface.c |
| 1183 | fib/fib_entry_src_interpose.c |
| 1184 | fib/fib_entry_src_default_route.c |
| 1185 | fib/fib_entry_src_special.c |
| 1186 | fib/fib_entry_src_api.c |
| 1187 | fib/fib_entry_src_adj.c |
| 1188 | fib/fib_entry_src_mpls.c |
| 1189 | fib/fib_entry_src_lisp.c |
| 1190 | fib/fib_entry_cover.c |
| 1191 | fib/fib_entry_delegate.c |
| 1192 | fib/fib_path_list.c |
| 1193 | fib/fib_path.c |
| 1194 | fib/fib_path_ext.c |
| 1195 | fib/fib_urpf_list.c |
| 1196 | fib/fib_attached_export.c |
| 1197 | fib/fib_api.c |
| 1198 | fib/fib_bfd.c |
| 1199 | ) |
| 1200 | |
| 1201 | list(APPEND VNET_HEADERS |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1202 | fib/fib.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1203 | fib/fib_api.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1204 | fib/ip4_fib.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1205 | fib/ip6_fib.h |
| 1206 | fib/fib_types.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1207 | fib/fib_table.h |
| 1208 | fib/fib_node.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1209 | fib/fib_node_list.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1210 | fib/fib_entry.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1211 | fib/fib_entry_delegate.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1212 | ) |
| 1213 | |
| 1214 | ############################################################################## |
| 1215 | # ADJ |
| 1216 | ############################################################################## |
| 1217 | |
| 1218 | list(APPEND VNET_SOURCES |
| 1219 | adj/adj_nbr.c |
| 1220 | adj/adj_glean.c |
| 1221 | adj/adj_midchain.c |
| 1222 | adj/adj_mcast.c |
| 1223 | adj/adj_l2.c |
| 1224 | adj/adj_nsh.c |
| 1225 | adj/adj.c |
| 1226 | adj/rewrite.c |
| 1227 | adj/adj_bfd.c |
| 1228 | adj/adj_delegate.c |
| 1229 | ) |
| 1230 | |
| 1231 | list(APPEND VNET_HEADERS |
| 1232 | adj/adj.h |
| 1233 | adj/adj_types.h |
| 1234 | adj/adj_glean.h |
| 1235 | adj/adj_nsh.h |
| 1236 | adj/adj_nbr.h |
| 1237 | adj/rewrite.h |
| 1238 | ) |
| 1239 | |
| 1240 | ############################################################################## |
| 1241 | # Data-Plane Objects |
| 1242 | ############################################################################## |
| 1243 | |
| 1244 | list(APPEND VNET_SOURCES |
| 1245 | dpo/dpo.c |
| 1246 | dpo/drop_dpo.c |
| 1247 | dpo/ip_null_dpo.c |
| 1248 | dpo/ip6_ll_dpo.c |
| 1249 | dpo/punt_dpo.c |
| 1250 | dpo/receive_dpo.c |
| 1251 | dpo/load_balance.c |
| 1252 | dpo/load_balance_map.c |
| 1253 | dpo/lookup_dpo.c |
| 1254 | dpo/classify_dpo.c |
| 1255 | dpo/replicate_dpo.c |
| 1256 | dpo/interface_rx_dpo.c |
| 1257 | dpo/interface_tx_dpo.c |
| 1258 | dpo/mpls_disposition.c |
| 1259 | dpo/mpls_label_dpo.c |
| 1260 | dpo/l3_proxy_dpo.c |
| 1261 | dpo/dvr_dpo.c |
| 1262 | ) |
| 1263 | |
| 1264 | list(APPEND VNET_HEADERS |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1265 | dpo/load_balance.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1266 | dpo/drop_dpo.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1267 | dpo/lookup_dpo.h |
| 1268 | dpo/punt_dpo.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1269 | dpo/classify_dpo.h |
| 1270 | dpo/receive_dpo.h |
| 1271 | dpo/ip_null_dpo.h |
| 1272 | dpo/replicate_dpo.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1273 | dpo/dpo.h |
| 1274 | ) |
| 1275 | |
| 1276 | ############################################################################## |
| 1277 | # Multicast FIB |
| 1278 | ############################################################################## |
| 1279 | |
| 1280 | list(APPEND VNET_SOURCES |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1281 | mfib/mfib_forward.c |
| 1282 | mfib/ip4_mfib.c |
| 1283 | mfib/ip6_mfib.c |
| 1284 | mfib/mfib_types.c |
| 1285 | mfib/mfib_signal.c |
| 1286 | mfib/mfib_itf.c |
| 1287 | mfib/mfib_entry.c |
Neale Ranns | 9e829a8 | 2018-12-17 05:50:32 -0800 | [diff] [blame] | 1288 | mfib/mfib_entry.c |
| 1289 | mfib/mfib_entry_cover.c |
| 1290 | mfib/mfib_entry_delegate.c |
| 1291 | mfib/mfib_entry_src.c |
| 1292 | mfib/mfib_entry_src_rr.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1293 | mfib/mfib_table.c |
| 1294 | ) |
| 1295 | |
| 1296 | list(APPEND VNET_HEADERS |
| 1297 | mfib/ip4_mfib.h |
| 1298 | mfib/mfib_types.h |
| 1299 | mfib/mfib_table.h |
| 1300 | ) |
| 1301 | |
| 1302 | ############################################################################## |
| 1303 | # Utilities |
| 1304 | ############################################################################## |
| 1305 | |
| 1306 | list(APPEND VNET_SOURCES |
| 1307 | util/radix.c |
| 1308 | util/refcount.c |
Neale Ranns | c8352bc | 2018-08-29 10:23:58 -0700 | [diff] [blame] | 1309 | util/throttle.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1310 | util/trajectory.c |
| 1311 | ) |
| 1312 | |
Damjan Marion | ac5554c | 2018-08-30 22:56:59 +0200 | [diff] [blame] | 1313 | list(APPEND VNET_HEADERS |
| 1314 | util/throttle.h |
| 1315 | ) |
| 1316 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1317 | ############################################################################## |
| 1318 | # QoS |
| 1319 | ############################################################################## |
| 1320 | |
| 1321 | list(APPEND VNET_SOURCES |
| 1322 | qos/qos_types.c |
| 1323 | qos/qos_api.c |
| 1324 | qos/qos_egress_map.c |
| 1325 | qos/qos_record.c |
| 1326 | qos/qos_mark.c |
| 1327 | ) |
| 1328 | |
| 1329 | list(APPEND VNET_API_FILES qos/qos.api) |
| 1330 | |
| 1331 | ############################################################################## |
| 1332 | # BIER |
| 1333 | ############################################################################## |
| 1334 | |
| 1335 | list(APPEND VNET_SOURCES |
| 1336 | bier/bier_bit_string.c |
| 1337 | bier/bier_entry.c |
| 1338 | bier/bier_fmask.c |
| 1339 | bier/bier_fmask_db.c |
| 1340 | bier/bier_input.c |
| 1341 | bier/bier_lookup.c |
| 1342 | bier/bier_output.c |
| 1343 | bier/bier_table.c |
| 1344 | bier/bier_types.c |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1345 | bier/bier_api.c |
| 1346 | bier/bier_drop.c |
| 1347 | bier/bier_update.c |
| 1348 | bier/bier_imp_node.c |
| 1349 | bier/bier_imp.c |
| 1350 | bier/bier_disp_entry.c |
| 1351 | bier/bier_disp_lookup_node.c |
| 1352 | bier/bier_disp_dispatch_node.c |
| 1353 | bier/bier_disp_table.c |
| 1354 | bier/bier_bift_table.c |
| 1355 | ) |
| 1356 | |
| 1357 | list(APPEND VNET_HEADERS |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1358 | bier/bier_types.h |
| 1359 | bier/bier_entry.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1360 | bier/bier_update.h |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1361 | bier/bier_table.h |
Damjan Marion | 2bfdda7 | 2018-08-24 21:36:42 +0200 | [diff] [blame] | 1362 | ) |
| 1363 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1364 | list(APPEND VNET_API_FILES bier/bier.api) |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1365 | |
Florin Coras | 41c9e04 | 2018-09-11 00:10:41 -0700 | [diff] [blame] | 1366 | ############################################################################## |
Matus Fabian | b4515b4 | 2018-11-19 04:25:32 -0800 | [diff] [blame] | 1367 | # SYSLOG |
| 1368 | ############################################################################## |
| 1369 | |
| 1370 | list (APPEND VNET_SOURCES |
| 1371 | syslog/syslog_api.c |
| 1372 | syslog/syslog_udp.c |
| 1373 | syslog/syslog.c |
| 1374 | ) |
| 1375 | |
| 1376 | list(APPEND VNET_HEADERS |
| 1377 | syslog/syslog_udp.h |
| 1378 | syslog/syslog.h |
| 1379 | ) |
| 1380 | |
| 1381 | list(APPEND VNET_API_FILES syslog/syslog.api) |
| 1382 | |
| 1383 | ############################################################################## |
Florin Coras | 41c9e04 | 2018-09-11 00:10:41 -0700 | [diff] [blame] | 1384 | # VNET Library |
| 1385 | ############################################################################## |
| 1386 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 1387 | add_vpp_library(vnet |
| 1388 | SOURCES ${VNET_SOURCES} |
| 1389 | MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES} |
| 1390 | INSTALL_HEADERS ${VNET_HEADERS} |
| 1391 | API_FILES ${VNET_API_FILES} |
| 1392 | LINK_LIBRARIES vppinfra svm vlib ${OPENSSL_LIBRARIES} |
| 1393 | DEPENDS api_headers |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1394 | ) |
Florin Coras | 41c9e04 | 2018-09-11 00:10:41 -0700 | [diff] [blame] | 1395 | |
| 1396 | ############################################################################## |
| 1397 | # Session echo apps |
| 1398 | ############################################################################## |
| 1399 | |
| 1400 | option(VPP_BUILD_SESSION_ECHO_APPS "Build session echo apps." ON) |
| 1401 | if(VPP_BUILD_SESSION_ECHO_APPS) |
| 1402 | add_vpp_executable(tcp_echo |
| 1403 | SOURCES ../tests/vnet/session/tcp_echo.c |
| 1404 | LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt |
| 1405 | DEPENDS api_headers |
| 1406 | NO_INSTALL |
| 1407 | ) |
| 1408 | add_vpp_executable(udp_echo |
| 1409 | SOURCES ../tests/vnet/session/udp_echo.c |
| 1410 | LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt |
| 1411 | DEPENDS api_headers |
| 1412 | NO_INSTALL |
| 1413 | ) |
| 1414 | endif(VPP_BUILD_SESSION_ECHO_APPS) |
| 1415 | |
Neale Ranns | c25eb45 | 2018-09-12 06:53:03 -0400 | [diff] [blame] | 1416 | ############################################################################## |