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