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