Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1 | # Copyright (c) 2015 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 | |
Damjan Marion | 724f64c | 2017-01-11 11:11:00 +0100 | [diff] [blame] | 14 | lib_LTLIBRARIES += libvnet.la |
Damjan Marion | f3b2746 | 2018-05-15 19:51:38 +0200 | [diff] [blame] | 15 | noinst_LTLIBRARIES = |
Damjan Marion | 724f64c | 2017-01-11 11:11:00 +0100 | [diff] [blame] | 16 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 17 | libvnet_la_SOURCES = |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 18 | libvnet_la_DEPENDENCIES = \ |
| 19 | libvppinfra.la \ |
| 20 | libvlib.la \ |
| 21 | libsvmdb.la \ |
| 22 | libsvm.la \ |
Dave Barach | 654ceaf | 2017-03-29 16:59:02 -0400 | [diff] [blame] | 23 | libvlibmemory.la |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 24 | libvnet_multiversioning_sources = |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 25 | |
Damjan Marion | c3a814b | 2017-02-28 19:22:22 +0100 | [diff] [blame] | 26 | libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt |
Damjan Marion | 45a00c4 | 2017-01-08 15:34:50 +0100 | [diff] [blame] | 27 | |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 28 | if WITH_LIBSSL |
Damjan Marion | 45a00c4 | 2017-01-08 15:34:50 +0100 | [diff] [blame] | 29 | libvnet_la_LIBADD += -lcrypto |
| 30 | endif |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 31 | |
| 32 | ######################################## |
| 33 | # Generic stuff |
| 34 | ######################################## |
| 35 | libvnet_la_SOURCES += \ |
Damjan Marion | bd846cd | 2017-11-21 13:12:41 +0100 | [diff] [blame] | 36 | vnet/buffer.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 37 | vnet/config.c \ |
| 38 | vnet/devices/devices.c \ |
Damjan Marion | 17fdae7 | 2017-11-30 20:56:37 +0100 | [diff] [blame] | 39 | vnet/devices/netlink.c \ |
Damjan Marion | a35cc14 | 2018-03-16 01:25:27 +0100 | [diff] [blame] | 40 | vnet/flow/flow.c \ |
| 41 | vnet/flow/flow_cli.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 42 | vnet/handoff.c \ |
| 43 | vnet/interface.c \ |
| 44 | vnet/interface_api.c \ |
| 45 | vnet/interface_cli.c \ |
| 46 | vnet/interface_format.c \ |
| 47 | vnet/interface_output.c \ |
Neale Ranns | 871dc42 | 2018-03-29 01:28:09 -0700 | [diff] [blame] | 48 | vnet/interface_stats.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 49 | vnet/misc.c \ |
Neale Ranns | fa5d198 | 2017-02-20 14:19:51 -0800 | [diff] [blame] | 50 | vnet/replication.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 51 | |
| 52 | nobase_include_HEADERS += \ |
| 53 | vnet/api_errno.h \ |
| 54 | vnet/buffer.h \ |
| 55 | vnet/config.h \ |
| 56 | vnet/devices/devices.h \ |
Damjan Marion | 17fdae7 | 2017-11-30 20:56:37 +0100 | [diff] [blame] | 57 | vnet/devices/netlink.h \ |
Damjan Marion | a35cc14 | 2018-03-16 01:25:27 +0100 | [diff] [blame] | 58 | vnet/flow/flow.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 59 | vnet/global_funcs.h \ |
| 60 | vnet/handoff.h \ |
| 61 | vnet/interface.h \ |
| 62 | vnet/interface.api.h \ |
| 63 | vnet/interface_funcs.h \ |
Matus Fabian | a774b53 | 2017-05-02 03:15:22 -0700 | [diff] [blame] | 64 | vnet/ip/ip4_to_ip6.h \ |
| 65 | vnet/ip/ip6_to_ip4.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 66 | vnet/l3_types.h \ |
| 67 | vnet/pipeline.h \ |
| 68 | vnet/replication.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 69 | vnet/vnet.h \ |
| 70 | vnet/vnet_all_api_h.h \ |
Gabriel Ganne | 5842c78 | 2017-01-30 13:44:04 +0100 | [diff] [blame] | 71 | vnet/vnet_msg_enum.h \ |
Hongjun Ni | bf4be57 | 2017-11-13 20:34:06 +0800 | [diff] [blame] | 72 | vnet/util/radix.h \ |
| 73 | vnet/util/refcount.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 74 | |
| 75 | API_FILES += vnet/interface.api |
| 76 | |
| 77 | ######################################## |
| 78 | # Policer infra |
| 79 | ######################################## |
| 80 | |
| 81 | libvnet_la_SOURCES += \ |
| 82 | vnet/policer/node_funcs.c \ |
| 83 | vnet/policer/policer.c \ |
Pavel Kotucek | d9aad29 | 2017-01-25 08:45:38 +0100 | [diff] [blame] | 84 | vnet/policer/xlate.c \ |
| 85 | vnet/policer/policer_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 86 | |
| 87 | nobase_include_HEADERS += \ |
| 88 | vnet/policer/police.h \ |
| 89 | vnet/policer/policer.h \ |
Pavel Kotucek | d9aad29 | 2017-01-25 08:45:38 +0100 | [diff] [blame] | 90 | vnet/policer/xlate.h \ |
| 91 | vnet/policer/policer.api.h |
| 92 | |
| 93 | API_FILES += vnet/policer/policer.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 94 | |
| 95 | ######################################## |
| 96 | # Cop - junk filter |
| 97 | ######################################## |
| 98 | |
| 99 | libvnet_la_SOURCES += \ |
| 100 | vnet/cop/cop.c \ |
| 101 | vnet/cop/node1.c \ |
| 102 | vnet/cop/ip4_whitelist.c \ |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 103 | vnet/cop/ip6_whitelist.c \ |
| 104 | vnet/cop/cop_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 105 | |
| 106 | nobase_include_HEADERS += \ |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 107 | vnet/cop/cop.h \ |
| 108 | vnet/cop/cop.api.h |
| 109 | |
| 110 | API_FILES += vnet/cop/cop.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 111 | |
| 112 | ######################################## |
| 113 | # Layer 2 protocols go here |
| 114 | ######################################## |
| 115 | |
| 116 | ######################################## |
| 117 | # Layer 2 protocol: Ethernet |
| 118 | ######################################## |
| 119 | libvnet_la_SOURCES += \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 120 | vnet/ethernet/format.c \ |
| 121 | vnet/ethernet/init.c \ |
| 122 | vnet/ethernet/interface.c \ |
| 123 | vnet/ethernet/node.c \ |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 124 | vnet/ethernet/pg.c \ |
Pavel Kotucek | 6899a30 | 2017-06-08 08:46:10 +0200 | [diff] [blame] | 125 | vnet/ethernet/sfp.c \ |
| 126 | vnet/ethernet/p2p_ethernet.c \ |
Pavel Kotucek | 15ac81c | 2017-06-20 14:00:26 +0200 | [diff] [blame] | 127 | vnet/ethernet/p2p_ethernet_input.c \ |
Pavel Kotucek | 6899a30 | 2017-06-08 08:46:10 +0200 | [diff] [blame] | 128 | vnet/ethernet/p2p_ethernet_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 129 | |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 130 | libvnet_multiversioning_sources += \ |
Damjan Marion | f3b2746 | 2018-05-15 19:51:38 +0200 | [diff] [blame] | 131 | vnet/l2/l2_output.c |
| 132 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 133 | nobase_include_HEADERS += \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 134 | vnet/ethernet/error.def \ |
| 135 | vnet/ethernet/ethernet.h \ |
| 136 | vnet/ethernet/packet.h \ |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 137 | vnet/ethernet/types.def \ |
Pavel Kotucek | 6899a30 | 2017-06-08 08:46:10 +0200 | [diff] [blame] | 138 | vnet/ethernet/sfp.h \ |
| 139 | vnet/ethernet/p2p_ethernet.api.h \ |
| 140 | vnet/ethernet/p2p_ethernet.h |
| 141 | |
| 142 | API_FILES += vnet/ethernet/p2p_ethernet.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 143 | |
| 144 | ######################################## |
| 145 | # Layer 2 protocol: Ethernet bridging |
| 146 | ######################################## |
| 147 | libvnet_la_SOURCES += \ |
| 148 | vnet/l2/feat_bitmap.c \ |
| 149 | vnet/l2/l2_api.c \ |
| 150 | vnet/l2/l2_bd.c \ |
| 151 | vnet/l2/l2_bvi.c \ |
| 152 | vnet/l2/l2_input_classify.c \ |
| 153 | vnet/l2/l2_output_classify.c \ |
| 154 | vnet/l2/l2_efp_filter.c \ |
| 155 | vnet/l2/l2_fib.c \ |
| 156 | vnet/l2/l2_flood.c \ |
| 157 | vnet/l2/l2_fwd.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 158 | vnet/l2/l2_input.c \ |
| 159 | vnet/l2/l2_input_vtr.c \ |
| 160 | vnet/l2/l2_learn.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 161 | vnet/l2/l2_output.c \ |
Andrew Yourtchenko | 815d7d5 | 2018-02-07 11:37:02 +0100 | [diff] [blame] | 162 | vnet/l2/l2_in_out_acl.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 163 | vnet/l2/l2_patch.c \ |
| 164 | vnet/l2/l2_rw.c \ |
| 165 | vnet/l2/l2_vtr.c \ |
| 166 | vnet/l2/l2_xcrw.c |
| 167 | |
| 168 | nobase_include_HEADERS += \ |
| 169 | vnet/l2/feat_bitmap.h \ |
| 170 | vnet/l2/l2_input.h \ |
| 171 | vnet/l2/l2_output.h \ |
| 172 | vnet/l2/l2_vtr.h \ |
| 173 | vnet/l2/l2_input_vtr.h \ |
| 174 | vnet/l2/l2_efp_filter.h \ |
| 175 | vnet/l2/l2_fwd.h \ |
| 176 | vnet/l2/l2_bd.h \ |
| 177 | vnet/l2/l2_bvi.h \ |
| 178 | vnet/l2/l2_flood.h \ |
| 179 | vnet/l2/l2_fib.h \ |
| 180 | vnet/l2/l2_rw.h \ |
| 181 | vnet/l2/l2_xcrw.h \ |
| 182 | vnet/l2/l2_classify.h \ |
| 183 | vnet/l2/l2.api.h |
| 184 | |
| 185 | API_FILES += vnet/l2/l2.api |
| 186 | |
| 187 | ######################################## |
| 188 | # Layer 2 protocol: SRP |
| 189 | ######################################## |
| 190 | libvnet_la_SOURCES += \ |
| 191 | vnet/srp/format.c \ |
| 192 | vnet/srp/interface.c \ |
| 193 | vnet/srp/node.c \ |
| 194 | vnet/srp/pg.c |
| 195 | |
| 196 | nobase_include_HEADERS += \ |
| 197 | vnet/srp/packet.h \ |
| 198 | vnet/srp/srp.h |
| 199 | |
| 200 | ######################################## |
| 201 | # Layer 2 protocol: PPP |
| 202 | ######################################## |
| 203 | libvnet_la_SOURCES += \ |
| 204 | vnet/ppp/node.c \ |
| 205 | vnet/ppp/pg.c \ |
| 206 | vnet/ppp/ppp.c |
| 207 | |
| 208 | nobase_include_HEADERS += \ |
| 209 | vnet/ppp/error.def \ |
| 210 | vnet/ppp/ppp.h \ |
| 211 | vnet/ppp/packet.h |
| 212 | |
| 213 | ######################################## |
| 214 | # Layer 2 protocol: HDLC |
| 215 | ######################################## |
| 216 | libvnet_la_SOURCES += \ |
| 217 | vnet/hdlc/node.c \ |
| 218 | vnet/hdlc/pg.c \ |
| 219 | vnet/hdlc/hdlc.c |
| 220 | |
| 221 | nobase_include_HEADERS += \ |
| 222 | vnet/hdlc/error.def \ |
| 223 | vnet/hdlc/hdlc.h \ |
| 224 | vnet/hdlc/packet.h |
| 225 | |
| 226 | ######################################## |
| 227 | # Layer 2 protocol: LLC |
| 228 | ######################################## |
| 229 | libvnet_la_SOURCES += \ |
| 230 | vnet/llc/llc.c \ |
| 231 | vnet/llc/node.c \ |
| 232 | vnet/llc/pg.c |
| 233 | |
| 234 | nobase_include_HEADERS += \ |
| 235 | vnet/llc/llc.h |
| 236 | |
| 237 | ######################################## |
| 238 | # Layer 2 protocol: SNAP |
| 239 | ######################################## |
| 240 | libvnet_la_SOURCES += \ |
| 241 | vnet/snap/snap.c \ |
| 242 | vnet/snap/node.c \ |
| 243 | vnet/snap/pg.c |
| 244 | |
| 245 | nobase_include_HEADERS += \ |
| 246 | vnet/snap/snap.h |
| 247 | |
| 248 | ######################################## |
| 249 | # Layer 2 / vxlan |
| 250 | ######################################## |
| 251 | libvnet_la_SOURCES += \ |
| 252 | vnet/vxlan/vxlan.c \ |
| 253 | vnet/vxlan/encap.c \ |
| 254 | vnet/vxlan/decap.c \ |
| 255 | vnet/vxlan/vxlan_api.c |
| 256 | |
| 257 | nobase_include_HEADERS += \ |
| 258 | vnet/vxlan/vxlan.h \ |
| 259 | vnet/vxlan/vxlan_packet.h \ |
| 260 | vnet/vxlan/vxlan_error.def \ |
| 261 | vnet/vxlan/vxlan.api.h |
| 262 | |
Eyal Bari | a5679e8 | 2018-08-26 15:20:07 +0300 | [diff] [blame] | 263 | libvnet_multiversioning_sources += \ |
| 264 | vnet/vxlan/decap.c |
| 265 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 266 | API_FILES += vnet/vxlan/vxlan.api |
| 267 | |
| 268 | ######################################## |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 269 | # Layer 2 / Geneve |
| 270 | ######################################## |
| 271 | libvnet_la_SOURCES += \ |
| 272 | vnet/geneve/geneve.c \ |
| 273 | vnet/geneve/encap.c \ |
| 274 | vnet/geneve/decap.c \ |
| 275 | vnet/geneve/geneve_api.c |
| 276 | |
| 277 | nobase_include_HEADERS += \ |
| 278 | vnet/geneve/geneve.h \ |
| 279 | vnet/geneve/geneve_packet.h \ |
| 280 | vnet/geneve/geneve_error.def \ |
| 281 | vnet/geneve/geneve.api.h |
| 282 | |
| 283 | API_FILES += vnet/geneve/geneve.api |
| 284 | |
| 285 | ######################################## |
Steven | 9cd2d7a | 2017-12-20 12:43:01 -0800 | [diff] [blame] | 286 | # Layer 2 / Bonding |
| 287 | ######################################## |
| 288 | libvnet_la_SOURCES += \ |
| 289 | vnet/bonding/cli.c \ |
| 290 | vnet/bonding/node.c \ |
| 291 | vnet/bonding/device.c \ |
| 292 | vnet/bonding/bond_api.c |
| 293 | |
| 294 | nobase_include_HEADERS += \ |
| 295 | vnet/bonding/node.h \ |
| 296 | vnet/bonding/bond.api.h |
| 297 | |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 298 | libvnet_multiversioning_sources += \ |
Damjan Marion | 5e5adb3 | 2018-05-26 00:50:39 +0200 | [diff] [blame] | 299 | vnet/bonding/node.c |
| 300 | |
Steven | 9cd2d7a | 2017-12-20 12:43:01 -0800 | [diff] [blame] | 301 | API_FILES += vnet/bonding/bond.api |
| 302 | |
| 303 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 304 | # Layer 2 / LLDP |
| 305 | ######################################## |
| 306 | libvnet_la_SOURCES += \ |
| 307 | vnet/lldp/lldp_input.c \ |
| 308 | vnet/lldp/lldp_node.c \ |
| 309 | vnet/lldp/lldp_output.c \ |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 310 | vnet/lldp/lldp_cli.c \ |
| 311 | vnet/lldp/lldp_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 312 | |
| 313 | nobase_include_HEADERS += \ |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 314 | vnet/lldp/lldp_protocol.h \ |
| 315 | vnet/lldp/lldp.h \ |
| 316 | vnet/lldp/lldp.api.h |
| 317 | |
| 318 | API_FILES += vnet/lldp/lldp.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 319 | |
| 320 | ######################################## |
| 321 | # Layer 2/3 "classify" |
| 322 | ######################################## |
| 323 | libvnet_la_SOURCES += \ |
| 324 | vnet/classify/vnet_classify.c \ |
| 325 | vnet/classify/ip_classify.c \ |
Andrew Yourtchenko | 815d7d5 | 2018-02-07 11:37:02 +0100 | [diff] [blame] | 326 | vnet/classify/in_out_acl.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 327 | vnet/classify/policer_classify.c \ |
| 328 | vnet/classify/flow_classify.c \ |
| 329 | vnet/classify/flow_classify_node.c \ |
Pavel Kotucek | d2c97d9 | 2017-01-24 10:58:12 +0100 | [diff] [blame] | 330 | vnet/classify/vnet_classify.h \ |
| 331 | vnet/classify/classify_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 332 | |
| 333 | nobase_include_HEADERS += \ |
| 334 | vnet/classify/vnet_classify.h \ |
Andrew Yourtchenko | 815d7d5 | 2018-02-07 11:37:02 +0100 | [diff] [blame] | 335 | vnet/classify/in_out_acl.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 336 | vnet/classify/policer_classify.h \ |
Pavel Kotucek | d2c97d9 | 2017-01-24 10:58:12 +0100 | [diff] [blame] | 337 | vnet/classify/flow_classify.h \ |
| 338 | vnet/classify/classify.api.h |
| 339 | |
| 340 | API_FILES += vnet/classify/classify.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 341 | |
| 342 | ######################################## |
| 343 | # Layer 3 protocols go here |
| 344 | ######################################## |
| 345 | |
| 346 | ######################################## |
| 347 | # Layer 3 protocol: IP v4/v6 |
| 348 | ######################################## |
| 349 | libvnet_la_SOURCES += \ |
| 350 | vnet/ip/format.c \ |
| 351 | vnet/ip/icmp4.c \ |
| 352 | vnet/ip/icmp6.c \ |
| 353 | vnet/ip/ip46_cli.c \ |
Neale Ranns | 947ea62 | 2018-06-07 23:48:20 -0700 | [diff] [blame] | 354 | vnet/ip/ip_types_api.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 355 | vnet/ip/ip4_format.c \ |
| 356 | vnet/ip/ip4_forward.c \ |
Neale Ranns | d91c1db | 2017-07-31 02:30:50 -0700 | [diff] [blame] | 357 | vnet/ip/ip4_punt_drop.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 358 | vnet/ip/ip4_input.c \ |
Neale Ranns | c667ffd | 2018-06-27 18:59:03 -0700 | [diff] [blame] | 359 | vnet/ip/ip4_options.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 360 | vnet/ip/ip4_mtrie.c \ |
| 361 | vnet/ip/ip4_pg.c \ |
| 362 | vnet/ip/ip4_source_and_port_range_check.c \ |
| 363 | vnet/ip/ip4_source_check.c \ |
Klement Sekera | 75e7d13 | 2017-09-20 08:26:30 +0200 | [diff] [blame] | 364 | vnet/ip/ip4_reassembly.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 365 | vnet/ip/ip6_format.c \ |
| 366 | vnet/ip/ip6_forward.c \ |
Neale Ranns | 53da221 | 2018-02-24 02:11:19 -0800 | [diff] [blame] | 367 | vnet/ip/ip6_ll_table.c \ |
| 368 | vnet/ip/ip6_ll_types.c \ |
Neale Ranns | d91c1db | 2017-07-31 02:30:50 -0700 | [diff] [blame] | 369 | vnet/ip/ip6_punt_drop.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 370 | vnet/ip/ip6_hop_by_hop.c \ |
| 371 | vnet/ip/ip6_input.c \ |
| 372 | vnet/ip/ip6_neighbor.c \ |
| 373 | vnet/ip/ip6_pg.c \ |
Klement Sekera | 75e7d13 | 2017-09-20 08:26:30 +0200 | [diff] [blame] | 374 | vnet/ip/ip6_reassembly.c \ |
Juraj Sloboda | c037423 | 2018-02-01 15:18:49 +0100 | [diff] [blame] | 375 | vnet/ip/rd_cp.c \ |
John Lo | 7f358b3 | 2018-04-28 01:19:24 -0400 | [diff] [blame] | 376 | vnet/ip/ip_neighbor.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 377 | vnet/ip/ip_api.c \ |
| 378 | vnet/ip/ip_checksum.c \ |
| 379 | vnet/ip/ip_frag.c \ |
Florin Coras | cea194d | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 380 | vnet/ip/ip.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 381 | vnet/ip/ip_init.c \ |
Neale Ranns | 039cbfe | 2018-02-27 03:45:38 -0800 | [diff] [blame] | 382 | vnet/ip/ip_in_out_acl.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 383 | vnet/ip/lookup.c \ |
| 384 | vnet/ip/ping.c \ |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 385 | vnet/ip/punt_api.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 386 | vnet/ip/punt.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 387 | |
| 388 | nobase_include_HEADERS += \ |
| 389 | vnet/ip/format.h \ |
| 390 | vnet/ip/icmp46_packet.h \ |
| 391 | vnet/ip/icmp4.h \ |
| 392 | vnet/ip/icmp6.h \ |
| 393 | vnet/ip/igmp_packet.h \ |
| 394 | vnet/ip/ip.api.h \ |
Juraj Sloboda | c037423 | 2018-02-01 15:18:49 +0100 | [diff] [blame] | 395 | vnet/ip/rd_cp.api.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 396 | vnet/ip/ip4_error.h \ |
| 397 | vnet/ip/ip4.h \ |
| 398 | vnet/ip/ip4_mtrie.h \ |
| 399 | vnet/ip/ip4_packet.h \ |
| 400 | vnet/ip/ip6_error.h \ |
| 401 | vnet/ip/ip6.h \ |
| 402 | vnet/ip/ip6_hop_by_hop.h \ |
| 403 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 404 | vnet/ip/ip6_packet.h \ |
| 405 | vnet/ip/ip6_neighbor.h \ |
| 406 | vnet/ip/ip.h \ |
| 407 | vnet/ip/ip_packet.h \ |
| 408 | vnet/ip/ip_source_and_port_range_check.h \ |
John Lo | 7f358b3 | 2018-04-28 01:19:24 -0400 | [diff] [blame] | 409 | vnet/ip/ip_neighbor.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 410 | vnet/ip/lookup.h \ |
| 411 | vnet/ip/ports.def \ |
| 412 | vnet/ip/protocols.def \ |
| 413 | vnet/ip/punt_error.def \ |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 414 | vnet/ip/punt.api.h \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 415 | vnet/ip/punt.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 416 | |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 417 | API_FILES += \ |
| 418 | vnet/ip/ip.api \ |
Juraj Sloboda | c037423 | 2018-02-01 15:18:49 +0100 | [diff] [blame] | 419 | vnet/ip/rd_cp.api \ |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 420 | vnet/ip/punt.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 421 | |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 422 | libvnet_multiversioning_sources += \ |
Damjan Marion | c9dad5d | 2018-08-11 22:10:29 +0200 | [diff] [blame] | 423 | vnet/ip/ip4_forward.c \ |
Damjan Marion | 3ade6b6 | 2018-05-26 18:53:34 +0200 | [diff] [blame] | 424 | vnet/ip/ip4_input.c |
| 425 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 426 | ######################################## |
Hongjun Ni | 0ad7011 | 2018-08-21 18:52:01 +0800 | [diff] [blame] | 427 | # Layer 2/3 ARP |
| 428 | ######################################## |
| 429 | libvnet_la_SOURCES += \ |
| 430 | vnet/ethernet/arp.c |
| 431 | |
| 432 | nobase_include_HEADERS += \ |
| 433 | vnet/ethernet/arp_packet.h \ |
| 434 | vnet/ethernet/arp.h |
| 435 | |
| 436 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 437 | # Bidirectional Forwarding Detection |
| 438 | ######################################## |
| 439 | |
| 440 | nobase_include_HEADERS += \ |
| 441 | vnet/bfd/bfd_protocol.h \ |
| 442 | vnet/bfd/bfd_main.h \ |
| 443 | vnet/bfd/bfd_api.h \ |
| 444 | vnet/bfd/bfd_udp.h \ |
| 445 | vnet/bfd/bfd.api.h |
| 446 | |
| 447 | libvnet_la_SOURCES += \ |
| 448 | vnet/bfd/bfd_api.h \ |
| 449 | vnet/bfd/bfd_udp.c \ |
| 450 | vnet/bfd/bfd_main.c \ |
| 451 | vnet/bfd/bfd_protocol.c \ |
Klement Sekera | 7388448 | 2017-02-23 09:26:30 +0100 | [diff] [blame] | 452 | vnet/bfd/bfd_cli.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 453 | vnet/bfd/bfd_api.c |
| 454 | |
| 455 | API_FILES += vnet/bfd/bfd.api |
| 456 | |
| 457 | ######################################## |
| 458 | # Layer 3 protocol: IPSec |
| 459 | ######################################## |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 460 | if WITH_LIBSSL |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 461 | libvnet_la_SOURCES += \ |
| 462 | vnet/ipsec/ipsec.c \ |
| 463 | vnet/ipsec/ipsec_cli.c \ |
| 464 | vnet/ipsec/ipsec_format.c \ |
| 465 | vnet/ipsec/ipsec_input.c \ |
| 466 | vnet/ipsec/ipsec_if.c \ |
| 467 | vnet/ipsec/ipsec_if_in.c \ |
Sergio Gonzalez Monroy | db93cd9 | 2017-08-26 15:22:05 +0100 | [diff] [blame] | 468 | vnet/ipsec/esp_format.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 469 | vnet/ipsec/esp_encrypt.c \ |
| 470 | vnet/ipsec/esp_decrypt.c \ |
“mukeshyadav1984” | 430ac93 | 2017-11-23 02:39:33 -0800 | [diff] [blame] | 471 | vnet/ipsec/ah_decrypt.c \ |
| 472 | vnet/ipsec/ah_encrypt.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 473 | vnet/ipsec/ikev2.c \ |
| 474 | vnet/ipsec/ikev2_crypto.c \ |
| 475 | vnet/ipsec/ikev2_cli.c \ |
| 476 | vnet/ipsec/ikev2_payload.c \ |
| 477 | vnet/ipsec/ikev2_format.c \ |
| 478 | vnet/ipsec/ipsec_api.c |
| 479 | |
| 480 | API_FILES += vnet/ipsec/ipsec.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 481 | endif |
| 482 | |
| 483 | libvnet_la_SOURCES += \ |
| 484 | vnet/ipsec/ipsec_output.c |
| 485 | |
| 486 | nobase_include_HEADERS += \ |
| 487 | vnet/ipsec/ipsec.h \ |
| 488 | vnet/ipsec/esp.h \ |
“mukeshyadav1984” | 430ac93 | 2017-11-23 02:39:33 -0800 | [diff] [blame] | 489 | vnet/ipsec/ah.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 490 | vnet/ipsec/ikev2.h \ |
| 491 | vnet/ipsec/ikev2_priv.h \ |
| 492 | vnet/ipsec/ipsec.api.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 493 | |
| 494 | ######################################## |
| 495 | # Layer 3 protocol: osi |
| 496 | ######################################## |
| 497 | libvnet_la_SOURCES += \ |
| 498 | vnet/osi/node.c \ |
| 499 | vnet/osi/osi.c \ |
| 500 | vnet/osi/pg.c |
| 501 | |
| 502 | nobase_include_HEADERS += \ |
| 503 | vnet/osi/osi.h |
| 504 | |
| 505 | ######################################## |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 506 | # Layer 4 protocol: tcp |
| 507 | ######################################## |
| 508 | libvnet_la_SOURCES += \ |
Dave Barach | 3bbcfab | 2017-08-15 19:03:44 -0400 | [diff] [blame] | 509 | vnet/tcp/tcp_api.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 510 | vnet/tcp/tcp_format.c \ |
| 511 | vnet/tcp/tcp_pg.c \ |
| 512 | vnet/tcp/tcp_syn_filter4.c \ |
| 513 | vnet/tcp/tcp_output.c \ |
| 514 | vnet/tcp/tcp_input.c \ |
| 515 | vnet/tcp/tcp_newreno.c \ |
| 516 | vnet/tcp/tcp.c |
| 517 | |
| 518 | nobase_include_HEADERS += \ |
| 519 | vnet/tcp/tcp_packet.h \ |
| 520 | vnet/tcp/tcp_timer.h \ |
Florin Coras | e69f495 | 2017-03-07 10:06:24 -0800 | [diff] [blame] | 521 | vnet/tcp/tcp_debug.h \ |
Florin Coras | c940f09 | 2017-08-23 11:24:02 -0700 | [diff] [blame] | 522 | vnet/tcp/tcp.h \ |
Florin Coras | 452378a | 2018-08-12 23:55:58 -0700 | [diff] [blame] | 523 | vnet/tcp/tcp_error.def \ |
Florin Coras | c940f09 | 2017-08-23 11:24:02 -0700 | [diff] [blame] | 524 | vnet/tcp/tcp.api.h |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 525 | |
Dave Barach | 3bbcfab | 2017-08-15 19:03:44 -0400 | [diff] [blame] | 526 | API_FILES += vnet/tcp/tcp.api |
| 527 | |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 528 | ######################################## |
| 529 | # Layer 4 protocol: udp |
| 530 | ######################################## |
| 531 | libvnet_la_SOURCES += \ |
| 532 | vnet/udp/udp.c \ |
| 533 | vnet/udp/udp_input.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 534 | vnet/udp/udp_format.c \ |
| 535 | vnet/udp/udp_local.c \ |
Neale Ranns | 810086d | 2017-11-05 16:26:46 -0800 | [diff] [blame] | 536 | vnet/udp/udp_pg.c \ |
| 537 | vnet/udp/udp_encap_node.c \ |
| 538 | vnet/udp/udp_encap.c \ |
| 539 | vnet/udp/udp_api.c |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 540 | |
| 541 | nobase_include_HEADERS += \ |
| 542 | vnet/udp/udp_error.def \ |
| 543 | vnet/udp/udp.h \ |
Florin Coras | f149314 | 2017-11-09 14:17:27 -0800 | [diff] [blame] | 544 | vnet/udp/udp_packet.h \ |
| 545 | vnet/udp/udp.api.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 546 | |
Neale Ranns | 810086d | 2017-11-05 16:26:46 -0800 | [diff] [blame] | 547 | API_FILES += vnet/udp/udp.api |
| 548 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 549 | ######################################## |
Marco Varlese | 191a594 | 2017-10-30 18:17:21 +0100 | [diff] [blame] | 550 | # Layer 4 protocol: sctp |
| 551 | ######################################## |
| 552 | libvnet_la_SOURCES += \ |
Marco Varlese | 3c6a976 | 2018-03-01 11:19:59 +0100 | [diff] [blame] | 553 | vnet/sctp/sctp_api.c \ |
Marco Varlese | 191a594 | 2017-10-30 18:17:21 +0100 | [diff] [blame] | 554 | vnet/sctp/sctp.c \ |
| 555 | vnet/sctp/sctp_pg.c \ |
| 556 | vnet/sctp/sctp_input.c \ |
| 557 | vnet/sctp/sctp_output.c \ |
Florin Coras | 4399c2e | 2018-01-25 06:34:42 -0800 | [diff] [blame] | 558 | vnet/sctp/sctp_format.c |
Marco Varlese | 191a594 | 2017-10-30 18:17:21 +0100 | [diff] [blame] | 559 | |
| 560 | nobase_include_HEADERS += \ |
| 561 | vnet/sctp/sctp_error.def \ |
| 562 | vnet/sctp/sctp_packet.h \ |
| 563 | vnet/sctp/sctp_timer.h \ |
Marco Varlese | 3c6a976 | 2018-03-01 11:19:59 +0100 | [diff] [blame] | 564 | vnet/sctp/sctp.h \ |
| 565 | vnet/sctp/sctp.api.h |
| 566 | |
| 567 | API_FILES += vnet/sctp/sctp.api |
Marco Varlese | 191a594 | 2017-10-30 18:17:21 +0100 | [diff] [blame] | 568 | |
| 569 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 570 | # Tunnel protocol: gre |
| 571 | ######################################## |
| 572 | libvnet_la_SOURCES += \ |
| 573 | vnet/gre/gre.c \ |
| 574 | vnet/gre/node.c \ |
| 575 | vnet/gre/interface.c \ |
| 576 | vnet/gre/pg.c \ |
| 577 | vnet/gre/gre_api.c |
| 578 | |
| 579 | nobase_include_HEADERS += \ |
| 580 | vnet/gre/gre.h \ |
| 581 | vnet/gre/packet.h \ |
| 582 | vnet/gre/error.def \ |
| 583 | vnet/gre/gre.api.h |
| 584 | |
| 585 | API_FILES += vnet/gre/gre.api |
| 586 | |
| 587 | ######################################## |
Ole Troan | 298c695 | 2018-03-08 12:30:43 +0100 | [diff] [blame] | 588 | # Tunnel protocol: ipip |
| 589 | ######################################## |
| 590 | libvnet_la_SOURCES += \ |
| 591 | vnet/ipip/ipip.c \ |
| 592 | vnet/ipip/node.c \ |
| 593 | vnet/ipip/sixrd.c \ |
| 594 | vnet/ipip/ipip_api.c \ |
| 595 | vnet/ipip/ipip_cli.c |
| 596 | |
| 597 | nobase_include_HEADERS += \ |
Jon Loeliger | 1fcbd72 | 2018-03-14 14:08:43 -0500 | [diff] [blame] | 598 | vnet/ipip/ipip.api.h \ |
Ole Troan | 298c695 | 2018-03-08 12:30:43 +0100 | [diff] [blame] | 599 | vnet/ipip/ipip.h |
| 600 | |
| 601 | API_FILES += vnet/ipip/ipip.api |
| 602 | |
| 603 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 604 | # Tunnel protocol: l2tpv3 |
| 605 | ######################################## |
| 606 | libvnet_la_SOURCES += \ |
| 607 | vnet/l2tp/l2tp.c \ |
| 608 | vnet/l2tp/encap.c \ |
| 609 | vnet/l2tp/decap.c \ |
| 610 | vnet/l2tp/pg.c \ |
| 611 | vnet/l2tp/l2tp_api.c |
| 612 | |
| 613 | nobase_include_HEADERS += \ |
| 614 | vnet/l2tp/l2tp.h \ |
| 615 | vnet/l2tp/packet.h \ |
| 616 | vnet/l2tp/l2tp.api.h |
| 617 | |
| 618 | API_FILES += vnet/l2tp/l2tp.api |
| 619 | |
| 620 | ######################################## |
| 621 | # Tunnel protocol: gre+mpls |
| 622 | ######################################## |
| 623 | libvnet_la_SOURCES += \ |
| 624 | vnet/mpls/mpls.c \ |
| 625 | vnet/mpls/mpls_lookup.c \ |
| 626 | vnet/mpls/mpls_output.c \ |
| 627 | vnet/mpls/mpls_features.c \ |
Neale Ranns | 696e88d | 2017-03-16 07:34:55 -0400 | [diff] [blame] | 628 | vnet/mpls/mpls_input.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 629 | vnet/mpls/interface.c \ |
| 630 | vnet/mpls/mpls_tunnel.c \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 631 | vnet/mpls/pg.c \ |
| 632 | vnet/mpls/mpls_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 633 | |
| 634 | nobase_include_HEADERS += \ |
| 635 | vnet/mpls/mpls.h \ |
| 636 | vnet/mpls/mpls_types.h \ |
| 637 | vnet/mpls/mpls_tunnel.h \ |
| 638 | vnet/mpls/packet.h \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 639 | vnet/mpls/error.def \ |
| 640 | vnet/mpls/mpls.api.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 641 | |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 642 | API_FILES += vnet/mpls/mpls.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 643 | |
| 644 | ######################################## |
| 645 | # Tunnel protocol: vxlan-gpe |
| 646 | ######################################## |
| 647 | |
| 648 | libvnet_la_SOURCES += \ |
| 649 | vnet/vxlan-gpe/vxlan_gpe.c \ |
| 650 | vnet/vxlan-gpe/encap.c \ |
| 651 | vnet/vxlan-gpe/decap.c \ |
| 652 | vnet/vxlan-gpe/vxlan_gpe_api.c |
| 653 | |
| 654 | nobase_include_HEADERS += \ |
| 655 | vnet/vxlan-gpe/vxlan_gpe.h \ |
| 656 | vnet/vxlan-gpe/vxlan_gpe_packet.h \ |
| 657 | vnet/vxlan-gpe/vxlan_gpe_error.def \ |
| 658 | vnet/vxlan-gpe/vxlan_gpe.api.h |
| 659 | |
| 660 | API_FILES += vnet/vxlan-gpe/vxlan_gpe.api |
| 661 | |
| 662 | ######################################## |
| 663 | # Tunnel protocol: ipsec+gre |
| 664 | ######################################## |
| 665 | libvnet_la_SOURCES += \ |
| 666 | vnet/ipsec-gre/ipsec_gre.c \ |
| 667 | vnet/ipsec-gre/node.c \ |
| 668 | vnet/ipsec-gre/interface.c \ |
| 669 | vnet/ipsec-gre/ipsec_gre_api.c |
| 670 | |
| 671 | nobase_include_HEADERS += \ |
| 672 | vnet/ipsec-gre/ipsec_gre.h \ |
| 673 | vnet/ipsec-gre/error.def \ |
| 674 | vnet/ipsec-gre/ipsec_gre.api.h |
| 675 | |
| 676 | API_FILES += vnet/ipsec-gre/ipsec_gre.api |
| 677 | |
| 678 | ######################################## |
| 679 | # LISP control plane: lisp-cp |
| 680 | ######################################## |
| 681 | |
| 682 | libvnet_la_SOURCES += \ |
| 683 | vnet/lisp-cp/lisp_types.c \ |
| 684 | vnet/lisp-cp/lisp_cp_dpo.c \ |
| 685 | vnet/lisp-cp/control.c \ |
| 686 | vnet/lisp-cp/gid_dictionary.c \ |
| 687 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 688 | vnet/lisp-cp/packets.c \ |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 689 | vnet/lisp-cp/one_cli.c \ |
Florin Coras | f3dc11a | 2017-01-24 03:13:43 -0800 | [diff] [blame] | 690 | vnet/lisp-cp/lisp_cli.c \ |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 691 | vnet/lisp-cp/one_api.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 692 | vnet/lisp-cp/lisp_api.c |
| 693 | |
| 694 | nobase_include_HEADERS += \ |
| 695 | vnet/lisp-cp/lisp_types.h \ |
| 696 | vnet/lisp-cp/packets.h \ |
| 697 | vnet/lisp-cp/gid_dictionary.h \ |
| 698 | vnet/lisp-cp/lisp_cp_messages.h \ |
| 699 | vnet/lisp-cp/lisp_msg_serdes.h \ |
| 700 | vnet/lisp-cp/control.h \ |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 701 | vnet/lisp-cp/one.api.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 702 | vnet/lisp-cp/lisp.api.h |
| 703 | |
| 704 | API_FILES += vnet/lisp-cp/lisp.api |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 705 | API_FILES += vnet/lisp-cp/one.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 706 | |
| 707 | if ENABLE_TESTS |
| 708 | LDS = \ |
| 709 | libvppinfra.la \ |
| 710 | libvnet.la \ |
| 711 | libvlib.la \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 712 | libsvm.la \ |
| 713 | libsvmdb.la \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 714 | libvlibmemory.la \ |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 715 | -lpthread -ldl -lrt -lm |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 716 | |
| 717 | TESTS += test_cp_serdes test_lisp_types |
| 718 | |
| 719 | test_cp_serdes_SOURCES = \ |
| 720 | tests/vnet/lisp-cp/test_cp_serdes.c \ |
| 721 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 722 | vnet/lisp-cp/lisp_types.c \ |
| 723 | vnet/lisp-cp/packets.c \ |
| 724 | vnet/ip/ip_checksum.c |
| 725 | |
| 726 | test_lisp_types_SOURCES = \ |
| 727 | tests/vnet/lisp-cp/test_lisp_types.c \ |
| 728 | vnet/lisp-cp/lisp_types.c |
| 729 | |
| 730 | test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 731 | test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 732 | |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 733 | test_cp_serdes_LDADD = $(LDS) |
| 734 | test_lisp_types_LDADD = $(LDS) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 735 | endif |
| 736 | |
| 737 | ######################################## |
| 738 | # Tunnel protocol: lisp-gpe |
| 739 | ######################################## |
| 740 | |
| 741 | libvnet_la_SOURCES += \ |
| 742 | vnet/lisp-gpe/lisp_gpe.c \ |
| 743 | vnet/lisp-gpe/lisp_gpe_sub_interface.c \ |
| 744 | vnet/lisp-gpe/lisp_gpe_adjacency.c \ |
| 745 | vnet/lisp-gpe/lisp_gpe_tunnel.c \ |
| 746 | vnet/lisp-gpe/lisp_gpe_fwd_entry.c \ |
| 747 | vnet/lisp-gpe/lisp_gpe_tenant.c \ |
| 748 | vnet/lisp-gpe/interface.c \ |
| 749 | vnet/lisp-gpe/decap.c \ |
| 750 | vnet/lisp-gpe/lisp_gpe_api.c |
| 751 | |
| 752 | nobase_include_HEADERS += \ |
| 753 | vnet/lisp-gpe/lisp_gpe.h \ |
| 754 | vnet/lisp-gpe/lisp_gpe_fwd_entry.h \ |
| 755 | vnet/lisp-gpe/lisp_gpe_tenant.h \ |
| 756 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
| 757 | vnet/lisp-gpe/lisp_gpe_error.def \ |
| 758 | vnet/lisp-gpe/lisp_gpe.api.h |
| 759 | |
| 760 | API_FILES += vnet/lisp-gpe/lisp_gpe.api |
| 761 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 762 | ######################################## |
| 763 | # DHCP client |
| 764 | ######################################## |
| 765 | libvnet_la_SOURCES += \ |
| 766 | vnet/dhcp/client.c \ |
Neale Ranns | 54c6dc4 | 2018-01-17 10:29:10 -0800 | [diff] [blame] | 767 | vnet/dhcp/dhcp_client_detect.c \ |
Juraj Sloboda | dd3b8f7 | 2018-05-04 14:20:06 +0200 | [diff] [blame] | 768 | vnet/dhcp/dhcp6_client_common_dp.c \ |
Juraj Sloboda | 81119e8 | 2018-05-25 14:02:20 +0200 | [diff] [blame] | 769 | vnet/dhcp/dhcp6_pd_client_dp.c \ |
| 770 | vnet/dhcp/dhcp6_pd_client_cp.c \ |
Juraj Sloboda | dd3b8f7 | 2018-05-04 14:20:06 +0200 | [diff] [blame] | 771 | vnet/dhcp/dhcp6_ia_na_client_dp.c \ |
| 772 | vnet/dhcp/dhcp6_ia_na_client_cp.c \ |
Pavel Kotucek | c8d8770 | 2017-01-25 07:25:32 +0100 | [diff] [blame] | 773 | vnet/dhcp/dhcp_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 774 | |
| 775 | nobase_include_HEADERS += \ |
Neale Ranns | 2dd6852 | 2017-02-16 03:38:59 -0800 | [diff] [blame] | 776 | vnet/dhcp/client.h \ |
Juraj Sloboda | dd3b8f7 | 2018-05-04 14:20:06 +0200 | [diff] [blame] | 777 | vnet/dhcp/dhcp6_client_common_dp.h \ |
Juraj Sloboda | 81119e8 | 2018-05-25 14:02:20 +0200 | [diff] [blame] | 778 | vnet/dhcp/dhcp6_pd_client_dp.h \ |
Juraj Sloboda | dd3b8f7 | 2018-05-04 14:20:06 +0200 | [diff] [blame] | 779 | vnet/dhcp/dhcp6_ia_na_client_dp.h \ |
Juraj Sloboda | 81119e8 | 2018-05-25 14:02:20 +0200 | [diff] [blame] | 780 | vnet/dhcp/dhcp.api.h \ |
Juraj Sloboda | dd3b8f7 | 2018-05-04 14:20:06 +0200 | [diff] [blame] | 781 | vnet/dhcp/dhcp6_pd_client_cp.api.h \ |
| 782 | vnet/dhcp/dhcp6_ia_na_client_cp.api.h |
Pavel Kotucek | c8d8770 | 2017-01-25 07:25:32 +0100 | [diff] [blame] | 783 | |
Juraj Sloboda | 81119e8 | 2018-05-25 14:02:20 +0200 | [diff] [blame] | 784 | API_FILES += \ |
| 785 | vnet/dhcp/dhcp.api \ |
Juraj Sloboda | dd3b8f7 | 2018-05-04 14:20:06 +0200 | [diff] [blame] | 786 | vnet/dhcp/dhcp6_pd_client_cp.api \ |
| 787 | vnet/dhcp/dhcp6_ia_na_client_cp.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 788 | |
| 789 | ######################################## |
| 790 | # DHCP proxy |
| 791 | ######################################## |
| 792 | libvnet_la_SOURCES += \ |
Neale Ranns | 2dd6852 | 2017-02-16 03:38:59 -0800 | [diff] [blame] | 793 | vnet/dhcp/dhcp6_proxy_node.c \ |
| 794 | vnet/dhcp/dhcp4_proxy_node.c \ |
| 795 | vnet/dhcp/dhcp_proxy.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 796 | |
| 797 | nobase_include_HEADERS += \ |
Neale Ranns | 2dd6852 | 2017-02-16 03:38:59 -0800 | [diff] [blame] | 798 | vnet/dhcp/dhcp4_packet.h \ |
| 799 | vnet/dhcp/dhcp6_packet.h \ |
| 800 | vnet/dhcp/dhcp_proxy.h \ |
| 801 | vnet/dhcp/dhcp6_proxy_error.def \ |
| 802 | vnet/dhcp/dhcp4_proxy_error.def |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 803 | |
| 804 | ######################################## |
| 805 | # ipv6 segment routing |
| 806 | ######################################## |
| 807 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 808 | libvnet_la_SOURCES += \ |
Pablo Camarillo | 5d73eec | 2017-04-24 17:51:56 +0200 | [diff] [blame] | 809 | vnet/srv6/sr.c \ |
| 810 | vnet/srv6/sr_localsid.c \ |
| 811 | vnet/srv6/sr_policy_rewrite.c \ |
| 812 | vnet/srv6/sr_steering.c \ |
| 813 | vnet/srv6/sr_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 814 | |
| 815 | nobase_include_HEADERS += \ |
Pablo Camarillo | 5d73eec | 2017-04-24 17:51:56 +0200 | [diff] [blame] | 816 | vnet/srv6/sr_packet.h \ |
| 817 | vnet/srv6/sr.h \ |
| 818 | vnet/srv6/sr.api.h |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 819 | |
Pablo Camarillo | 5d73eec | 2017-04-24 17:51:56 +0200 | [diff] [blame] | 820 | API_FILES += vnet/srv6/sr.api |
| 821 | |
| 822 | ######################################## |
| 823 | # mpls segment routing |
| 824 | ######################################## |
| 825 | |
| 826 | libvnet_la_SOURCES += \ |
| 827 | vnet/srmpls/sr_mpls_policy.c \ |
Pablo Camarillo | 4299882 | 2017-07-13 09:41:32 +0200 | [diff] [blame] | 828 | vnet/srmpls/sr_mpls_steering.c \ |
| 829 | vnet/srmpls/sr_mpls_api.c |
Pablo Camarillo | 5d73eec | 2017-04-24 17:51:56 +0200 | [diff] [blame] | 830 | |
| 831 | |
| 832 | nobase_include_HEADERS += \ |
Pablo Camarillo | 4299882 | 2017-07-13 09:41:32 +0200 | [diff] [blame] | 833 | vnet/srmpls/sr_mpls.h \ |
| 834 | vnet/srmpls/sr_mpls.api.h |
| 835 | |
| 836 | API_FILES += vnet/srmpls/sr_mpls.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 837 | |
| 838 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 839 | # IPFIX / netflow v10 |
| 840 | ######################################## |
| 841 | libvnet_la_SOURCES += \ |
Ole Troan | a9855ef | 2018-05-02 12:45:10 +0200 | [diff] [blame] | 842 | vnet/ipfix-export/flow_report.c \ |
| 843 | vnet/ipfix-export/flow_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 844 | |
| 845 | nobase_include_HEADERS += \ |
Ole Troan | a9855ef | 2018-05-02 12:45:10 +0200 | [diff] [blame] | 846 | vnet/ipfix-export/flow_report.h \ |
| 847 | vnet/ipfix-export/ipfix_info_elements.h \ |
| 848 | vnet/ipfix-export/ipfix_packet.h \ |
| 849 | vnet/ipfix-export/ipfix_export.api.h |
Pavel Kotucek | eb9e666 | 2017-01-24 13:40:26 +0100 | [diff] [blame] | 850 | |
Ole Troan | a9855ef | 2018-05-02 12:45:10 +0200 | [diff] [blame] | 851 | API_FILES += vnet/ipfix-export/ipfix_export.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 852 | |
| 853 | ######################################## |
| 854 | # IPFIX classify code |
| 855 | ######################################## |
| 856 | |
| 857 | libvnet_la_SOURCES += \ |
Ole Troan | a9855ef | 2018-05-02 12:45:10 +0200 | [diff] [blame] | 858 | vnet/ipfix-export/flow_report_classify.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 859 | |
| 860 | nobase_include_HEADERS += \ |
Ole Troan | a9855ef | 2018-05-02 12:45:10 +0200 | [diff] [blame] | 861 | vnet/ipfix-export/flow_report_classify.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 862 | |
| 863 | ######################################## |
| 864 | # lawful intercept |
| 865 | ######################################## |
| 866 | |
| 867 | libvnet_la_SOURCES += \ |
| 868 | vnet/lawful-intercept/lawful_intercept.c \ |
| 869 | vnet/lawful-intercept/node.c |
| 870 | |
| 871 | nobase_include_HEADERS += \ |
| 872 | vnet/lawful-intercept/lawful_intercept.h |
| 873 | |
| 874 | ######################################## |
| 875 | # SPAN (port mirroring) |
| 876 | ######################################## |
| 877 | |
| 878 | libvnet_la_SOURCES += \ |
| 879 | vnet/span/span_api.c \ |
| 880 | vnet/span/span.c \ |
| 881 | vnet/span/node.c |
| 882 | |
| 883 | nobase_include_HEADERS += \ |
| 884 | vnet/span/span.api.h \ |
| 885 | vnet/span/span.h |
| 886 | |
| 887 | API_FILES += vnet/span/span.api |
| 888 | |
| 889 | ######################################## |
Dave Barach | 6545716 | 2017-10-10 17:53:14 -0400 | [diff] [blame] | 890 | # DNS proxy, API |
| 891 | ######################################## |
| 892 | libvnet_la_SOURCES += \ |
| 893 | vnet/dns/dns.c \ |
| 894 | vnet/dns/dns.h \ |
| 895 | vnet/dns/dns_packet.h \ |
| 896 | vnet/dns/reply_node.c \ |
Dave Barach | 9749450 | 2017-11-04 09:44:38 -0400 | [diff] [blame] | 897 | vnet/dns/request_node.c \ |
Dave Barach | 6545716 | 2017-10-10 17:53:14 -0400 | [diff] [blame] | 898 | vnet/dns/resolver_process.c |
| 899 | |
| 900 | nobase_include_HEADERS += \ |
| 901 | vnet/dns/dns.api.h \ |
| 902 | vnet/dns/dns.h |
| 903 | |
| 904 | API_FILES += vnet/dns/dns.api |
| 905 | |
| 906 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 907 | # Packet generator |
| 908 | ######################################## |
| 909 | |
| 910 | libvnet_la_SOURCES += \ |
| 911 | vnet/pg/cli.c \ |
| 912 | vnet/pg/edit.c \ |
| 913 | vnet/pg/init.c \ |
| 914 | vnet/pg/input.c \ |
| 915 | vnet/pg/output.c \ |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 916 | vnet/pg/stream.c \ |
| 917 | vnet/pg/pg_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 918 | |
| 919 | nobase_include_HEADERS += \ |
| 920 | vnet/pg/pg.h \ |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 921 | vnet/pg/edit.h \ |
| 922 | vnet/pg/pg.api.h |
| 923 | |
| 924 | API_FILES += vnet/pg/pg.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 925 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 926 | ######################################## |
| 927 | # virtio |
| 928 | ######################################## |
| 929 | |
Damjan Marion | c99b4cd | 2017-12-04 15:25:58 +0100 | [diff] [blame] | 930 | libvnet_la_SOURCES += \ |
| 931 | vnet/devices/virtio/device.c \ |
| 932 | vnet/devices/virtio/node.c \ |
Mohsin Kazmi | e7cde31 | 2018-06-26 17:20:11 +0200 | [diff] [blame] | 933 | vnet/devices/virtio/vhost_user.c \ |
| 934 | vnet/devices/virtio/vhost_user_input.c \ |
| 935 | vnet/devices/virtio/vhost_user_output.c \ |
Damjan Marion | c99b4cd | 2017-12-04 15:25:58 +0100 | [diff] [blame] | 936 | vnet/devices/virtio/vhost_user_api.c \ |
Damjan Marion | 8389fb9 | 2017-10-13 18:29:53 +0200 | [diff] [blame] | 937 | vnet/devices/virtio/virtio.c |
| 938 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 939 | |
Damjan Marion | c99b4cd | 2017-12-04 15:25:58 +0100 | [diff] [blame] | 940 | nobase_include_HEADERS += \ |
| 941 | vnet/devices/virtio/virtio.h \ |
Mohsin Kazmi | e7cde31 | 2018-06-26 17:20:11 +0200 | [diff] [blame] | 942 | vnet/devices/virtio/vhost_user.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 943 | vnet/devices/virtio/vhost_user.api.h |
| 944 | |
Mohsin Kazmi | e7cde31 | 2018-06-26 17:20:11 +0200 | [diff] [blame] | 945 | libvnet_multiversioning_sources += \ |
| 946 | vnet/devices/virtio/vhost_user_input.c \ |
| 947 | vnet/devices/virtio/vhost_user_output.c |
| 948 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 949 | API_FILES += vnet/devices/virtio/vhost_user.api |
| 950 | |
| 951 | ######################################## |
Damjan Marion | c99b4cd | 2017-12-04 15:25:58 +0100 | [diff] [blame] | 952 | # tap interface (with virtio backend) |
| 953 | ######################################## |
| 954 | |
| 955 | libvnet_la_SOURCES += \ |
| 956 | vnet/devices/tap/cli.c \ |
| 957 | vnet/devices/tap/tap.c \ |
| 958 | vnet/devices/tap/tapv2_api.c |
| 959 | |
| 960 | nobase_include_HEADERS += \ |
| 961 | vnet/devices/tap/tap.h \ |
| 962 | vnet/devices/tap/tapv2.api.h |
| 963 | |
| 964 | API_FILES += vnet/devices/tap/tapv2.api |
| 965 | |
| 966 | ######################################## |
Neale Ranns | 17ff3c1 | 2018-07-04 10:24:24 -0700 | [diff] [blame] | 967 | # tap interface (with virtio backend) |
| 968 | ######################################## |
| 969 | |
| 970 | libvnet_la_SOURCES += \ |
| 971 | vnet/devices/pipe/pipe_api.c \ |
| 972 | vnet/devices/pipe/pipe.c |
| 973 | |
| 974 | nobase_include_HEADERS += \ |
Matthew Smith | 999a0a4 | 2018-07-09 10:19:10 -0500 | [diff] [blame] | 975 | vnet/devices/pipe/pipe.h \ |
| 976 | vnet/devices/pipe/pipe.api.h |
Neale Ranns | 17ff3c1 | 2018-07-04 10:24:24 -0700 | [diff] [blame] | 977 | |
| 978 | API_FILES += vnet/devices/pipe/pipe.api |
| 979 | |
| 980 | ######################################## |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 981 | # session managmeent |
| 982 | ######################################## |
| 983 | |
| 984 | libvnet_la_SOURCES += \ |
| 985 | vnet/session/session.c \ |
Florin Coras | cea194d | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 986 | vnet/session/session_table.c \ |
Florin Coras | 1c71045 | 2017-10-17 00:03:13 -0700 | [diff] [blame] | 987 | vnet/session/session_rules_table.c \ |
Florin Coras | 04e5344 | 2017-07-16 17:12:15 -0700 | [diff] [blame] | 988 | vnet/session/session_lookup.c \ |
| 989 | vnet/session/session_node.c \ |
Florin Coras | 3cbc04b | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 990 | vnet/session/transport.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 991 | vnet/session/application.c \ |
| 992 | vnet/session/session_cli.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 993 | vnet/session/application_interface.c \ |
Florin Coras | cea194d | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 994 | vnet/session/application_namespace.c \ |
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 995 | vnet/session/segment_manager.c \ |
Florin Coras | cea194d | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 996 | vnet/session/session_test.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 997 | vnet/session/session_api.c |
| 998 | |
| 999 | nobase_include_HEADERS += \ |
| 1000 | vnet/session/session.h \ |
Florin Coras | cea194d | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 1001 | vnet/session/session_table.h \ |
Florin Coras | 1c71045 | 2017-10-17 00:03:13 -0700 | [diff] [blame] | 1002 | vnet/session/session_rules_table.h \ |
Florin Coras | 04e5344 | 2017-07-16 17:12:15 -0700 | [diff] [blame] | 1003 | vnet/session/stream_session.h \ |
| 1004 | vnet/session/session_lookup.h \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 1005 | vnet/session/application.h \ |
| 1006 | vnet/session/transport.h \ |
Florin Coras | 04e5344 | 2017-07-16 17:12:15 -0700 | [diff] [blame] | 1007 | vnet/session/transport_interface.h \ |
Alexander Popovsky (apopovsk) | 6f6f52a | 2017-03-03 16:06:26 -0800 | [diff] [blame] | 1008 | vnet/session/application_interface.h \ |
Florin Coras | cea194d | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 1009 | vnet/session/application_namespace.h \ |
Florin Coras | e69f495 | 2017-03-07 10:06:24 -0800 | [diff] [blame] | 1010 | vnet/session/session_debug.h \ |
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 1011 | vnet/session/segment_manager.h \ |
Florin Coras | 1c71045 | 2017-10-17 00:03:13 -0700 | [diff] [blame] | 1012 | vnet/session/mma_template.h \ |
| 1013 | vnet/session/mma_template.c \ |
| 1014 | vnet/session/mma_16.h \ |
| 1015 | vnet/session/mma_40.h \ |
Alexander Popovsky (apopovsk) | 6f6f52a | 2017-03-03 16:06:26 -0800 | [diff] [blame] | 1016 | vnet/session/session.api.h |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 1017 | |
| 1018 | API_FILES += vnet/session/session.api |
| 1019 | |
| 1020 | ######################################## |
Florin Coras | 4399c2e | 2018-01-25 06:34:42 -0800 | [diff] [blame] | 1021 | # session layer applications |
| 1022 | ######################################## |
| 1023 | |
| 1024 | libvnet_la_SOURCES += \ |
| 1025 | vnet/session-apps/echo_client.c \ |
| 1026 | vnet/session-apps/echo_server.c \ |
| 1027 | vnet/session-apps/http_server.c \ |
| 1028 | vnet/session-apps/proxy.c |
| 1029 | |
| 1030 | nobase_include_HEADERS += \ |
| 1031 | vnet/session-apps/echo_client.h \ |
| 1032 | vnet/session-apps/proxy.h |
| 1033 | |
| 1034 | ######################################## |
Florin Coras | d77eee6 | 2018-03-07 08:49:27 -0800 | [diff] [blame] | 1035 | # TLS protocol |
| 1036 | ######################################## |
| 1037 | |
| 1038 | libvnet_la_SOURCES += vnet/tls/tls.c |
| 1039 | |
| 1040 | nobase_include_HEADERS += \ |
| 1041 | vnet/tls/tls.h |
| 1042 | |
| 1043 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1044 | # Linux packet interface |
| 1045 | ######################################## |
| 1046 | |
| 1047 | libvnet_la_SOURCES += \ |
| 1048 | vnet/devices/af_packet/af_packet.c \ |
| 1049 | vnet/devices/af_packet/device.c \ |
| 1050 | vnet/devices/af_packet/node.c \ |
| 1051 | vnet/devices/af_packet/cli.c \ |
| 1052 | vnet/devices/af_packet/af_packet_api.c |
| 1053 | |
| 1054 | nobase_include_HEADERS += \ |
| 1055 | vnet/devices/af_packet/af_packet.h \ |
| 1056 | vnet/devices/af_packet/af_packet.api.h |
| 1057 | |
| 1058 | API_FILES += vnet/devices/af_packet/af_packet.api |
| 1059 | |
| 1060 | ######################################## |
| 1061 | # NETMAP interface |
| 1062 | ######################################## |
| 1063 | |
| 1064 | libvnet_la_SOURCES += \ |
| 1065 | vnet/devices/netmap/netmap.c \ |
| 1066 | vnet/devices/netmap/device.c \ |
| 1067 | vnet/devices/netmap/node.c \ |
| 1068 | vnet/devices/netmap/cli.c \ |
| 1069 | vnet/devices/netmap/netmap_api.c |
| 1070 | |
| 1071 | nobase_include_HEADERS += \ |
| 1072 | vnet/devices/netmap/netmap.h \ |
| 1073 | vnet/devices/netmap/netmap.api.h |
| 1074 | |
| 1075 | API_FILES += vnet/devices/netmap/netmap.api |
| 1076 | |
| 1077 | ######################################## |
| 1078 | # Driver feature graph arc support |
| 1079 | ######################################## |
| 1080 | |
| 1081 | libvnet_la_SOURCES += \ |
| 1082 | vnet/feature/feature.c \ |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 1083 | vnet/feature/feature_api.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1084 | vnet/feature/registration.c |
| 1085 | |
| 1086 | nobase_include_HEADERS += \ |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 1087 | vnet/feature/feature.h \ |
| 1088 | vnet/feature/feature.api.h |
| 1089 | |
| 1090 | API_FILES += vnet/feature/feature.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1091 | |
| 1092 | ######################################## |
| 1093 | # Unix kernel related |
| 1094 | ######################################## |
| 1095 | |
| 1096 | # FIXME: vnet/unix/hgshm.c |
| 1097 | |
| 1098 | libvnet_la_SOURCES += \ |
| 1099 | vnet/unix/gdb_funcs.c \ |
| 1100 | vnet/unix/pcap.c \ |
| 1101 | vnet/unix/tap_api.c \ |
| 1102 | vnet/unix/tapcli.c \ |
| 1103 | vnet/unix/tuntap.c |
| 1104 | |
| 1105 | nobase_include_HEADERS += \ |
| 1106 | vnet/unix/pcap.h \ |
| 1107 | vnet/unix/tuntap.h \ |
| 1108 | vnet/unix/tap.api.h \ |
| 1109 | vnet/unix/tapcli.h |
| 1110 | |
| 1111 | API_FILES += vnet/unix/tap.api |
| 1112 | |
| 1113 | ######################################## |
| 1114 | # FIB |
| 1115 | ######################################## |
| 1116 | |
| 1117 | libvnet_la_SOURCES += \ |
| 1118 | vnet/fib/fib.c \ |
| 1119 | vnet/fib/fib_test.c \ |
| 1120 | vnet/fib/ip4_fib.c \ |
| 1121 | vnet/fib/ip6_fib.c \ |
| 1122 | vnet/fib/mpls_fib.c \ |
| 1123 | vnet/fib/fib_table.c \ |
| 1124 | vnet/fib/fib_walk.c \ |
| 1125 | vnet/fib/fib_types.c \ |
| 1126 | vnet/fib/fib_node.c \ |
| 1127 | vnet/fib/fib_node_list.c \ |
| 1128 | vnet/fib/fib_entry.c \ |
| 1129 | vnet/fib/fib_entry_src.c \ |
| 1130 | vnet/fib/fib_entry_src_rr.c \ |
| 1131 | vnet/fib/fib_entry_src_interface.c \ |
Neale Ranns | 2303cb1 | 2018-02-21 04:57:17 -0800 | [diff] [blame] | 1132 | vnet/fib/fib_entry_src_interpose.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1133 | vnet/fib/fib_entry_src_default_route.c \ |
| 1134 | vnet/fib/fib_entry_src_special.c \ |
| 1135 | vnet/fib/fib_entry_src_api.c \ |
| 1136 | vnet/fib/fib_entry_src_adj.c \ |
| 1137 | vnet/fib/fib_entry_src_mpls.c \ |
| 1138 | vnet/fib/fib_entry_src_lisp.c \ |
| 1139 | vnet/fib/fib_entry_cover.c \ |
| 1140 | vnet/fib/fib_entry_delegate.c \ |
| 1141 | vnet/fib/fib_path_list.c \ |
| 1142 | vnet/fib/fib_path.c \ |
| 1143 | vnet/fib/fib_path_ext.c \ |
| 1144 | vnet/fib/fib_urpf_list.c \ |
Neale Ranns | 88fc83e | 2017-04-05 08:11:14 -0700 | [diff] [blame] | 1145 | vnet/fib/fib_attached_export.c \ |
Neale Ranns | 8145842 | 2018-03-12 06:59:36 -0700 | [diff] [blame] | 1146 | vnet/fib/fib_api.c \ |
Neale Ranns | 88fc83e | 2017-04-05 08:11:14 -0700 | [diff] [blame] | 1147 | vnet/fib/fib_bfd.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1148 | |
| 1149 | nobase_include_HEADERS += \ |
| 1150 | vnet/fib/fib.h \ |
| 1151 | vnet/fib/fib_api.h \ |
| 1152 | vnet/fib/ip4_fib.h \ |
| 1153 | vnet/fib/ip6_fib.h \ |
| 1154 | vnet/fib/fib_types.h \ |
| 1155 | vnet/fib/fib_table.h \ |
| 1156 | vnet/fib/fib_node.h \ |
| 1157 | vnet/fib/fib_node_list.h \ |
| 1158 | vnet/fib/fib_entry.h \ |
| 1159 | vnet/fib/fib_entry_delegate.h |
| 1160 | |
| 1161 | ######################################## |
| 1162 | # ADJ |
| 1163 | ######################################## |
| 1164 | |
| 1165 | libvnet_la_SOURCES += \ |
| 1166 | vnet/adj/adj_nbr.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1167 | vnet/adj/adj_glean.c \ |
| 1168 | vnet/adj/adj_midchain.c \ |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 1169 | vnet/adj/adj_mcast.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1170 | vnet/adj/adj_l2.c \ |
Florin Coras | ce1b4c7 | 2017-01-26 14:25:34 -0800 | [diff] [blame] | 1171 | vnet/adj/adj_nsh.c \ |
Neale Ranns | fa5d198 | 2017-02-20 14:19:51 -0800 | [diff] [blame] | 1172 | vnet/adj/adj.c \ |
Neale Ranns | 88fc83e | 2017-04-05 08:11:14 -0700 | [diff] [blame] | 1173 | vnet/adj/rewrite.c \ |
| 1174 | vnet/adj/adj_bfd.c \ |
| 1175 | vnet/adj/adj_delegate.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1176 | |
| 1177 | nobase_include_HEADERS += \ |
| 1178 | vnet/adj/adj.h \ |
| 1179 | vnet/adj/adj_types.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1180 | vnet/adj/adj_glean.h \ |
Florin Coras | ce1b4c7 | 2017-01-26 14:25:34 -0800 | [diff] [blame] | 1181 | vnet/adj/adj_nsh.h \ |
Neale Ranns | fa5d198 | 2017-02-20 14:19:51 -0800 | [diff] [blame] | 1182 | vnet/adj/adj_nbr.h \ |
| 1183 | vnet/adj/rewrite.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1184 | |
| 1185 | ######################################## |
| 1186 | # Data-Plane Objects |
| 1187 | ######################################## |
| 1188 | |
| 1189 | libvnet_la_SOURCES += \ |
| 1190 | vnet/dpo/dpo.c \ |
| 1191 | vnet/dpo/drop_dpo.c \ |
| 1192 | vnet/dpo/ip_null_dpo.c \ |
Neale Ranns | 53da221 | 2018-02-24 02:11:19 -0800 | [diff] [blame] | 1193 | vnet/dpo/ip6_ll_dpo.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1194 | vnet/dpo/punt_dpo.c \ |
| 1195 | vnet/dpo/receive_dpo.c \ |
| 1196 | vnet/dpo/load_balance.c \ |
| 1197 | vnet/dpo/load_balance_map.c \ |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 1198 | vnet/dpo/lookup_dpo.c \ |
| 1199 | vnet/dpo/classify_dpo.c \ |
| 1200 | vnet/dpo/replicate_dpo.c \ |
Neale Ranns | 43161a8 | 2017-08-12 02:12:00 -0700 | [diff] [blame] | 1201 | vnet/dpo/interface_rx_dpo.c \ |
| 1202 | vnet/dpo/interface_tx_dpo.c \ |
Neale Ranns | 0f26c5a | 2017-03-01 15:12:11 -0800 | [diff] [blame] | 1203 | vnet/dpo/mpls_disposition.c \ |
Neale Ranns | 6f63115 | 2017-10-03 08:20:21 -0700 | [diff] [blame] | 1204 | vnet/dpo/mpls_label_dpo.c \ |
Andrew Yourtchenko | 5f3fcb9 | 2017-10-25 05:50:37 -0700 | [diff] [blame] | 1205 | vnet/dpo/l3_proxy_dpo.c \ |
Neale Ranns | f068c3e | 2018-01-03 04:18:48 -0800 | [diff] [blame] | 1206 | vnet/dpo/dvr_dpo.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1207 | |
| 1208 | nobase_include_HEADERS += \ |
| 1209 | vnet/dpo/load_balance.h \ |
| 1210 | vnet/dpo/drop_dpo.h \ |
| 1211 | vnet/dpo/lookup_dpo.h \ |
| 1212 | vnet/dpo/punt_dpo.h \ |
| 1213 | vnet/dpo/classify_dpo.h \ |
| 1214 | vnet/dpo/receive_dpo.h \ |
| 1215 | vnet/dpo/ip_null_dpo.h \ |
Neale Ranns | 60c1c7c | 2017-11-02 07:39:24 -0700 | [diff] [blame] | 1216 | vnet/dpo/replicate_dpo.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1217 | vnet/dpo/dpo.h |
| 1218 | |
| 1219 | ######################################## |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 1220 | # Multicast FIB |
| 1221 | ######################################## |
| 1222 | |
| 1223 | libvnet_la_SOURCES += \ |
| 1224 | vnet/mfib/mfib_test.c \ |
| 1225 | vnet/mfib/mfib_forward.c \ |
| 1226 | vnet/mfib/ip4_mfib.c \ |
| 1227 | vnet/mfib/ip6_mfib.c \ |
| 1228 | vnet/mfib/mfib_types.c \ |
| 1229 | vnet/mfib/mfib_signal.c \ |
| 1230 | vnet/mfib/mfib_itf.c \ |
| 1231 | vnet/mfib/mfib_entry.c \ |
| 1232 | vnet/mfib/mfib_table.c |
| 1233 | |
| 1234 | nobase_include_HEADERS += \ |
| 1235 | vnet/mfib/ip4_mfib.h \ |
| 1236 | vnet/mfib/mfib_types.h \ |
| 1237 | vnet/mfib/mfib_table.h |
| 1238 | |
| 1239 | ######################################## |
| 1240 | # Utilities |
| 1241 | ######################################## |
| 1242 | |
| 1243 | libvnet_la_SOURCES += \ |
Hongjun Ni | bf4be57 | 2017-11-13 20:34:06 +0800 | [diff] [blame] | 1244 | vnet/util/radix.c \ |
| 1245 | vnet/util/refcount.c \ |
Dave Barach | 7bee773 | 2017-10-18 18:48:11 -0400 | [diff] [blame] | 1246 | vnet/util/trajectory.c |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 1247 | |
| 1248 | ######################################## |
Neale Ranns | 039cbfe | 2018-02-27 03:45:38 -0800 | [diff] [blame] | 1249 | # QoS |
| 1250 | ######################################## |
| 1251 | |
| 1252 | libvnet_la_SOURCES += \ |
| 1253 | vnet/qos/qos_types.c \ |
| 1254 | vnet/qos/qos_api.c \ |
| 1255 | vnet/qos/qos_egress_map.c \ |
| 1256 | vnet/qos/qos_record.c \ |
| 1257 | vnet/qos/qos_mark.c |
| 1258 | |
| 1259 | API_FILES += vnet/qos/qos.api |
| 1260 | |
Matus Fabian | 489cc82 | 2018-03-19 03:58:41 -0700 | [diff] [blame] | 1261 | nobase_include_HEADERS += \ |
| 1262 | vnet/qos/qos.api.h |
| 1263 | |
Neale Ranns | 039cbfe | 2018-02-27 03:45:38 -0800 | [diff] [blame] | 1264 | ######################################## |
Neale Ranns | d792d9c | 2017-10-21 10:53:20 -0700 | [diff] [blame] | 1265 | # BIER |
| 1266 | ######################################## |
| 1267 | |
| 1268 | libvnet_la_SOURCES += \ |
| 1269 | vnet/bier/bier_bit_string.c \ |
| 1270 | vnet/bier/bier_entry.c \ |
| 1271 | vnet/bier/bier_fmask.c \ |
| 1272 | vnet/bier/bier_fmask_db.c \ |
| 1273 | vnet/bier/bier_input.c \ |
| 1274 | vnet/bier/bier_lookup.c \ |
| 1275 | vnet/bier/bier_output.c \ |
| 1276 | vnet/bier/bier_table.c \ |
| 1277 | vnet/bier/bier_types.c \ |
| 1278 | vnet/bier/bier_test.c \ |
| 1279 | vnet/bier/bier_api.c \ |
| 1280 | vnet/bier/bier_drop.c \ |
| 1281 | vnet/bier/bier_update.c \ |
| 1282 | vnet/bier/bier_imp_node.c \ |
| 1283 | vnet/bier/bier_imp.c \ |
| 1284 | vnet/bier/bier_disp_entry.c \ |
| 1285 | vnet/bier/bier_disp_lookup_node.c \ |
| 1286 | vnet/bier/bier_disp_dispatch_node.c \ |
Neale Ranns | 9128637 | 2017-12-05 13:24:04 -0800 | [diff] [blame] | 1287 | vnet/bier/bier_disp_table.c \ |
| 1288 | vnet/bier/bier_bift_table.c |
Neale Ranns | d792d9c | 2017-10-21 10:53:20 -0700 | [diff] [blame] | 1289 | |
| 1290 | nobase_include_HEADERS += \ |
| 1291 | vnet/bier/bier_types.h \ |
| 1292 | vnet/bier/bier_entry.h \ |
| 1293 | vnet/bier/bier_update.h \ |
| 1294 | vnet/bier/bier.api.h \ |
| 1295 | vnet/bier/bier_table.h |
| 1296 | |
| 1297 | API_FILES += vnet/bier/bier.api |
| 1298 | |
Damjan Marion | f3b2746 | 2018-05-15 19:51:38 +0200 | [diff] [blame] | 1299 | if CPU_X86_64 |
| 1300 | if CC_SUPPORTS_AVX2 |
| 1301 | ############################################################### |
| 1302 | # AVX2 |
| 1303 | ############################################################### |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 1304 | libvnet_avx2_la_SOURCES = $(libvnet_multiversioning_sources) |
Damjan Marion | f3b2746 | 2018-05-15 19:51:38 +0200 | [diff] [blame] | 1305 | libvnet_avx2_la_CFLAGS = \ |
| 1306 | $(AM_CFLAGS) @CPU_AVX2_FLAGS@ \ |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 1307 | -DCLIB_MARCH_VARIANT=avx2 |
Damjan Marion | f3b2746 | 2018-05-15 19:51:38 +0200 | [diff] [blame] | 1308 | noinst_LTLIBRARIES += libvnet_avx2.la |
| 1309 | libvnet_la_LIBADD += libvnet_avx2.la |
| 1310 | endif |
| 1311 | |
| 1312 | if CC_SUPPORTS_AVX512 |
| 1313 | ############################################################### |
| 1314 | # AVX512 |
| 1315 | ############################################################### |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 1316 | libvnet_avx512_la_SOURCES = $(libvnet_multiversioning_sources) |
Damjan Marion | f3b2746 | 2018-05-15 19:51:38 +0200 | [diff] [blame] | 1317 | libvnet_avx512_la_CFLAGS = \ |
| 1318 | $(AM_CFLAGS) @CPU_AVX512_FLAGS@ \ |
Damjan Marion | 812b32d | 2018-05-28 21:26:47 +0200 | [diff] [blame] | 1319 | -DCLIB_MARCH_VARIANT=avx512 |
Damjan Marion | f3b2746 | 2018-05-15 19:51:38 +0200 | [diff] [blame] | 1320 | noinst_LTLIBRARIES += libvnet_avx512.la |
| 1321 | libvnet_la_LIBADD += libvnet_avx512.la |
| 1322 | endif |
| 1323 | endif |
| 1324 | |
Neale Ranns | d792d9c | 2017-10-21 10:53:20 -0700 | [diff] [blame] | 1325 | ######################################## |
Florin Coras | 891f0a1 | 2017-12-11 11:49:26 -0800 | [diff] [blame] | 1326 | # Test apps |
| 1327 | ######################################## |
| 1328 | |
| 1329 | noinst_PROGRAMS += tcp_echo udp_echo |
| 1330 | |
| 1331 | TEST_APPS_LDADD = libvlibmemoryclient.la libsvm.la libvppinfra.la |
| 1332 | TEST_APPS_LDADD += -lpthread -lm -lrt |
| 1333 | |
| 1334 | tcp_echo_SOURCES = tests/vnet/session/tcp_echo.c |
| 1335 | tcp_echo_LDADD = $(TEST_APPS_LDADD) |
| 1336 | |
| 1337 | udp_echo_SOURCES = tests/vnet/session/udp_echo.c |
| 1338 | udp_echo_LDADD = $(TEST_APPS_LDADD) |
| 1339 | |
| 1340 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1341 | # Plugin client library |
| 1342 | ######################################## |
| 1343 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1344 | nobase_include_HEADERS += \ |
| 1345 | vnet/plugin/plugin.h |
| 1346 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1347 | pcap2pg_SOURCES = \ |
| 1348 | vnet/unix/pcap2pg.c \ |
| 1349 | vnet/unix/pcap.h |
| 1350 | |
| 1351 | pcap2pg_LDFLAGS = -static |
| 1352 | pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl |
| 1353 | |
Dave Barach | a0cc5ab | 2018-02-23 12:09:41 -0500 | [diff] [blame] | 1354 | pcap2cinit_SOURCES = \ |
| 1355 | vnet/unix/pcap2cinit.c \ |
| 1356 | vnet/unix/pcap.h |
| 1357 | |
| 1358 | pcap2cinit_LDFLAGS = -static |
| 1359 | pcap2cinit_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl |
| 1360 | |
| 1361 | noinst_PROGRAMS += pcap2pg pcap2cinit |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1362 | |
| 1363 | # vi:syntax=automake |