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