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