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