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 \ |
| 22 | libvlibapi.la \ |
| 23 | libvlibmemory.la \ |
| 24 | libvlibmemoryclient.la |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 25 | |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 26 | libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt $(DPDK_LD_ADD) |
| 27 | libvnet_la_LDFLAGS = $(DPDK_LD_FLAGS) |
Damjan Marion | 45a00c4 | 2017-01-08 15:34:50 +0100 | [diff] [blame] | 28 | |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 29 | if WITH_LIBSSL |
Damjan Marion | 45a00c4 | 2017-01-08 15:34:50 +0100 | [diff] [blame] | 30 | libvnet_la_LIBADD += -lcrypto |
| 31 | endif |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 32 | |
| 33 | ######################################## |
| 34 | # Generic stuff |
| 35 | ######################################## |
| 36 | libvnet_la_SOURCES += \ |
| 37 | vnet/config.c \ |
| 38 | vnet/devices/devices.c \ |
| 39 | vnet/handoff.c \ |
| 40 | vnet/interface.c \ |
| 41 | vnet/interface_api.c \ |
| 42 | vnet/interface_cli.c \ |
| 43 | vnet/interface_format.c \ |
| 44 | vnet/interface_output.c \ |
| 45 | vnet/misc.c \ |
| 46 | vnet/replication.c \ |
| 47 | vnet/rewrite.c |
| 48 | |
| 49 | nobase_include_HEADERS += \ |
| 50 | vnet/api_errno.h \ |
| 51 | vnet/buffer.h \ |
| 52 | vnet/config.h \ |
| 53 | vnet/devices/devices.h \ |
| 54 | vnet/global_funcs.h \ |
| 55 | vnet/handoff.h \ |
| 56 | vnet/interface.h \ |
| 57 | vnet/interface.api.h \ |
| 58 | vnet/interface_funcs.h \ |
| 59 | vnet/l3_types.h \ |
| 60 | vnet/pipeline.h \ |
| 61 | vnet/replication.h \ |
| 62 | vnet/rewrite.h \ |
| 63 | vnet/vnet.h \ |
| 64 | vnet/vnet_all_api_h.h \ |
| 65 | vnet/vnet_msg_enum.h |
| 66 | |
| 67 | API_FILES += vnet/interface.api |
| 68 | |
| 69 | ######################################## |
| 70 | # Policer infra |
| 71 | ######################################## |
| 72 | |
| 73 | libvnet_la_SOURCES += \ |
| 74 | vnet/policer/node_funcs.c \ |
| 75 | vnet/policer/policer.c \ |
| 76 | vnet/policer/xlate.c |
| 77 | |
| 78 | nobase_include_HEADERS += \ |
| 79 | vnet/policer/police.h \ |
| 80 | vnet/policer/policer.h \ |
| 81 | vnet/policer/xlate.h |
| 82 | |
| 83 | ######################################## |
| 84 | # Cop - junk filter |
| 85 | ######################################## |
| 86 | |
| 87 | libvnet_la_SOURCES += \ |
| 88 | vnet/cop/cop.c \ |
| 89 | vnet/cop/node1.c \ |
| 90 | vnet/cop/ip4_whitelist.c \ |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame^] | 91 | vnet/cop/ip6_whitelist.c \ |
| 92 | vnet/cop/cop_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 93 | |
| 94 | nobase_include_HEADERS += \ |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame^] | 95 | vnet/cop/cop.h \ |
| 96 | vnet/cop/cop.api.h |
| 97 | |
| 98 | API_FILES += vnet/cop/cop.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 99 | |
| 100 | ######################################## |
| 101 | # Layer 2 protocols go here |
| 102 | ######################################## |
| 103 | |
| 104 | ######################################## |
| 105 | # Layer 2 protocol: Ethernet |
| 106 | ######################################## |
| 107 | libvnet_la_SOURCES += \ |
| 108 | vnet/ethernet/arp.c \ |
| 109 | vnet/ethernet/format.c \ |
| 110 | vnet/ethernet/init.c \ |
| 111 | vnet/ethernet/interface.c \ |
| 112 | vnet/ethernet/node.c \ |
| 113 | vnet/ethernet/pg.c |
| 114 | |
| 115 | nobase_include_HEADERS += \ |
| 116 | vnet/ethernet/arp_packet.h \ |
| 117 | vnet/ethernet/error.def \ |
| 118 | vnet/ethernet/ethernet.h \ |
| 119 | vnet/ethernet/packet.h \ |
| 120 | vnet/ethernet/types.def |
| 121 | |
| 122 | ######################################## |
| 123 | # Layer 2 protocol: Ethernet bridging |
| 124 | ######################################## |
| 125 | libvnet_la_SOURCES += \ |
| 126 | vnet/l2/feat_bitmap.c \ |
| 127 | vnet/l2/l2_api.c \ |
| 128 | vnet/l2/l2_bd.c \ |
| 129 | vnet/l2/l2_bvi.c \ |
| 130 | vnet/l2/l2_input_classify.c \ |
| 131 | vnet/l2/l2_output_classify.c \ |
| 132 | vnet/l2/l2_efp_filter.c \ |
| 133 | vnet/l2/l2_fib.c \ |
| 134 | vnet/l2/l2_flood.c \ |
| 135 | vnet/l2/l2_fwd.c \ |
| 136 | vnet/l2/l2_input_acl.c \ |
| 137 | vnet/l2/l2_input.c \ |
| 138 | vnet/l2/l2_input_vtr.c \ |
| 139 | vnet/l2/l2_learn.c \ |
| 140 | vnet/l2/l2_output_acl.c \ |
| 141 | vnet/l2/l2_output.c \ |
| 142 | vnet/l2/l2_patch.c \ |
| 143 | vnet/l2/l2_rw.c \ |
| 144 | vnet/l2/l2_vtr.c \ |
| 145 | vnet/l2/l2_xcrw.c |
| 146 | |
| 147 | nobase_include_HEADERS += \ |
| 148 | vnet/l2/feat_bitmap.h \ |
| 149 | vnet/l2/l2_input.h \ |
| 150 | vnet/l2/l2_output.h \ |
| 151 | vnet/l2/l2_vtr.h \ |
| 152 | vnet/l2/l2_input_vtr.h \ |
| 153 | vnet/l2/l2_efp_filter.h \ |
| 154 | vnet/l2/l2_fwd.h \ |
| 155 | vnet/l2/l2_bd.h \ |
| 156 | vnet/l2/l2_bvi.h \ |
| 157 | vnet/l2/l2_flood.h \ |
| 158 | vnet/l2/l2_fib.h \ |
| 159 | vnet/l2/l2_rw.h \ |
| 160 | vnet/l2/l2_xcrw.h \ |
| 161 | vnet/l2/l2_classify.h \ |
| 162 | vnet/l2/l2.api.h |
| 163 | |
| 164 | API_FILES += vnet/l2/l2.api |
| 165 | |
| 166 | ######################################## |
| 167 | # Layer 2 protocol: SRP |
| 168 | ######################################## |
| 169 | libvnet_la_SOURCES += \ |
| 170 | vnet/srp/format.c \ |
| 171 | vnet/srp/interface.c \ |
| 172 | vnet/srp/node.c \ |
| 173 | vnet/srp/pg.c |
| 174 | |
| 175 | nobase_include_HEADERS += \ |
| 176 | vnet/srp/packet.h \ |
| 177 | vnet/srp/srp.h |
| 178 | |
| 179 | ######################################## |
| 180 | # Layer 2 protocol: PPP |
| 181 | ######################################## |
| 182 | libvnet_la_SOURCES += \ |
| 183 | vnet/ppp/node.c \ |
| 184 | vnet/ppp/pg.c \ |
| 185 | vnet/ppp/ppp.c |
| 186 | |
| 187 | nobase_include_HEADERS += \ |
| 188 | vnet/ppp/error.def \ |
| 189 | vnet/ppp/ppp.h \ |
| 190 | vnet/ppp/packet.h |
| 191 | |
| 192 | ######################################## |
| 193 | # Layer 2 protocol: HDLC |
| 194 | ######################################## |
| 195 | libvnet_la_SOURCES += \ |
| 196 | vnet/hdlc/node.c \ |
| 197 | vnet/hdlc/pg.c \ |
| 198 | vnet/hdlc/hdlc.c |
| 199 | |
| 200 | nobase_include_HEADERS += \ |
| 201 | vnet/hdlc/error.def \ |
| 202 | vnet/hdlc/hdlc.h \ |
| 203 | vnet/hdlc/packet.h |
| 204 | |
| 205 | ######################################## |
| 206 | # Layer 2 protocol: LLC |
| 207 | ######################################## |
| 208 | libvnet_la_SOURCES += \ |
| 209 | vnet/llc/llc.c \ |
| 210 | vnet/llc/node.c \ |
| 211 | vnet/llc/pg.c |
| 212 | |
| 213 | nobase_include_HEADERS += \ |
| 214 | vnet/llc/llc.h |
| 215 | |
| 216 | ######################################## |
| 217 | # Layer 2 protocol: SNAP |
| 218 | ######################################## |
| 219 | libvnet_la_SOURCES += \ |
| 220 | vnet/snap/snap.c \ |
| 221 | vnet/snap/node.c \ |
| 222 | vnet/snap/pg.c |
| 223 | |
| 224 | nobase_include_HEADERS += \ |
| 225 | vnet/snap/snap.h |
| 226 | |
| 227 | ######################################## |
| 228 | # Layer 2 / vxlan |
| 229 | ######################################## |
| 230 | libvnet_la_SOURCES += \ |
| 231 | vnet/vxlan/vxlan.c \ |
| 232 | vnet/vxlan/encap.c \ |
| 233 | vnet/vxlan/decap.c \ |
| 234 | vnet/vxlan/vxlan_api.c |
| 235 | |
| 236 | nobase_include_HEADERS += \ |
| 237 | vnet/vxlan/vxlan.h \ |
| 238 | vnet/vxlan/vxlan_packet.h \ |
| 239 | vnet/vxlan/vxlan_error.def \ |
| 240 | vnet/vxlan/vxlan.api.h |
| 241 | |
| 242 | API_FILES += vnet/vxlan/vxlan.api |
| 243 | |
| 244 | ######################################## |
| 245 | # Layer 2 / CDP |
| 246 | ######################################## |
| 247 | libvnet_la_SOURCES += \ |
| 248 | vnet/cdp/cdp_input.c \ |
| 249 | vnet/cdp/cdp_node.c \ |
| 250 | vnet/cdp/cdp_periodic.c |
| 251 | |
| 252 | nobase_include_HEADERS += \ |
| 253 | vnet/cdp/cdp_protocol.h |
| 254 | |
| 255 | ######################################## |
| 256 | # Layer 2 / LLDP |
| 257 | ######################################## |
| 258 | libvnet_la_SOURCES += \ |
| 259 | vnet/lldp/lldp_input.c \ |
| 260 | vnet/lldp/lldp_node.c \ |
| 261 | vnet/lldp/lldp_output.c \ |
| 262 | vnet/lldp/lldp_cli.c |
| 263 | |
| 264 | nobase_include_HEADERS += \ |
| 265 | vnet/lldp/lldp_protocol.h |
| 266 | |
| 267 | ######################################## |
| 268 | # Layer 2/3 "classify" |
| 269 | ######################################## |
| 270 | libvnet_la_SOURCES += \ |
| 271 | vnet/classify/vnet_classify.c \ |
| 272 | vnet/classify/ip_classify.c \ |
| 273 | vnet/classify/input_acl.c \ |
| 274 | vnet/classify/policer_classify.c \ |
| 275 | vnet/classify/flow_classify.c \ |
| 276 | vnet/classify/flow_classify_node.c \ |
Pavel Kotucek | d2c97d9 | 2017-01-24 10:58:12 +0100 | [diff] [blame] | 277 | vnet/classify/vnet_classify.h \ |
| 278 | vnet/classify/classify_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 279 | |
| 280 | nobase_include_HEADERS += \ |
| 281 | vnet/classify/vnet_classify.h \ |
| 282 | vnet/classify/input_acl.h \ |
| 283 | vnet/classify/policer_classify.h \ |
Pavel Kotucek | d2c97d9 | 2017-01-24 10:58:12 +0100 | [diff] [blame] | 284 | vnet/classify/flow_classify.h \ |
| 285 | vnet/classify/classify.api.h |
| 286 | |
| 287 | API_FILES += vnet/classify/classify.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 288 | |
| 289 | ######################################## |
| 290 | # Layer 3 protocols go here |
| 291 | ######################################## |
| 292 | |
| 293 | ######################################## |
| 294 | # Layer 3 protocol: IP v4/v6 |
| 295 | ######################################## |
| 296 | libvnet_la_SOURCES += \ |
| 297 | vnet/ip/format.c \ |
| 298 | vnet/ip/icmp4.c \ |
| 299 | vnet/ip/icmp6.c \ |
| 300 | vnet/ip/ip46_cli.c \ |
| 301 | vnet/ip/ip4_format.c \ |
| 302 | vnet/ip/ip4_forward.c \ |
| 303 | vnet/ip/ip4_input.c \ |
| 304 | vnet/ip/ip4_mtrie.c \ |
| 305 | vnet/ip/ip4_pg.c \ |
| 306 | vnet/ip/ip4_source_and_port_range_check.c \ |
| 307 | vnet/ip/ip4_source_check.c \ |
| 308 | vnet/ip/ip6_format.c \ |
| 309 | vnet/ip/ip6_forward.c \ |
| 310 | vnet/ip/ip6_hop_by_hop.c \ |
| 311 | vnet/ip/ip6_input.c \ |
| 312 | vnet/ip/ip6_neighbor.c \ |
| 313 | vnet/ip/ip6_pg.c \ |
| 314 | vnet/ip/ip_api.c \ |
| 315 | vnet/ip/ip_checksum.c \ |
| 316 | vnet/ip/ip_frag.c \ |
| 317 | vnet/ip/ip.h \ |
| 318 | vnet/ip/ip_init.c \ |
| 319 | vnet/ip/ip_input_acl.c \ |
| 320 | vnet/ip/lookup.c \ |
| 321 | vnet/ip/ping.c \ |
| 322 | vnet/ip/punt.c \ |
| 323 | vnet/ip/udp_format.c \ |
| 324 | vnet/ip/udp_init.c \ |
| 325 | vnet/ip/udp_local.c \ |
| 326 | vnet/ip/udp_pg.c |
| 327 | |
| 328 | nobase_include_HEADERS += \ |
| 329 | vnet/ip/format.h \ |
| 330 | vnet/ip/icmp46_packet.h \ |
| 331 | vnet/ip/icmp4.h \ |
| 332 | vnet/ip/icmp6.h \ |
| 333 | vnet/ip/igmp_packet.h \ |
| 334 | vnet/ip/ip.api.h \ |
| 335 | vnet/ip/ip4_error.h \ |
| 336 | vnet/ip/ip4.h \ |
| 337 | vnet/ip/ip4_mtrie.h \ |
| 338 | vnet/ip/ip4_packet.h \ |
| 339 | vnet/ip/ip6_error.h \ |
| 340 | vnet/ip/ip6.h \ |
| 341 | vnet/ip/ip6_hop_by_hop.h \ |
| 342 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 343 | vnet/ip/ip6_packet.h \ |
| 344 | vnet/ip/ip6_neighbor.h \ |
| 345 | vnet/ip/ip.h \ |
| 346 | vnet/ip/ip_packet.h \ |
| 347 | vnet/ip/ip_source_and_port_range_check.h \ |
| 348 | vnet/ip/lookup.h \ |
| 349 | vnet/ip/ports.def \ |
| 350 | vnet/ip/protocols.def \ |
| 351 | vnet/ip/punt_error.def \ |
| 352 | vnet/ip/punt.h \ |
| 353 | vnet/ip/tcp_packet.h \ |
| 354 | vnet/ip/udp_error.def \ |
| 355 | vnet/ip/udp.h \ |
| 356 | vnet/ip/udp_packet.h |
| 357 | |
| 358 | API_FILES += vnet/ip/ip.api |
| 359 | |
| 360 | ######################################## |
| 361 | # Bidirectional Forwarding Detection |
| 362 | ######################################## |
| 363 | |
| 364 | nobase_include_HEADERS += \ |
| 365 | vnet/bfd/bfd_protocol.h \ |
| 366 | vnet/bfd/bfd_main.h \ |
| 367 | vnet/bfd/bfd_api.h \ |
| 368 | vnet/bfd/bfd_udp.h \ |
| 369 | vnet/bfd/bfd.api.h |
| 370 | |
| 371 | libvnet_la_SOURCES += \ |
| 372 | vnet/bfd/bfd_api.h \ |
| 373 | vnet/bfd/bfd_udp.c \ |
| 374 | vnet/bfd/bfd_main.c \ |
| 375 | vnet/bfd/bfd_protocol.c \ |
| 376 | vnet/bfd/bfd_api.c |
| 377 | |
| 378 | API_FILES += vnet/bfd/bfd.api |
| 379 | |
| 380 | ######################################## |
| 381 | # Layer 3 protocol: IPSec |
| 382 | ######################################## |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 383 | if WITH_LIBSSL |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 384 | libvnet_la_SOURCES += \ |
| 385 | vnet/ipsec/ipsec.c \ |
| 386 | vnet/ipsec/ipsec_cli.c \ |
| 387 | vnet/ipsec/ipsec_format.c \ |
| 388 | vnet/ipsec/ipsec_input.c \ |
| 389 | vnet/ipsec/ipsec_if.c \ |
| 390 | vnet/ipsec/ipsec_if_in.c \ |
| 391 | vnet/ipsec/ipsec_if_out.c \ |
| 392 | vnet/ipsec/esp_encrypt.c \ |
| 393 | vnet/ipsec/esp_decrypt.c \ |
| 394 | vnet/ipsec/ikev2.c \ |
| 395 | vnet/ipsec/ikev2_crypto.c \ |
| 396 | vnet/ipsec/ikev2_cli.c \ |
| 397 | vnet/ipsec/ikev2_payload.c \ |
| 398 | vnet/ipsec/ikev2_format.c \ |
| 399 | vnet/ipsec/ipsec_api.c |
| 400 | |
| 401 | API_FILES += vnet/ipsec/ipsec.api |
| 402 | |
| 403 | if WITH_DPDK_CRYPTO |
| 404 | libvnet_la_SOURCES += \ |
| 405 | vnet/devices/dpdk/ipsec/esp_encrypt.c \ |
| 406 | vnet/devices/dpdk/ipsec/esp_decrypt.c \ |
| 407 | vnet/devices/dpdk/ipsec/crypto_node.c \ |
| 408 | vnet/devices/dpdk/ipsec/cli.c \ |
| 409 | vnet/devices/dpdk/ipsec/ipsec.c |
| 410 | endif |
| 411 | endif |
| 412 | |
| 413 | libvnet_la_SOURCES += \ |
| 414 | vnet/ipsec/ipsec_output.c |
| 415 | |
| 416 | nobase_include_HEADERS += \ |
| 417 | vnet/ipsec/ipsec.h \ |
| 418 | vnet/ipsec/esp.h \ |
| 419 | vnet/ipsec/ikev2.h \ |
| 420 | vnet/ipsec/ikev2_priv.h \ |
| 421 | vnet/ipsec/ipsec.api.h |
| 422 | if WITH_DPDK_CRYPTO |
| 423 | nobase_include_HEADERS += \ |
| 424 | vnet/devices/dpdk/ipsec/ipsec.h \ |
| 425 | vnet/devices/dpdk/ipsec/esp.h |
| 426 | endif |
| 427 | |
| 428 | ######################################## |
| 429 | # Layer 3 protocol: osi |
| 430 | ######################################## |
| 431 | libvnet_la_SOURCES += \ |
| 432 | vnet/osi/node.c \ |
| 433 | vnet/osi/osi.c \ |
| 434 | vnet/osi/pg.c |
| 435 | |
| 436 | nobase_include_HEADERS += \ |
| 437 | vnet/osi/osi.h |
| 438 | |
| 439 | ######################################## |
| 440 | # Layer 3 protocol: MAP |
| 441 | ######################################## |
| 442 | libvnet_la_SOURCES += \ |
| 443 | vnet/map/map.c \ |
| 444 | vnet/map/map_dpo.c \ |
| 445 | vnet/map/ip4_map.c \ |
| 446 | vnet/map/ip6_map.c \ |
| 447 | vnet/map/ip4_map_t.c \ |
| 448 | vnet/map/ip6_map_t.c \ |
| 449 | vnet/map/map_api.c |
| 450 | |
| 451 | nobase_include_HEADERS += \ |
| 452 | vnet/map/map.h \ |
| 453 | vnet/map/map_dpo.h \ |
| 454 | vnet/map/map.api.h |
| 455 | |
| 456 | API_FILES += vnet/map/map.api |
| 457 | |
| 458 | if ENABLE_TESTS |
| 459 | TESTS += test_map |
| 460 | test_map_SOURCES = \ |
| 461 | vnet/map/test.c |
| 462 | test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 463 | |
| 464 | test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \ |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 465 | -lpthread -lvlibmemory -lvlibapi \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 466 | -ldl -lsvm -lrt |
| 467 | |
| 468 | test_map_LDFLAGS = -static |
| 469 | endif |
| 470 | |
| 471 | |
| 472 | ######################################## |
| 473 | # Tunnel protocol: gre |
| 474 | ######################################## |
| 475 | libvnet_la_SOURCES += \ |
| 476 | vnet/gre/gre.c \ |
| 477 | vnet/gre/node.c \ |
| 478 | vnet/gre/interface.c \ |
| 479 | vnet/gre/pg.c \ |
| 480 | vnet/gre/gre_api.c |
| 481 | |
| 482 | nobase_include_HEADERS += \ |
| 483 | vnet/gre/gre.h \ |
| 484 | vnet/gre/packet.h \ |
| 485 | vnet/gre/error.def \ |
| 486 | vnet/gre/gre.api.h |
| 487 | |
| 488 | API_FILES += vnet/gre/gre.api |
| 489 | |
| 490 | ######################################## |
| 491 | # Tunnel protocol: l2tpv3 |
| 492 | ######################################## |
| 493 | libvnet_la_SOURCES += \ |
| 494 | vnet/l2tp/l2tp.c \ |
| 495 | vnet/l2tp/encap.c \ |
| 496 | vnet/l2tp/decap.c \ |
| 497 | vnet/l2tp/pg.c \ |
| 498 | vnet/l2tp/l2tp_api.c |
| 499 | |
| 500 | nobase_include_HEADERS += \ |
| 501 | vnet/l2tp/l2tp.h \ |
| 502 | vnet/l2tp/packet.h \ |
| 503 | vnet/l2tp/l2tp.api.h |
| 504 | |
| 505 | API_FILES += vnet/l2tp/l2tp.api |
| 506 | |
| 507 | ######################################## |
| 508 | # Tunnel protocol: gre+mpls |
| 509 | ######################################## |
| 510 | libvnet_la_SOURCES += \ |
| 511 | vnet/mpls/mpls.c \ |
| 512 | vnet/mpls/mpls_lookup.c \ |
| 513 | vnet/mpls/mpls_output.c \ |
| 514 | vnet/mpls/mpls_features.c \ |
| 515 | vnet/mpls/node.c \ |
| 516 | vnet/mpls/interface.c \ |
| 517 | vnet/mpls/mpls_tunnel.c \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 518 | vnet/mpls/pg.c \ |
| 519 | vnet/mpls/mpls_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 520 | |
| 521 | nobase_include_HEADERS += \ |
| 522 | vnet/mpls/mpls.h \ |
| 523 | vnet/mpls/mpls_types.h \ |
| 524 | vnet/mpls/mpls_tunnel.h \ |
| 525 | vnet/mpls/packet.h \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 526 | vnet/mpls/error.def \ |
| 527 | vnet/mpls/mpls.api.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 528 | |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 529 | API_FILES += vnet/mpls/mpls.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 530 | |
| 531 | ######################################## |
| 532 | # Tunnel protocol: vxlan-gpe |
| 533 | ######################################## |
| 534 | |
| 535 | libvnet_la_SOURCES += \ |
| 536 | vnet/vxlan-gpe/vxlan_gpe.c \ |
| 537 | vnet/vxlan-gpe/encap.c \ |
| 538 | vnet/vxlan-gpe/decap.c \ |
| 539 | vnet/vxlan-gpe/vxlan_gpe_api.c |
| 540 | |
| 541 | nobase_include_HEADERS += \ |
| 542 | vnet/vxlan-gpe/vxlan_gpe.h \ |
| 543 | vnet/vxlan-gpe/vxlan_gpe_packet.h \ |
| 544 | vnet/vxlan-gpe/vxlan_gpe_error.def \ |
| 545 | vnet/vxlan-gpe/vxlan_gpe.api.h |
| 546 | |
| 547 | API_FILES += vnet/vxlan-gpe/vxlan_gpe.api |
| 548 | |
| 549 | ######################################## |
| 550 | # Tunnel protocol: ipsec+gre |
| 551 | ######################################## |
| 552 | libvnet_la_SOURCES += \ |
| 553 | vnet/ipsec-gre/ipsec_gre.c \ |
| 554 | vnet/ipsec-gre/node.c \ |
| 555 | vnet/ipsec-gre/interface.c \ |
| 556 | vnet/ipsec-gre/ipsec_gre_api.c |
| 557 | |
| 558 | nobase_include_HEADERS += \ |
| 559 | vnet/ipsec-gre/ipsec_gre.h \ |
| 560 | vnet/ipsec-gre/error.def \ |
| 561 | vnet/ipsec-gre/ipsec_gre.api.h |
| 562 | |
| 563 | API_FILES += vnet/ipsec-gre/ipsec_gre.api |
| 564 | |
| 565 | ######################################## |
| 566 | # LISP control plane: lisp-cp |
| 567 | ######################################## |
| 568 | |
| 569 | libvnet_la_SOURCES += \ |
| 570 | vnet/lisp-cp/lisp_types.c \ |
| 571 | vnet/lisp-cp/lisp_cp_dpo.c \ |
| 572 | vnet/lisp-cp/control.c \ |
| 573 | vnet/lisp-cp/gid_dictionary.c \ |
| 574 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 575 | vnet/lisp-cp/packets.c \ |
Florin Coras | f3dc11a | 2017-01-24 03:13:43 -0800 | [diff] [blame] | 576 | vnet/lisp-cp/lisp_cli.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 577 | vnet/lisp-cp/lisp_api.c |
| 578 | |
| 579 | nobase_include_HEADERS += \ |
| 580 | vnet/lisp-cp/lisp_types.h \ |
| 581 | vnet/lisp-cp/packets.h \ |
| 582 | vnet/lisp-cp/gid_dictionary.h \ |
| 583 | vnet/lisp-cp/lisp_cp_messages.h \ |
| 584 | vnet/lisp-cp/lisp_msg_serdes.h \ |
| 585 | vnet/lisp-cp/control.h \ |
| 586 | vnet/lisp-cp/lisp.api.h |
| 587 | |
| 588 | API_FILES += vnet/lisp-cp/lisp.api |
| 589 | |
| 590 | if ENABLE_TESTS |
| 591 | LDS = \ |
| 592 | libvppinfra.la \ |
| 593 | libvnet.la \ |
| 594 | libvlib.la \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 595 | libsvm.la \ |
| 596 | libsvmdb.la \ |
| 597 | libvlibapi.la \ |
| 598 | libvlibmemory.la \ |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 599 | -lpthread -ldl -lrt -lm |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 600 | |
| 601 | TESTS += test_cp_serdes test_lisp_types |
| 602 | |
| 603 | test_cp_serdes_SOURCES = \ |
| 604 | tests/vnet/lisp-cp/test_cp_serdes.c \ |
| 605 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 606 | vnet/lisp-cp/lisp_types.c \ |
| 607 | vnet/lisp-cp/packets.c \ |
| 608 | vnet/ip/ip_checksum.c |
| 609 | |
| 610 | test_lisp_types_SOURCES = \ |
| 611 | tests/vnet/lisp-cp/test_lisp_types.c \ |
| 612 | vnet/lisp-cp/lisp_types.c |
| 613 | |
| 614 | test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 615 | test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 616 | |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 617 | test_cp_serdes_LDADD = $(LDS) |
| 618 | test_lisp_types_LDADD = $(LDS) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 619 | endif |
| 620 | |
| 621 | ######################################## |
| 622 | # Tunnel protocol: lisp-gpe |
| 623 | ######################################## |
| 624 | |
| 625 | libvnet_la_SOURCES += \ |
| 626 | vnet/lisp-gpe/lisp_gpe.c \ |
| 627 | vnet/lisp-gpe/lisp_gpe_sub_interface.c \ |
| 628 | vnet/lisp-gpe/lisp_gpe_adjacency.c \ |
| 629 | vnet/lisp-gpe/lisp_gpe_tunnel.c \ |
| 630 | vnet/lisp-gpe/lisp_gpe_fwd_entry.c \ |
| 631 | vnet/lisp-gpe/lisp_gpe_tenant.c \ |
| 632 | vnet/lisp-gpe/interface.c \ |
| 633 | vnet/lisp-gpe/decap.c \ |
| 634 | vnet/lisp-gpe/lisp_gpe_api.c |
| 635 | |
| 636 | nobase_include_HEADERS += \ |
| 637 | vnet/lisp-gpe/lisp_gpe.h \ |
| 638 | vnet/lisp-gpe/lisp_gpe_fwd_entry.h \ |
| 639 | vnet/lisp-gpe/lisp_gpe_tenant.h \ |
| 640 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
| 641 | vnet/lisp-gpe/lisp_gpe_error.def \ |
| 642 | vnet/lisp-gpe/lisp_gpe.api.h |
| 643 | |
| 644 | API_FILES += vnet/lisp-gpe/lisp_gpe.api |
| 645 | |
| 646 | if ENABLE_TESTS |
| 647 | TESTS += test_test |
| 648 | |
| 649 | test_test_SOURCES = tests/vnet/lisp-gpe/test.c |
| 650 | |
| 651 | test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 652 | |
| 653 | test_test_LDADD = $(LIBOBJS) |
| 654 | |
| 655 | noinst_PROGRAMS += $(TESTS) |
| 656 | check_PROGRAMS += $(TESTS) |
| 657 | endif |
| 658 | |
| 659 | ######################################## |
| 660 | # DHCP client |
| 661 | ######################################## |
| 662 | libvnet_la_SOURCES += \ |
| 663 | vnet/dhcp/client.c \ |
Pavel Kotucek | c8d8770 | 2017-01-25 07:25:32 +0100 | [diff] [blame] | 664 | vnet/dhcp/client.h \ |
| 665 | vnet/dhcp/dhcp_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 666 | |
| 667 | nobase_include_HEADERS += \ |
Pavel Kotucek | c8d8770 | 2017-01-25 07:25:32 +0100 | [diff] [blame] | 668 | vnet/dhcp/client.h \ |
| 669 | vnet/dhcp/dhcp.api.h |
| 670 | |
| 671 | API_FILES += vnet/dhcp/dhcp.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 672 | |
| 673 | ######################################## |
| 674 | # DHCP proxy |
| 675 | ######################################## |
| 676 | libvnet_la_SOURCES += \ |
| 677 | vnet/dhcp/proxy_node.c \ |
| 678 | vnet/dhcp/proxy.h |
| 679 | |
| 680 | nobase_include_HEADERS += \ |
| 681 | vnet/dhcp/packet.h \ |
| 682 | vnet/dhcp/proxy.h \ |
| 683 | vnet/dhcp/proxy_error.def |
| 684 | |
| 685 | ######################################## |
| 686 | # ipv6 segment routing |
| 687 | ######################################## |
| 688 | |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 689 | if WITH_LIBSSL |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 690 | libvnet_la_SOURCES += \ |
| 691 | vnet/sr/sr.c \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 692 | vnet/sr/sr_replicate.c \ |
| 693 | vnet/sr/sr_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 694 | endif |
| 695 | |
| 696 | nobase_include_HEADERS += \ |
| 697 | vnet/sr/sr_packet.h \ |
| 698 | vnet/sr/sr_error.def \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 699 | vnet/sr/sr.h \ |
| 700 | vnet/sr/sr.api.h |
| 701 | |
| 702 | API_FILES += vnet/sr/sr.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 703 | |
| 704 | ######################################## |
| 705 | # DHCPv6 proxy |
| 706 | ######################################## |
| 707 | libvnet_la_SOURCES += \ |
| 708 | vnet/dhcpv6/proxy_node.c |
| 709 | |
| 710 | nobase_include_HEADERS += \ |
| 711 | vnet/dhcpv6/packet.h \ |
| 712 | vnet/dhcpv6/proxy.h \ |
| 713 | vnet/dhcpv6/proxy_error.def |
| 714 | |
| 715 | ######################################## |
| 716 | # IPFIX / netflow v10 |
| 717 | ######################################## |
| 718 | libvnet_la_SOURCES += \ |
Pavel Kotucek | eb9e666 | 2017-01-24 13:40:26 +0100 | [diff] [blame] | 719 | vnet/flow/flow_report.c \ |
| 720 | vnet/flow/flow_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 721 | |
| 722 | nobase_include_HEADERS += \ |
| 723 | vnet/flow/flow_report.h \ |
| 724 | vnet/flow/ipfix_info_elements.h \ |
Pavel Kotucek | eb9e666 | 2017-01-24 13:40:26 +0100 | [diff] [blame] | 725 | vnet/flow/ipfix_packet.h \ |
| 726 | vnet/flow/flow.api.h |
| 727 | |
| 728 | API_FILES += vnet/flow/flow.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 729 | |
| 730 | ######################################## |
| 731 | # IPFIX classify code |
| 732 | ######################################## |
| 733 | |
| 734 | libvnet_la_SOURCES += \ |
| 735 | vnet/flow/flow_report_classify.c |
| 736 | |
| 737 | nobase_include_HEADERS += \ |
| 738 | vnet/flow/flow_report_classify.h |
| 739 | |
| 740 | ######################################## |
| 741 | # lawful intercept |
| 742 | ######################################## |
| 743 | |
| 744 | libvnet_la_SOURCES += \ |
| 745 | vnet/lawful-intercept/lawful_intercept.c \ |
| 746 | vnet/lawful-intercept/node.c |
| 747 | |
| 748 | nobase_include_HEADERS += \ |
| 749 | vnet/lawful-intercept/lawful_intercept.h |
| 750 | |
| 751 | ######################################## |
| 752 | # SPAN (port mirroring) |
| 753 | ######################################## |
| 754 | |
| 755 | libvnet_la_SOURCES += \ |
| 756 | vnet/span/span_api.c \ |
| 757 | vnet/span/span.c \ |
| 758 | vnet/span/node.c |
| 759 | |
| 760 | nobase_include_HEADERS += \ |
| 761 | vnet/span/span.api.h \ |
| 762 | vnet/span/span.h |
| 763 | |
| 764 | API_FILES += vnet/span/span.api |
| 765 | |
| 766 | ######################################## |
| 767 | # Packet generator |
| 768 | ######################################## |
| 769 | |
| 770 | libvnet_la_SOURCES += \ |
| 771 | vnet/pg/cli.c \ |
| 772 | vnet/pg/edit.c \ |
| 773 | vnet/pg/init.c \ |
| 774 | vnet/pg/input.c \ |
| 775 | vnet/pg/output.c \ |
| 776 | vnet/pg/stream.c |
| 777 | |
| 778 | nobase_include_HEADERS += \ |
| 779 | vnet/pg/pg.h \ |
| 780 | vnet/pg/edit.h |
| 781 | |
| 782 | ######################################## |
| 783 | # DPDK |
| 784 | ######################################## |
| 785 | if WITH_DPDK |
| 786 | libvnet_la_SOURCES += \ |
Damjan Marion | 878c609 | 2017-01-04 13:19:27 +0100 | [diff] [blame] | 787 | vnet/devices/dpdk/buffer.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 788 | vnet/devices/dpdk/dpdk_priv.h \ |
| 789 | vnet/devices/dpdk/device.c \ |
| 790 | vnet/devices/dpdk/format.c \ |
| 791 | vnet/devices/dpdk/init.c \ |
Damjan Marion | ca80025 | 2017-01-16 21:29:39 +0100 | [diff] [blame] | 792 | vnet/devices/dpdk/main.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 793 | vnet/devices/dpdk/node.c \ |
Damjan Marion | 878c609 | 2017-01-04 13:19:27 +0100 | [diff] [blame] | 794 | vnet/devices/dpdk/thread.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 795 | vnet/devices/dpdk/hqos.c \ |
Pavel Kotucek | 738f3f2 | 2017-01-09 15:11:03 +0100 | [diff] [blame] | 796 | vnet/devices/dpdk/cli.c \ |
| 797 | vnet/devices/dpdk/dpdk_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 798 | |
| 799 | nobase_include_HEADERS += \ |
Pavel Kotucek | 738f3f2 | 2017-01-09 15:11:03 +0100 | [diff] [blame] | 800 | vnet/devices/dpdk/dpdk.h \ |
| 801 | vnet/devices/dpdk/dpdk.api.h |
| 802 | |
| 803 | API_FILES += vnet/devices/dpdk/dpdk.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 804 | else |
| 805 | libvnet_la_SOURCES += \ |
| 806 | vnet/devices/nic/ixge.c \ |
| 807 | vnet/devices/nic/ixge.h \ |
| 808 | vnet/devices/nic/sfp.c \ |
| 809 | vnet/devices/nic/sfp.h |
| 810 | endif |
| 811 | |
| 812 | ######################################## |
| 813 | # virtio |
| 814 | ######################################## |
| 815 | |
| 816 | libvnet_la_SOURCES += \ |
| 817 | vnet/devices/virtio/vhost-user.c \ |
| 818 | vnet/devices/virtio/vhost_user_api.c |
| 819 | |
| 820 | nobase_include_HEADERS += \ |
| 821 | vnet/devices/virtio/vhost-user.h \ |
| 822 | vnet/devices/virtio/vhost_user.api.h |
| 823 | |
| 824 | API_FILES += vnet/devices/virtio/vhost_user.api |
| 825 | |
| 826 | ######################################## |
| 827 | # ssvm ethernet |
| 828 | ######################################## |
| 829 | libvnet_la_SOURCES += \ |
| 830 | vnet/devices/ssvm/ssvm_eth.c \ |
| 831 | vnet/devices/ssvm/node.c |
| 832 | |
| 833 | nobase_include_HEADERS += \ |
| 834 | vnet/devices/ssvm/ssvm_eth.h |
| 835 | |
| 836 | ######################################## |
| 837 | # Linux packet interface |
| 838 | ######################################## |
| 839 | |
| 840 | libvnet_la_SOURCES += \ |
| 841 | vnet/devices/af_packet/af_packet.c \ |
| 842 | vnet/devices/af_packet/device.c \ |
| 843 | vnet/devices/af_packet/node.c \ |
| 844 | vnet/devices/af_packet/cli.c \ |
| 845 | vnet/devices/af_packet/af_packet_api.c |
| 846 | |
| 847 | nobase_include_HEADERS += \ |
| 848 | vnet/devices/af_packet/af_packet.h \ |
| 849 | vnet/devices/af_packet/af_packet.api.h |
| 850 | |
| 851 | API_FILES += vnet/devices/af_packet/af_packet.api |
| 852 | |
| 853 | ######################################## |
| 854 | # NETMAP interface |
| 855 | ######################################## |
| 856 | |
| 857 | libvnet_la_SOURCES += \ |
| 858 | vnet/devices/netmap/netmap.c \ |
| 859 | vnet/devices/netmap/device.c \ |
| 860 | vnet/devices/netmap/node.c \ |
| 861 | vnet/devices/netmap/cli.c \ |
| 862 | vnet/devices/netmap/netmap_api.c |
| 863 | |
| 864 | nobase_include_HEADERS += \ |
| 865 | vnet/devices/netmap/netmap.h \ |
| 866 | vnet/devices/netmap/netmap.api.h |
| 867 | |
| 868 | API_FILES += vnet/devices/netmap/netmap.api |
| 869 | |
| 870 | ######################################## |
| 871 | # Driver feature graph arc support |
| 872 | ######################################## |
| 873 | |
| 874 | libvnet_la_SOURCES += \ |
| 875 | vnet/feature/feature.c \ |
| 876 | vnet/feature/registration.c |
| 877 | |
| 878 | nobase_include_HEADERS += \ |
| 879 | vnet/feature/feature.h |
| 880 | |
| 881 | ######################################## |
| 882 | # Unix kernel related |
| 883 | ######################################## |
| 884 | |
| 885 | # FIXME: vnet/unix/hgshm.c |
| 886 | |
| 887 | libvnet_la_SOURCES += \ |
| 888 | vnet/unix/gdb_funcs.c \ |
| 889 | vnet/unix/pcap.c \ |
| 890 | vnet/unix/tap_api.c \ |
| 891 | vnet/unix/tapcli.c \ |
| 892 | vnet/unix/tuntap.c |
| 893 | |
| 894 | nobase_include_HEADERS += \ |
| 895 | vnet/unix/pcap.h \ |
| 896 | vnet/unix/tuntap.h \ |
| 897 | vnet/unix/tap.api.h \ |
| 898 | vnet/unix/tapcli.h |
| 899 | |
| 900 | API_FILES += vnet/unix/tap.api |
| 901 | |
| 902 | ######################################## |
| 903 | # FIB |
| 904 | ######################################## |
| 905 | |
| 906 | libvnet_la_SOURCES += \ |
| 907 | vnet/fib/fib.c \ |
| 908 | vnet/fib/fib_test.c \ |
| 909 | vnet/fib/ip4_fib.c \ |
| 910 | vnet/fib/ip6_fib.c \ |
| 911 | vnet/fib/mpls_fib.c \ |
| 912 | vnet/fib/fib_table.c \ |
| 913 | vnet/fib/fib_walk.c \ |
| 914 | vnet/fib/fib_types.c \ |
| 915 | vnet/fib/fib_node.c \ |
| 916 | vnet/fib/fib_node_list.c \ |
| 917 | vnet/fib/fib_entry.c \ |
| 918 | vnet/fib/fib_entry_src.c \ |
| 919 | vnet/fib/fib_entry_src_rr.c \ |
| 920 | vnet/fib/fib_entry_src_interface.c \ |
| 921 | vnet/fib/fib_entry_src_default_route.c \ |
| 922 | vnet/fib/fib_entry_src_special.c \ |
| 923 | vnet/fib/fib_entry_src_api.c \ |
| 924 | vnet/fib/fib_entry_src_adj.c \ |
| 925 | vnet/fib/fib_entry_src_mpls.c \ |
| 926 | vnet/fib/fib_entry_src_lisp.c \ |
| 927 | vnet/fib/fib_entry_cover.c \ |
| 928 | vnet/fib/fib_entry_delegate.c \ |
| 929 | vnet/fib/fib_path_list.c \ |
| 930 | vnet/fib/fib_path.c \ |
| 931 | vnet/fib/fib_path_ext.c \ |
| 932 | vnet/fib/fib_urpf_list.c \ |
| 933 | vnet/fib/fib_attached_export.c |
| 934 | |
| 935 | nobase_include_HEADERS += \ |
| 936 | vnet/fib/fib.h \ |
| 937 | vnet/fib/fib_api.h \ |
| 938 | vnet/fib/ip4_fib.h \ |
| 939 | vnet/fib/ip6_fib.h \ |
| 940 | vnet/fib/fib_types.h \ |
| 941 | vnet/fib/fib_table.h \ |
| 942 | vnet/fib/fib_node.h \ |
| 943 | vnet/fib/fib_node_list.h \ |
| 944 | vnet/fib/fib_entry.h \ |
| 945 | vnet/fib/fib_entry_delegate.h |
| 946 | |
| 947 | ######################################## |
| 948 | # ADJ |
| 949 | ######################################## |
| 950 | |
| 951 | libvnet_la_SOURCES += \ |
| 952 | vnet/adj/adj_nbr.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 953 | vnet/adj/adj_glean.c \ |
| 954 | vnet/adj/adj_midchain.c \ |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 955 | vnet/adj/adj_mcast.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 956 | vnet/adj/adj_l2.c \ |
| 957 | vnet/adj/adj.c |
| 958 | |
| 959 | nobase_include_HEADERS += \ |
| 960 | vnet/adj/adj.h \ |
| 961 | vnet/adj/adj_types.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 962 | vnet/adj/adj_glean.h \ |
| 963 | vnet/adj/adj_nbr.h |
| 964 | |
| 965 | ######################################## |
| 966 | # Data-Plane Objects |
| 967 | ######################################## |
| 968 | |
| 969 | libvnet_la_SOURCES += \ |
| 970 | vnet/dpo/dpo.c \ |
| 971 | vnet/dpo/drop_dpo.c \ |
| 972 | vnet/dpo/ip_null_dpo.c \ |
| 973 | vnet/dpo/punt_dpo.c \ |
| 974 | vnet/dpo/receive_dpo.c \ |
| 975 | vnet/dpo/load_balance.c \ |
| 976 | vnet/dpo/load_balance_map.c \ |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 977 | vnet/dpo/lookup_dpo.c \ |
| 978 | vnet/dpo/classify_dpo.c \ |
| 979 | vnet/dpo/replicate_dpo.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 980 | vnet/dpo/mpls_label_dpo.c |
| 981 | |
| 982 | nobase_include_HEADERS += \ |
| 983 | vnet/dpo/load_balance.h \ |
| 984 | vnet/dpo/drop_dpo.h \ |
| 985 | vnet/dpo/lookup_dpo.h \ |
| 986 | vnet/dpo/punt_dpo.h \ |
| 987 | vnet/dpo/classify_dpo.h \ |
| 988 | vnet/dpo/receive_dpo.h \ |
| 989 | vnet/dpo/ip_null_dpo.h \ |
| 990 | vnet/dpo/dpo.h |
| 991 | |
| 992 | ######################################## |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 993 | # Multicast FIB |
| 994 | ######################################## |
| 995 | |
| 996 | libvnet_la_SOURCES += \ |
| 997 | vnet/mfib/mfib_test.c \ |
| 998 | vnet/mfib/mfib_forward.c \ |
| 999 | vnet/mfib/ip4_mfib.c \ |
| 1000 | vnet/mfib/ip6_mfib.c \ |
| 1001 | vnet/mfib/mfib_types.c \ |
| 1002 | vnet/mfib/mfib_signal.c \ |
| 1003 | vnet/mfib/mfib_itf.c \ |
| 1004 | vnet/mfib/mfib_entry.c \ |
| 1005 | vnet/mfib/mfib_table.c |
| 1006 | |
| 1007 | nobase_include_HEADERS += \ |
| 1008 | vnet/mfib/ip4_mfib.h \ |
| 1009 | vnet/mfib/mfib_types.h \ |
| 1010 | vnet/mfib/mfib_table.h |
| 1011 | |
| 1012 | ######################################## |
| 1013 | # Utilities |
| 1014 | ######################################## |
| 1015 | |
| 1016 | libvnet_la_SOURCES += \ |
| 1017 | vnet/util/radix.c |
| 1018 | |
| 1019 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1020 | # Plugin client library |
| 1021 | ######################################## |
| 1022 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1023 | nobase_include_HEADERS += \ |
| 1024 | vnet/plugin/plugin.h |
| 1025 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1026 | pcap2pg_SOURCES = \ |
| 1027 | vnet/unix/pcap2pg.c \ |
| 1028 | vnet/unix/pcap.h |
| 1029 | |
| 1030 | pcap2pg_LDFLAGS = -static |
| 1031 | pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl |
| 1032 | |
| 1033 | noinst_PROGRAMS += pcap2pg |
| 1034 | |
| 1035 | # vi:syntax=automake |