Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [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 | |
| 14 | AUTOMAKE_OPTIONS = foreign subdir-objects |
| 15 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 16 | AM_CFLAGS = -Wall @DPDK@ @VIRL@ @IPSEC@ @VCGN@ @IPV6SR@ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 17 | |
| 18 | libvnet_la_SOURCES = |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 19 | libvnetplugin_la_SOURCES = |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 20 | nobase_include_HEADERS = |
Dave Barach | 4e281a4 | 2015-12-14 11:13:29 -0500 | [diff] [blame] | 21 | noinst_PROGRAMS = |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 22 | TESTS = |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 23 | |
| 24 | ######################################## |
| 25 | # Generic stuff |
| 26 | ######################################## |
| 27 | libvnet_la_SOURCES += \ |
| 28 | vnet/config.c \ |
| 29 | vnet/interface.c \ |
| 30 | vnet/interface_cli.c \ |
| 31 | vnet/interface_format.c \ |
| 32 | vnet/interface_output.c \ |
| 33 | vnet/misc.c \ |
| 34 | vnet/replication.c \ |
| 35 | vnet/rewrite.c |
| 36 | |
| 37 | nobase_include_HEADERS += \ |
| 38 | vnet/api_errno.h \ |
| 39 | vnet/buffer.h \ |
| 40 | vnet/config.h \ |
| 41 | vnet/global_funcs.h \ |
| 42 | vnet/interface.h \ |
| 43 | vnet/interface_funcs.h \ |
| 44 | vnet/l3_types.h \ |
| 45 | vnet/pipeline.h \ |
| 46 | vnet/replication.h \ |
| 47 | vnet/rewrite.h \ |
| 48 | vnet/vnet.h |
| 49 | |
| 50 | ######################################## |
| 51 | # Policer infra |
| 52 | ######################################## |
| 53 | |
| 54 | libvnet_la_SOURCES += \ |
| 55 | vnet/policer/node_funcs.c \ |
| 56 | vnet/policer/policer.c \ |
| 57 | vnet/policer/xlate.c |
| 58 | |
| 59 | nobase_include_HEADERS += \ |
| 60 | vnet/policer/police.h \ |
Matus Fabian | 65fcd4d | 2016-05-13 05:44:48 -0700 | [diff] [blame] | 61 | vnet/policer/policer.h \ |
| 62 | vnet/policer/fix_types.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 63 | vnet/policer/xlate.h |
| 64 | |
Dave Barach | c07bf5d | 2016-02-17 17:52:26 -0500 | [diff] [blame] | 65 | ######################################## |
| 66 | # Cop - junk filter |
| 67 | ######################################## |
| 68 | |
| 69 | libvnet_la_SOURCES += \ |
| 70 | vnet/cop/cop.c \ |
| 71 | vnet/cop/node1.c \ |
| 72 | vnet/cop/ip4_whitelist.c \ |
| 73 | vnet/cop/ip6_whitelist.c |
| 74 | |
| 75 | nobase_include_HEADERS += \ |
| 76 | vnet/cop/cop.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 77 | |
| 78 | ######################################## |
| 79 | # Layer 2 protocols go here |
| 80 | ######################################## |
| 81 | |
| 82 | ######################################## |
| 83 | # Layer 2 protocol: Ethernet |
| 84 | ######################################## |
| 85 | libvnet_la_SOURCES += \ |
| 86 | vnet/ethernet/arp.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 87 | vnet/ethernet/format.c \ |
| 88 | vnet/ethernet/init.c \ |
| 89 | vnet/ethernet/interface.c \ |
| 90 | vnet/ethernet/node.c \ |
| 91 | vnet/ethernet/pg.c |
| 92 | |
| 93 | nobase_include_HEADERS += \ |
| 94 | vnet/ethernet/arp_packet.h \ |
| 95 | vnet/ethernet/error.def \ |
| 96 | vnet/ethernet/ethernet.h \ |
| 97 | vnet/ethernet/packet.h \ |
| 98 | vnet/ethernet/types.def |
| 99 | |
| 100 | ######################################## |
| 101 | # Layer 2 protocol: Ethernet bridging |
| 102 | ######################################## |
| 103 | libvnet_la_SOURCES += \ |
| 104 | vnet/l2/feat_bitmap.c \ |
| 105 | vnet/l2/l2_bd.c \ |
| 106 | vnet/l2/l2_bvi.c \ |
| 107 | vnet/l2/l2_classify.c \ |
| 108 | vnet/l2/l2_efp_filter.c \ |
| 109 | vnet/l2/l2_fib.c \ |
| 110 | vnet/l2/l2_flood.c \ |
| 111 | vnet/l2/l2_fwd.c \ |
| 112 | vnet/l2/l2_input_acl.c \ |
| 113 | vnet/l2/l2_input.c \ |
| 114 | vnet/l2/l2_input_vtr.c \ |
| 115 | vnet/l2/l2_learn.c \ |
| 116 | vnet/l2/l2_output_acl.c \ |
| 117 | vnet/l2/l2_output.c \ |
| 118 | vnet/l2/l2_patch.c \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 119 | vnet/l2/l2_rw.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 120 | vnet/l2/l2_vtr.c \ |
| 121 | vnet/l2/l2_xcrw.c |
| 122 | |
| 123 | nobase_include_HEADERS += \ |
| 124 | vnet/l2/feat_bitmap.h \ |
| 125 | vnet/l2/l2_input.h \ |
| 126 | vnet/l2/l2_output.h \ |
| 127 | vnet/l2/l2_vtr.h \ |
| 128 | vnet/l2/l2_input_vtr.h \ |
| 129 | vnet/l2/l2_efp_filter.h \ |
| 130 | vnet/l2/l2_fwd.h \ |
| 131 | vnet/l2/l2_bd.h \ |
| 132 | vnet/l2/l2_bvi.h \ |
| 133 | vnet/l2/l2_flood.h \ |
| 134 | vnet/l2/l2_fib.h \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 135 | vnet/l2/l2_rw.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 136 | vnet/l2/l2_xcrw.h \ |
| 137 | vnet/l2/l2_classify.h |
| 138 | |
| 139 | ######################################## |
| 140 | # Layer 2 protocol: SRP |
| 141 | ######################################## |
| 142 | libvnet_la_SOURCES += \ |
| 143 | vnet/srp/format.c \ |
| 144 | vnet/srp/interface.c \ |
| 145 | vnet/srp/node.c \ |
| 146 | vnet/srp/pg.c |
| 147 | |
| 148 | nobase_include_HEADERS += \ |
| 149 | vnet/srp/packet.h \ |
| 150 | vnet/srp/srp.h |
| 151 | |
| 152 | ######################################## |
| 153 | # Layer 2 protocol: PPP |
| 154 | ######################################## |
| 155 | libvnet_la_SOURCES += \ |
| 156 | vnet/ppp/node.c \ |
| 157 | vnet/ppp/pg.c \ |
| 158 | vnet/ppp/ppp.c |
| 159 | |
| 160 | nobase_include_HEADERS += \ |
| 161 | vnet/ppp/error.def \ |
| 162 | vnet/ppp/ppp.h \ |
| 163 | vnet/ppp/packet.h |
| 164 | |
| 165 | ######################################## |
| 166 | # Layer 2 protocol: HDLC |
| 167 | ######################################## |
| 168 | libvnet_la_SOURCES += \ |
| 169 | vnet/hdlc/node.c \ |
| 170 | vnet/hdlc/pg.c \ |
| 171 | vnet/hdlc/hdlc.c |
| 172 | |
| 173 | nobase_include_HEADERS += \ |
| 174 | vnet/hdlc/error.def \ |
| 175 | vnet/hdlc/hdlc.h \ |
| 176 | vnet/hdlc/packet.h |
| 177 | |
| 178 | ######################################## |
| 179 | # Layer 2 protocol: LLC |
| 180 | ######################################## |
| 181 | libvnet_la_SOURCES += \ |
| 182 | vnet/llc/llc.c \ |
| 183 | vnet/llc/node.c \ |
| 184 | vnet/llc/pg.c |
| 185 | |
| 186 | nobase_include_HEADERS += \ |
| 187 | vnet/llc/llc.h |
| 188 | |
| 189 | ######################################## |
| 190 | # Layer 2 protocol: SNAP |
| 191 | ######################################## |
| 192 | libvnet_la_SOURCES += \ |
| 193 | vnet/snap/snap.c \ |
| 194 | vnet/snap/node.c \ |
| 195 | vnet/snap/pg.c |
| 196 | |
| 197 | nobase_include_HEADERS += \ |
| 198 | vnet/snap/snap.h |
| 199 | |
| 200 | ######################################## |
| 201 | # Layer 2 / vxlan |
| 202 | ######################################## |
| 203 | libvnet_la_SOURCES += \ |
| 204 | vnet/vxlan/vxlan.c \ |
| 205 | vnet/vxlan/encap.c \ |
| 206 | vnet/vxlan/decap.c |
| 207 | |
| 208 | nobase_include_HEADERS += \ |
| 209 | vnet/vxlan/vxlan.h \ |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 210 | vnet/vxlan/vxlan_packet.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 211 | vnet/vxlan/vxlan_error.def |
| 212 | |
| 213 | ######################################## |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 214 | # Layer 2 / CDP |
| 215 | ######################################## |
| 216 | libvnet_la_SOURCES += \ |
| 217 | vnet/cdp/cdp_input.c \ |
| 218 | vnet/cdp/cdp_node.c \ |
| 219 | vnet/cdp/cdp_periodic.c |
| 220 | |
| 221 | nobase_include_HEADERS += \ |
| 222 | vnet/cdp/cdp_protocol.h |
| 223 | |
| 224 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 225 | # Layer 2/3 "classify" |
| 226 | ######################################## |
| 227 | libvnet_la_SOURCES += \ |
| 228 | vnet/classify/vnet_classify.c \ |
| 229 | vnet/classify/ip_classify.c \ |
| 230 | vnet/classify/input_acl.c \ |
| 231 | vnet/classify/vnet_classify.h |
| 232 | |
| 233 | nobase_include_HEADERS += \ |
| 234 | vnet/classify/vnet_classify.h \ |
| 235 | vnet/classify/input_acl.h |
| 236 | |
| 237 | ######################################## |
| 238 | # Layer 3 protocols go here |
| 239 | ######################################## |
| 240 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 241 | ######################################## |
| 242 | # Layer 3 protocol: IP v4/v6 |
| 243 | ######################################## |
| 244 | libvnet_la_SOURCES += \ |
Dave Barach | b2ef4dd | 2016-03-23 08:56:01 -0400 | [diff] [blame] | 245 | vnet/ip/adj_alloc.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 246 | vnet/ip/format.c \ |
| 247 | vnet/ip/icmp4.c \ |
| 248 | vnet/ip/icmp6.c \ |
| 249 | vnet/ip/ip46_cli.c \ |
| 250 | vnet/ip/ip4_format.c \ |
| 251 | vnet/ip/ip4_forward.c \ |
| 252 | vnet/ip/ip4_hop_by_hop.c \ |
| 253 | vnet/ip/ip4_input.c \ |
| 254 | vnet/ip/ip4_mtrie.c \ |
| 255 | vnet/ip/ip4_pg.c \ |
| 256 | vnet/ip/ip4_source_check.c \ |
| 257 | vnet/ip/ip6_format.c \ |
| 258 | vnet/ip/ip6_forward.c \ |
| 259 | vnet/ip/ip6_hop_by_hop.c \ |
| 260 | vnet/ip/ip6_input.c \ |
| 261 | vnet/ip/ip6_neighbor.c \ |
| 262 | vnet/ip/ip6_pg.c \ |
| 263 | vnet/ip/ip_checksum.c \ |
| 264 | vnet/ip/ip.h \ |
| 265 | vnet/ip/ip_init.c \ |
| 266 | vnet/ip/lookup.c \ |
| 267 | vnet/ip/udp_format.c \ |
| 268 | vnet/ip/udp_init.c \ |
| 269 | vnet/ip/udp_local.c \ |
| 270 | vnet/ip/udp_pg.c \ |
| 271 | vnet/ip/ip_input_acl.c \ |
| 272 | vnet/ip/ip_frag.c |
| 273 | |
| 274 | nobase_include_HEADERS += \ |
Dave Barach | b2ef4dd | 2016-03-23 08:56:01 -0400 | [diff] [blame] | 275 | vnet/ip/adj_alloc.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 276 | vnet/ip/format.h \ |
| 277 | vnet/ip/icmp46_packet.h \ |
Ole Troan | 92eade1 | 2016-01-13 20:17:08 +0100 | [diff] [blame] | 278 | vnet/ip/icmp4.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 279 | vnet/ip/icmp6.h \ |
| 280 | vnet/ip/igmp_packet.h \ |
| 281 | vnet/ip/ip.h \ |
| 282 | vnet/ip/ip4.h \ |
| 283 | vnet/ip/ip4_mtrie.h \ |
| 284 | vnet/ip/ip4_error.h \ |
| 285 | vnet/ip/ip4_packet.h \ |
| 286 | vnet/ip/ip6.h \ |
| 287 | vnet/ip/ip6_error.h \ |
| 288 | vnet/ip/ip6_hop_by_hop.h \ |
| 289 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 290 | vnet/ip/ip6_packet.h \ |
| 291 | vnet/ip/lookup.h \ |
| 292 | vnet/ip/ip_packet.h \ |
| 293 | vnet/ip/ports.def \ |
| 294 | vnet/ip/protocols.def \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 295 | vnet/ip/tcp_packet.h \ |
| 296 | vnet/ip/udp.h \ |
| 297 | vnet/ip/udp_error.def \ |
| 298 | vnet/ip/udp_packet.h |
| 299 | |
| 300 | ######################################## |
| 301 | # Layer 3 protocol: IPSec |
| 302 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 303 | if WITH_IPSEC |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 304 | libvnet_la_SOURCES += \ |
| 305 | vnet/ipsec/ipsec.c \ |
| 306 | vnet/ipsec/ipsec_cli.c \ |
| 307 | vnet/ipsec/ipsec_format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 308 | vnet/ipsec/ipsec_input.c \ |
| 309 | vnet/ipsec/ipsec_if.c \ |
| 310 | vnet/ipsec/ipsec_if_in.c \ |
| 311 | vnet/ipsec/ipsec_if_out.c \ |
| 312 | vnet/ipsec/esp_encrypt.c \ |
| 313 | vnet/ipsec/esp_decrypt.c \ |
| 314 | vnet/ipsec/ikev2.c \ |
| 315 | vnet/ipsec/ikev2_crypto.c \ |
| 316 | vnet/ipsec/ikev2_cli.c \ |
| 317 | vnet/ipsec/ikev2_payload.c \ |
| 318 | vnet/ipsec/ikev2_format.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 319 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 320 | |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 321 | libvnet_la_SOURCES += \ |
| 322 | vnet/ipsec/ipsec_output.c |
| 323 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 324 | nobase_include_HEADERS += \ |
| 325 | vnet/ipsec/ipsec.h \ |
| 326 | vnet/ipsec/esp.h \ |
| 327 | vnet/ipsec/ikev2.h \ |
| 328 | vnet/ipsec/ikev2_priv.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 329 | |
| 330 | ######################################## |
| 331 | # Layer 3 protocol: osi |
| 332 | ######################################## |
| 333 | libvnet_la_SOURCES += \ |
| 334 | vnet/osi/node.c \ |
| 335 | vnet/osi/osi.c \ |
| 336 | vnet/osi/pg.c |
| 337 | |
| 338 | nobase_include_HEADERS += \ |
| 339 | vnet/osi/osi.h |
| 340 | |
| 341 | ######################################## |
| 342 | # Layer 3 protocol: MAP |
| 343 | ######################################## |
| 344 | libvnet_la_SOURCES += \ |
| 345 | vnet/map/map.c \ |
| 346 | vnet/map/ip4_map.c \ |
| 347 | vnet/map/ip6_map.c \ |
| 348 | vnet/map/sixrd.c \ |
| 349 | vnet/map/ip4_sixrd.c \ |
| 350 | vnet/map/ip6_sixrd.c \ |
| 351 | vnet/map/ip4_map_t.c \ |
| 352 | vnet/map/ip6_map_t.c |
| 353 | |
| 354 | nobase_include_HEADERS += \ |
| 355 | vnet/map/map.h \ |
| 356 | vnet/map/sixrd.h |
| 357 | |
| 358 | ######################################## |
| 359 | # Tunnel protocol: gre |
| 360 | ######################################## |
| 361 | libvnet_la_SOURCES += \ |
| 362 | vnet/gre/gre.c \ |
| 363 | vnet/gre/node.c \ |
| 364 | vnet/gre/interface.c \ |
| 365 | vnet/gre/pg.c |
| 366 | |
| 367 | nobase_include_HEADERS += \ |
| 368 | vnet/gre/gre.h \ |
| 369 | vnet/gre/packet.h \ |
| 370 | vnet/gre/error.def |
| 371 | |
| 372 | ######################################## |
| 373 | # Tunnel protocol: l2tpv3 |
| 374 | ######################################## |
| 375 | libvnet_la_SOURCES += \ |
| 376 | vnet/l2tp/l2tp.c \ |
| 377 | vnet/l2tp/encap.c \ |
| 378 | vnet/l2tp/decap.c \ |
| 379 | vnet/l2tp/pg.c |
| 380 | |
| 381 | nobase_include_HEADERS += \ |
| 382 | vnet/l2tp/l2tp.h \ |
| 383 | vnet/l2tp/packet.h |
| 384 | |
| 385 | ######################################## |
| 386 | # Tunnel protocol: gre+mpls |
| 387 | ######################################## |
| 388 | libvnet_la_SOURCES += \ |
| 389 | vnet/mpls-gre/mpls.c \ |
| 390 | vnet/mpls-gre/node.c \ |
| 391 | vnet/mpls-gre/interface.c \ |
| 392 | vnet/mpls-gre/policy_encap.c \ |
| 393 | vnet/mpls-gre/pg.c |
| 394 | |
| 395 | nobase_include_HEADERS += \ |
| 396 | vnet/mpls-gre/mpls.h \ |
| 397 | vnet/mpls-gre/packet.h \ |
| 398 | vnet/mpls-gre/error.def |
| 399 | |
| 400 | |
| 401 | ######################################## |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 402 | # Tunnel protocol: vxlan-gpe |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 403 | ######################################## |
| 404 | |
| 405 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 406 | vnet/vxlan-gpe/vxlan_gpe.c \ |
| 407 | vnet/vxlan-gpe/encap.c \ |
| 408 | vnet/vxlan-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 409 | |
| 410 | nobase_include_HEADERS += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 411 | vnet/vxlan-gpe/vxlan_gpe.h \ |
| 412 | vnet/vxlan-gpe/vxlan_gpe_packet.h \ |
| 413 | vnet/vxlan-gpe/vxlan_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 414 | |
| 415 | ######################################## |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 416 | # LISP control plane: lisp-cp |
| 417 | ######################################## |
| 418 | |
| 419 | libvnet_la_SOURCES += \ |
| 420 | vnet/lisp-cp/lisp_types.c \ |
| 421 | vnet/lisp-cp/control.c \ |
| 422 | vnet/lisp-cp/gid_dictionary.c \ |
| 423 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 424 | vnet/lisp-cp/packets.c |
| 425 | |
| 426 | nobase_include_HEADERS += \ |
| 427 | vnet/lisp-cp/lisp_types.h \ |
| 428 | vnet/lisp-cp/packets.h \ |
| 429 | vnet/lisp-cp/gid_dictionary.h \ |
| 430 | vnet/lisp-cp/lisp_cp_messages.h \ |
| 431 | vnet/lisp-cp/lisp_msg_serdes.h \ |
| 432 | vnet/lisp-cp/control.h |
| 433 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 434 | |
| 435 | if ENABLE_TESTS |
| 436 | LDS = -lvppinfra -l:libvlib.a -l:libdpdk.a -l:libvlibmemory.a \ |
| 437 | -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a |
| 438 | |
| 439 | TESTS += test_cp_serdes test_lisp_types |
| 440 | |
| 441 | test_cp_serdes_SOURCES = \ |
| 442 | test/lisp-cp/test_cp_serdes.c \ |
| 443 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 444 | vnet/lisp-cp/lisp_types.c \ |
| 445 | vnet/lisp-cp/packets.c \ |
| 446 | vnet/ip/ip_checksum.c |
| 447 | |
| 448 | test_lisp_types_SOURCES = \ |
| 449 | test/lisp-cp/test_lisp_types.c \ |
| 450 | vnet/lisp-cp/lisp_types.c |
| 451 | |
| 452 | test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 453 | test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 454 | |
| 455 | test_cp_serdes_LDADD = libvnet.la $(LDS) |
| 456 | test_lisp_types_LDADD = libvnet.la $(LDS) |
| 457 | |
| 458 | test_cp_serdes_LDFLAGS = -static |
| 459 | test_lisp_types_LDFLAGS = -static |
| 460 | endif |
| 461 | |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 462 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 463 | # Tunnel protocol: lisp-gpe |
| 464 | ######################################## |
| 465 | |
| 466 | libvnet_la_SOURCES += \ |
| 467 | vnet/lisp-gpe/lisp_gpe.c \ |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 468 | vnet/lisp-gpe/interface.c \ |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 469 | vnet/lisp-gpe/ip_forward.c \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 470 | vnet/lisp-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 471 | |
| 472 | nobase_include_HEADERS += \ |
| 473 | vnet/lisp-gpe/lisp_gpe.h \ |
| 474 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 475 | vnet/lisp-gpe/lisp_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 476 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 477 | if ENABLE_TESTS |
| 478 | TESTS += test_test |
| 479 | |
| 480 | test_test_SOURCES = test/lisp-gpe/test.c |
| 481 | |
| 482 | test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 483 | |
| 484 | test_test_LDADD = $(LIBOBJS) |
| 485 | |
| 486 | noinst_PROGRAMS += $(TESTS) |
| 487 | check_PROGRAMS = $(TESTS) |
| 488 | endif |
| 489 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 490 | ######################################## |
| 491 | # DHCP client |
| 492 | ######################################## |
| 493 | libvnet_la_SOURCES += \ |
| 494 | vnet/dhcp/client.c \ |
| 495 | vnet/dhcp/client.h |
| 496 | |
| 497 | nobase_include_HEADERS += \ |
| 498 | vnet/dhcp/client.h |
| 499 | |
| 500 | ######################################## |
| 501 | # DHCP proxy |
| 502 | ######################################## |
| 503 | libvnet_la_SOURCES += \ |
| 504 | vnet/dhcp/proxy_node.c \ |
| 505 | vnet/dhcp/proxy.h |
| 506 | |
| 507 | nobase_include_HEADERS += \ |
| 508 | vnet/dhcp/packet.h \ |
| 509 | vnet/dhcp/proxy.h \ |
| 510 | vnet/dhcp/proxy_error.def |
| 511 | |
| 512 | ######################################## |
| 513 | # ipv6 segment routing |
| 514 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 515 | |
| 516 | if WITH_IPV6SR |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 517 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 52fc44d | 2016-03-25 09:38:50 -0700 | [diff] [blame] | 518 | vnet/sr/sr.c \ |
| 519 | vnet/sr/sr_replicate.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 520 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 521 | |
| 522 | nobase_include_HEADERS += \ |
| 523 | vnet/sr/sr_packet.h \ |
| 524 | vnet/sr/sr_error.def \ |
| 525 | vnet/sr/sr.h |
| 526 | |
| 527 | ######################################## |
| 528 | # CGN |
| 529 | ######################################### |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 530 | |
| 531 | if WITH_VCGN |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 532 | libvnet_la_SOURCES += \ |
| 533 | vnet/vcgn/cnat_bulk_port.c \ |
| 534 | vnet/vcgn/cnat_config.c \ |
| 535 | vnet/vcgn/cnat_db_scanner.c \ |
| 536 | vnet/vcgn/cnat_db_v2.c \ |
| 537 | vnet/vcgn/cnat_debug_msg_handler.c \ |
| 538 | vnet/vcgn/cnat_cli_handler.c \ |
| 539 | vnet/vcgn/cnat_global.c \ |
| 540 | vnet/vcgn/cnat_ipv4_udp_inside_input.c \ |
| 541 | vnet/vcgn/cnat_ipv4_udp_inside_input_exceptions.c \ |
| 542 | vnet/vcgn/cnat_ipv4_udp_outside_input.c \ |
| 543 | vnet/vcgn/cnat_ipv4_tcp_inside_input.c \ |
| 544 | vnet/vcgn/cnat_ipv4_tcp_inside_input_exceptions.c \ |
| 545 | vnet/vcgn/cnat_ipv4_tcp_outside_input.c \ |
| 546 | vnet/vcgn/cnat_ipv4_icmp_query_inside_input.c \ |
| 547 | vnet/vcgn/cnat_ipv4_icmp_query_inside_input_exception.c \ |
| 548 | vnet/vcgn/cnat_ipv4_icmp_query_outside_input.c \ |
| 549 | vnet/vcgn/cnat_ipv4_icmp_error_inside_input.c \ |
| 550 | vnet/vcgn/cnat_ipv4_icmp_error_outside_input.c \ |
| 551 | vnet/vcgn/cnat_logging.c \ |
| 552 | vnet/vcgn/cnat_ports.c \ |
| 553 | vnet/vcgn/cnat_util.c \ |
| 554 | vnet/vcgn/cnat_show.c \ |
| 555 | vnet/vcgn/cnat_syslog.c \ |
| 556 | vnet/vcgn/cnat_v4_functions.c \ |
| 557 | vnet/vcgn/index_list.c \ |
| 558 | vnet/vcgn/spp_platform_trace_log.c \ |
| 559 | vnet/vcgn/vcgn_classify.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 560 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 561 | |
| 562 | ######################################## |
| 563 | # DHCPv6 proxy |
| 564 | ######################################## |
| 565 | libvnet_la_SOURCES += \ |
| 566 | vnet/dhcpv6/proxy_node.c |
| 567 | |
| 568 | nobase_include_HEADERS += \ |
| 569 | vnet/dhcpv6/packet.h \ |
| 570 | vnet/dhcpv6/proxy.h \ |
| 571 | vnet/dhcpv6/proxy_error.def |
| 572 | |
| 573 | ######################################## |
| 574 | # IPFIX / netflow v10 |
| 575 | ######################################## |
| 576 | libvnet_la_SOURCES += \ |
| 577 | vnet/flow/flow_report.c |
| 578 | |
| 579 | nobase_include_HEADERS += \ |
| 580 | vnet/flow/flow_report.h \ |
| 581 | vnet/flow/ipfix_info_elements.h \ |
| 582 | vnet/flow/ipfix_packet.h |
| 583 | |
| 584 | ######################################## |
| 585 | # IPFIX sample code |
| 586 | ######################################## |
| 587 | |
| 588 | libvnet_la_SOURCES += \ |
| 589 | vnet/flow/flow_report_sample.c |
| 590 | |
| 591 | nobase_include_HEADERS += \ |
| 592 | vnet/flow/flow_report_sample.h |
| 593 | |
| 594 | ######################################## |
| 595 | # lawful intercept |
| 596 | ######################################## |
| 597 | |
| 598 | libvnet_la_SOURCES += \ |
| 599 | vnet/lawful-intercept/lawful_intercept.c \ |
| 600 | vnet/lawful-intercept/node.c |
| 601 | |
| 602 | nobase_include_HEADERS += \ |
| 603 | vnet/dpdk_replication.h \ |
| 604 | vnet/lawful-intercept/lawful_intercept.h |
| 605 | |
| 606 | ######################################## |
| 607 | # Packet generator |
| 608 | ######################################## |
| 609 | |
| 610 | libvnet_la_SOURCES += \ |
| 611 | vnet/pg/cli.c \ |
| 612 | vnet/pg/edit.c \ |
| 613 | vnet/pg/init.c \ |
| 614 | vnet/pg/input.c \ |
| 615 | vnet/pg/output.c \ |
| 616 | vnet/pg/stream.c |
| 617 | |
| 618 | nobase_include_HEADERS += \ |
| 619 | vnet/pg/pg.h \ |
| 620 | vnet/pg/edit.h |
| 621 | |
| 622 | ######################################## |
| 623 | # Intel DPDK |
| 624 | ######################################## |
| 625 | if WITH_DPDK |
| 626 | libvnet_la_SOURCES += \ |
| 627 | vnet/devices/dpdk/dpdk_priv.h \ |
| 628 | vnet/devices/dpdk/device.c \ |
Damjan Marion | 7f62097 | 2016-02-25 16:00:11 +0100 | [diff] [blame] | 629 | vnet/devices/dpdk/format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 630 | vnet/devices/dpdk/init.c \ |
| 631 | vnet/devices/dpdk/node.c \ |
| 632 | vnet/devices/dpdk/threads.c \ |
| 633 | vnet/devices/dpdk/vhost_user.c \ |
| 634 | vnet/devices/dpdk/cli.c |
| 635 | |
| 636 | nobase_include_HEADERS += \ |
| 637 | vnet/devices/dpdk/dpdk.h \ |
| 638 | vnet/devices/dpdk/threads.h |
Damjan Marion | b4d8927 | 2016-05-12 22:14:45 +0200 | [diff] [blame^] | 639 | else |
| 640 | libvnet_la_SOURCES += \ |
| 641 | vnet/devices/nic/ixge.c \ |
| 642 | vnet/devices/nic/ixge.h \ |
| 643 | vnet/devices/nic/sfp.c \ |
| 644 | vnet/devices/nic/sfp.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 645 | endif |
| 646 | |
| 647 | ######################################## |
| 648 | # virtio |
| 649 | ######################################## |
| 650 | |
| 651 | if WITH_DPDK |
| 652 | libvnet_la_SOURCES += \ |
| 653 | vnet/devices/virtio/vhost-user.c |
| 654 | |
| 655 | nobase_include_HEADERS += \ |
| 656 | vnet/devices/virtio/vhost-user.h |
| 657 | endif WITH_DPDK |
| 658 | |
| 659 | ######################################## |
| 660 | # ssvm ethernet |
| 661 | ######################################## |
| 662 | libvnet_la_SOURCES += \ |
| 663 | vnet/devices/ssvm/ssvm_eth.c \ |
| 664 | vnet/devices/ssvm/node.c |
| 665 | |
| 666 | nobase_include_HEADERS += \ |
| 667 | vnet/devices/ssvm/ssvm_eth.h |
| 668 | |
| 669 | ######################################## |
Damjan Marion | 83243a0 | 2016-02-29 13:09:30 +0100 | [diff] [blame] | 670 | # Linux packet interface |
| 671 | ######################################## |
| 672 | |
| 673 | libvnet_la_SOURCES += \ |
| 674 | vnet/devices/af_packet/af_packet.c \ |
| 675 | vnet/devices/af_packet/device.c \ |
| 676 | vnet/devices/af_packet/node.c \ |
| 677 | vnet/devices/af_packet/cli.c |
| 678 | |
| 679 | nobase_include_HEADERS += \ |
| 680 | vnet/devices/af_packet/af_packet.h |
| 681 | |
| 682 | ######################################## |
Damjan Marion | 108c731 | 2016-04-20 05:04:20 +0200 | [diff] [blame] | 683 | # NETMAP interface |
| 684 | ######################################## |
| 685 | |
| 686 | libvnet_la_SOURCES += \ |
| 687 | vnet/devices/netmap/netmap.c \ |
| 688 | vnet/devices/netmap/device.c \ |
| 689 | vnet/devices/netmap/node.c \ |
| 690 | vnet/devices/netmap/cli.c |
| 691 | |
| 692 | nobase_include_HEADERS += \ |
| 693 | vnet/devices/netmap/netmap.h |
| 694 | |
| 695 | |
| 696 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 697 | # Unix kernel related |
| 698 | ######################################## |
| 699 | |
| 700 | # FIXME: vnet/unix/hgshm.c |
| 701 | |
| 702 | libvnet_la_SOURCES += \ |
| 703 | vnet/unix/gdb_funcs.c \ |
| 704 | vnet/unix/pcap.c \ |
| 705 | vnet/unix/tapcli.c \ |
| 706 | vnet/unix/tuntap.c |
| 707 | |
| 708 | nobase_include_HEADERS += \ |
| 709 | vnet/unix/pcap.h \ |
| 710 | vnet/unix/tuntap.h \ |
| 711 | vnet/unix/tapcli.h |
| 712 | |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 713 | ######################################## |
| 714 | # Plugin client library |
| 715 | ######################################## |
| 716 | |
| 717 | libvnetplugin_la_SOURCES += \ |
| 718 | vnet/plugin/p1.c |
| 719 | |
| 720 | nobase_include_HEADERS += \ |
| 721 | vnet/plugin/plugin.h |
| 722 | |
Shwetha Bhandari | 05866a1 | 2016-05-04 08:12:57 +0200 | [diff] [blame] | 723 | ######################################## |
| 724 | # Service Chain verification util |
| 725 | ######################################## |
| 726 | libvnet_la_SOURCES += \ |
| 727 | vnet/lib-scv/scv_util.c |
| 728 | |
| 729 | nobase_include_HEADERS += \ |
| 730 | vnet/lib-scv/scv_util.h \ |
| 731 | vnet/lib-scv/math64.h |
| 732 | |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 733 | lib_LTLIBRARIES = libvnet.la libvnetplugin.la |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 734 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 735 | dpdk_libs = |
| 736 | |
| 737 | if WITH_DPDK |
| 738 | dpdk_libs += -l:libdpdk.a |
| 739 | endif |
| 740 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 741 | pcap2pg_SOURCES = \ |
| 742 | vnet/unix/pcap2pg.c \ |
| 743 | vnet/unix/pcap.h |
| 744 | |
| 745 | pcap2pg_LDFLAGS = -static |
| 746 | pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl |
| 747 | |
| 748 | noinst_PROGRAMS += pcap2pg |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 749 | |
| 750 | |