blob: 8a9f214ca70cc953a16bb1c4cdc3a0190d61a795 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001# 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
14AUTOMAKE_OPTIONS = foreign subdir-objects
15
Dave Barach61efa142016-01-22 08:23:09 -050016AM_CFLAGS = -Wall @DPDK@ @VIRL@ @IPSEC@ @VCGN@ @IPV6SR@
Ed Warnickecb9cada2015-12-08 15:45:58 -070017
18libvnet_la_SOURCES =
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -040019libvnetplugin_la_SOURCES =
Ed Warnickecb9cada2015-12-08 15:45:58 -070020nobase_include_HEADERS =
Dave Barach4e281a42015-12-14 11:13:29 -050021noinst_PROGRAMS =
Filip Tehlar254b0362016-04-07 10:04:34 +020022TESTS =
Ed Warnickecb9cada2015-12-08 15:45:58 -070023
24########################################
25# Generic stuff
26########################################
27libvnet_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
37nobase_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
54libvnet_la_SOURCES += \
55 vnet/policer/node_funcs.c \
56 vnet/policer/policer.c \
57 vnet/policer/xlate.c
58
59nobase_include_HEADERS += \
60 vnet/policer/police.h \
61 vnet/policer/xlate.h
62
Dave Barachc07bf5d2016-02-17 17:52:26 -050063########################################
64# Cop - junk filter
65########################################
66
67libvnet_la_SOURCES += \
68 vnet/cop/cop.c \
69 vnet/cop/node1.c \
70 vnet/cop/ip4_whitelist.c \
71 vnet/cop/ip6_whitelist.c
72
73nobase_include_HEADERS += \
74 vnet/cop/cop.h
Ed Warnickecb9cada2015-12-08 15:45:58 -070075
76########################################
77# Layer 2 protocols go here
78########################################
79
80########################################
81# Layer 2 protocol: Ethernet
82########################################
83libvnet_la_SOURCES += \
84 vnet/ethernet/arp.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070085 vnet/ethernet/format.c \
86 vnet/ethernet/init.c \
87 vnet/ethernet/interface.c \
88 vnet/ethernet/node.c \
89 vnet/ethernet/pg.c
90
91nobase_include_HEADERS += \
92 vnet/ethernet/arp_packet.h \
93 vnet/ethernet/error.def \
94 vnet/ethernet/ethernet.h \
95 vnet/ethernet/packet.h \
96 vnet/ethernet/types.def
97
98########################################
99# Layer 2 protocol: Ethernet bridging
100########################################
101libvnet_la_SOURCES += \
102 vnet/l2/feat_bitmap.c \
103 vnet/l2/l2_bd.c \
104 vnet/l2/l2_bvi.c \
105 vnet/l2/l2_classify.c \
106 vnet/l2/l2_efp_filter.c \
107 vnet/l2/l2_fib.c \
108 vnet/l2/l2_flood.c \
109 vnet/l2/l2_fwd.c \
110 vnet/l2/l2_input_acl.c \
111 vnet/l2/l2_input.c \
112 vnet/l2/l2_input_vtr.c \
113 vnet/l2/l2_learn.c \
114 vnet/l2/l2_output_acl.c \
115 vnet/l2/l2_output.c \
116 vnet/l2/l2_patch.c \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000117 vnet/l2/l2_rw.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700118 vnet/l2/l2_vtr.c \
119 vnet/l2/l2_xcrw.c
120
121nobase_include_HEADERS += \
122 vnet/l2/feat_bitmap.h \
123 vnet/l2/l2_input.h \
124 vnet/l2/l2_output.h \
125 vnet/l2/l2_vtr.h \
126 vnet/l2/l2_input_vtr.h \
127 vnet/l2/l2_efp_filter.h \
128 vnet/l2/l2_fwd.h \
129 vnet/l2/l2_bd.h \
130 vnet/l2/l2_bvi.h \
131 vnet/l2/l2_flood.h \
132 vnet/l2/l2_fib.h \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000133 vnet/l2/l2_rw.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700134 vnet/l2/l2_xcrw.h \
135 vnet/l2/l2_classify.h
136
137########################################
138# Layer 2 protocol: SRP
139########################################
140libvnet_la_SOURCES += \
141 vnet/srp/format.c \
142 vnet/srp/interface.c \
143 vnet/srp/node.c \
144 vnet/srp/pg.c
145
146nobase_include_HEADERS += \
147 vnet/srp/packet.h \
148 vnet/srp/srp.h
149
150########################################
151# Layer 2 protocol: PPP
152########################################
153libvnet_la_SOURCES += \
154 vnet/ppp/node.c \
155 vnet/ppp/pg.c \
156 vnet/ppp/ppp.c
157
158nobase_include_HEADERS += \
159 vnet/ppp/error.def \
160 vnet/ppp/ppp.h \
161 vnet/ppp/packet.h
162
163########################################
164# Layer 2 protocol: HDLC
165########################################
166libvnet_la_SOURCES += \
167 vnet/hdlc/node.c \
168 vnet/hdlc/pg.c \
169 vnet/hdlc/hdlc.c
170
171nobase_include_HEADERS += \
172 vnet/hdlc/error.def \
173 vnet/hdlc/hdlc.h \
174 vnet/hdlc/packet.h
175
176########################################
177# Layer 2 protocol: LLC
178########################################
179libvnet_la_SOURCES += \
180 vnet/llc/llc.c \
181 vnet/llc/node.c \
182 vnet/llc/pg.c
183
184nobase_include_HEADERS += \
185 vnet/llc/llc.h
186
187########################################
188# Layer 2 protocol: SNAP
189########################################
190libvnet_la_SOURCES += \
191 vnet/snap/snap.c \
192 vnet/snap/node.c \
193 vnet/snap/pg.c
194
195nobase_include_HEADERS += \
196 vnet/snap/snap.h
197
198########################################
199# Layer 2 / vxlan
200########################################
201libvnet_la_SOURCES += \
202 vnet/vxlan/vxlan.c \
203 vnet/vxlan/encap.c \
204 vnet/vxlan/decap.c
205
206nobase_include_HEADERS += \
207 vnet/vxlan/vxlan.h \
Dave Barachced48e72016-02-08 15:57:35 -0500208 vnet/vxlan/vxlan_packet.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700209 vnet/vxlan/vxlan_error.def
210
211########################################
Dave Barachced48e72016-02-08 15:57:35 -0500212# Layer 2 / CDP
213########################################
214libvnet_la_SOURCES += \
215 vnet/cdp/cdp_input.c \
216 vnet/cdp/cdp_node.c \
217 vnet/cdp/cdp_periodic.c
218
219nobase_include_HEADERS += \
220 vnet/cdp/cdp_protocol.h
221
222########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700223# Layer 2/3 "classify"
224########################################
225libvnet_la_SOURCES += \
226 vnet/classify/vnet_classify.c \
227 vnet/classify/ip_classify.c \
228 vnet/classify/input_acl.c \
229 vnet/classify/vnet_classify.h
230
231nobase_include_HEADERS += \
232 vnet/classify/vnet_classify.h \
233 vnet/classify/input_acl.h
234
235########################################
236# Layer 3 protocols go here
237########################################
238
Ed Warnickecb9cada2015-12-08 15:45:58 -0700239########################################
240# Layer 3 protocol: IP v4/v6
241########################################
242libvnet_la_SOURCES += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400243 vnet/ip/adj_alloc.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700244 vnet/ip/format.c \
245 vnet/ip/icmp4.c \
246 vnet/ip/icmp6.c \
247 vnet/ip/ip46_cli.c \
248 vnet/ip/ip4_format.c \
249 vnet/ip/ip4_forward.c \
250 vnet/ip/ip4_hop_by_hop.c \
251 vnet/ip/ip4_input.c \
252 vnet/ip/ip4_mtrie.c \
253 vnet/ip/ip4_pg.c \
254 vnet/ip/ip4_source_check.c \
255 vnet/ip/ip6_format.c \
256 vnet/ip/ip6_forward.c \
257 vnet/ip/ip6_hop_by_hop.c \
258 vnet/ip/ip6_input.c \
259 vnet/ip/ip6_neighbor.c \
260 vnet/ip/ip6_pg.c \
261 vnet/ip/ip_checksum.c \
262 vnet/ip/ip.h \
263 vnet/ip/ip_init.c \
264 vnet/ip/lookup.c \
265 vnet/ip/udp_format.c \
266 vnet/ip/udp_init.c \
267 vnet/ip/udp_local.c \
268 vnet/ip/udp_pg.c \
269 vnet/ip/ip_input_acl.c \
270 vnet/ip/ip_frag.c
271
272nobase_include_HEADERS += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400273 vnet/ip/adj_alloc.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700274 vnet/ip/format.h \
275 vnet/ip/icmp46_packet.h \
Ole Troan92eade12016-01-13 20:17:08 +0100276 vnet/ip/icmp4.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700277 vnet/ip/icmp6.h \
278 vnet/ip/igmp_packet.h \
279 vnet/ip/ip.h \
280 vnet/ip/ip4.h \
281 vnet/ip/ip4_mtrie.h \
282 vnet/ip/ip4_error.h \
283 vnet/ip/ip4_packet.h \
284 vnet/ip/ip6.h \
285 vnet/ip/ip6_error.h \
286 vnet/ip/ip6_hop_by_hop.h \
287 vnet/ip/ip6_hop_by_hop_packet.h \
288 vnet/ip/ip6_packet.h \
289 vnet/ip/lookup.h \
290 vnet/ip/ip_packet.h \
291 vnet/ip/ports.def \
292 vnet/ip/protocols.def \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700293 vnet/ip/tcp_packet.h \
294 vnet/ip/udp.h \
295 vnet/ip/udp_error.def \
296 vnet/ip/udp_packet.h
297
298########################################
299# Layer 3 protocol: IPSec
300########################################
Dave Barach61efa142016-01-22 08:23:09 -0500301if WITH_IPSEC
Ed Warnickecb9cada2015-12-08 15:45:58 -0700302libvnet_la_SOURCES += \
303 vnet/ipsec/ipsec.c \
304 vnet/ipsec/ipsec_cli.c \
305 vnet/ipsec/ipsec_format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700306 vnet/ipsec/ipsec_input.c \
307 vnet/ipsec/ipsec_if.c \
308 vnet/ipsec/ipsec_if_in.c \
309 vnet/ipsec/ipsec_if_out.c \
310 vnet/ipsec/esp_encrypt.c \
311 vnet/ipsec/esp_decrypt.c \
312 vnet/ipsec/ikev2.c \
313 vnet/ipsec/ikev2_crypto.c \
314 vnet/ipsec/ikev2_cli.c \
315 vnet/ipsec/ikev2_payload.c \
316 vnet/ipsec/ikev2_format.c
Dave Barach61efa142016-01-22 08:23:09 -0500317endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700318
Damjan Marione936bbe2016-02-25 23:17:38 +0100319libvnet_la_SOURCES += \
320 vnet/ipsec/ipsec_output.c
321
Ed Warnickecb9cada2015-12-08 15:45:58 -0700322nobase_include_HEADERS += \
323 vnet/ipsec/ipsec.h \
324 vnet/ipsec/esp.h \
325 vnet/ipsec/ikev2.h \
326 vnet/ipsec/ikev2_priv.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700327
328########################################
329# Layer 3 protocol: osi
330########################################
331libvnet_la_SOURCES += \
332 vnet/osi/node.c \
333 vnet/osi/osi.c \
334 vnet/osi/pg.c
335
336nobase_include_HEADERS += \
337 vnet/osi/osi.h
338
339########################################
340# Layer 3 protocol: MAP
341########################################
342libvnet_la_SOURCES += \
343 vnet/map/map.c \
344 vnet/map/ip4_map.c \
345 vnet/map/ip6_map.c \
346 vnet/map/sixrd.c \
347 vnet/map/ip4_sixrd.c \
348 vnet/map/ip6_sixrd.c \
349 vnet/map/ip4_map_t.c \
350 vnet/map/ip6_map_t.c
351
352nobase_include_HEADERS += \
353 vnet/map/map.h \
354 vnet/map/sixrd.h
355
356########################################
357# Tunnel protocol: gre
358########################################
359libvnet_la_SOURCES += \
360 vnet/gre/gre.c \
361 vnet/gre/node.c \
362 vnet/gre/interface.c \
363 vnet/gre/pg.c
364
365nobase_include_HEADERS += \
366 vnet/gre/gre.h \
367 vnet/gre/packet.h \
368 vnet/gre/error.def
369
370########################################
371# Tunnel protocol: l2tpv3
372########################################
373libvnet_la_SOURCES += \
374 vnet/l2tp/l2tp.c \
375 vnet/l2tp/encap.c \
376 vnet/l2tp/decap.c \
377 vnet/l2tp/pg.c
378
379nobase_include_HEADERS += \
380 vnet/l2tp/l2tp.h \
381 vnet/l2tp/packet.h
382
383########################################
384# Tunnel protocol: gre+mpls
385########################################
386libvnet_la_SOURCES += \
387 vnet/mpls-gre/mpls.c \
388 vnet/mpls-gre/node.c \
389 vnet/mpls-gre/interface.c \
390 vnet/mpls-gre/policy_encap.c \
391 vnet/mpls-gre/pg.c
392
393nobase_include_HEADERS += \
394 vnet/mpls-gre/mpls.h \
395 vnet/mpls-gre/packet.h \
396 vnet/mpls-gre/error.def
397
398
399########################################
Keith Burns (alagalah)fdff1e62016-05-04 16:11:38 -0700400# NSH Map: nsh
401########################################
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700402 libvnet_la_SOURCES += \
403 vnet/nsh/nsh.c
Keith Burns (alagalah)fdff1e62016-05-04 16:11:38 -0700404
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700405 nobase_include_HEADERS += \
406 vnet/nsh/nsh_packet.h \
407 vnet/nsh/nsh.h \
408 vnet/nsh/nsh_error.def
Keith Burns (alagalah)fdff1e62016-05-04 16:11:38 -0700409
410
411########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700412# Tunnel protocol: nsh-gre
413########################################
414
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700415# libvnet_la_SOURCES += \
416# vnet/nsh-gre/nsh_gre.c \
417# vnet/nsh-gre/encap.c \
418# vnet/nsh-gre/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700419
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700420# nobase_include_HEADERS += \
421# vnet/nsh-gre/nsh_gre.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700422
423########################################
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700424# Tunnel protocol: vxlan-gpe
Ed Warnickecb9cada2015-12-08 15:45:58 -0700425########################################
426
427libvnet_la_SOURCES += \
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700428 vnet/vxlan-gpe/vxlan_gpe.c \
429 vnet/vxlan-gpe/encap.c \
430 vnet/vxlan-gpe/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700431
432nobase_include_HEADERS += \
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700433 vnet/vxlan-gpe/vxlan_gpe.h \
434 vnet/vxlan-gpe/vxlan_gpe_packet.h \
435 vnet/vxlan-gpe/vxlan_gpe_error.def
Ed Warnickecb9cada2015-12-08 15:45:58 -0700436
437########################################
Florin Corase127a7e2016-02-18 22:20:01 +0100438# LISP control plane: lisp-cp
439########################################
440
441libvnet_la_SOURCES += \
442 vnet/lisp-cp/lisp_types.c \
443 vnet/lisp-cp/control.c \
444 vnet/lisp-cp/gid_dictionary.c \
445 vnet/lisp-cp/lisp_msg_serdes.c \
446 vnet/lisp-cp/packets.c
447
448nobase_include_HEADERS += \
449 vnet/lisp-cp/lisp_types.h \
450 vnet/lisp-cp/packets.h \
451 vnet/lisp-cp/gid_dictionary.h \
452 vnet/lisp-cp/lisp_cp_messages.h \
453 vnet/lisp-cp/lisp_msg_serdes.h \
454 vnet/lisp-cp/control.h
455
Filip Tehlar254b0362016-04-07 10:04:34 +0200456
457if ENABLE_TESTS
458LDS = -lvppinfra -l:libvlib.a -l:libdpdk.a -l:libvlibmemory.a \
459 -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a
460
461TESTS += test_cp_serdes test_lisp_types
462
463test_cp_serdes_SOURCES = \
464 test/lisp-cp/test_cp_serdes.c \
465 vnet/lisp-cp/lisp_msg_serdes.c \
466 vnet/lisp-cp/lisp_types.c \
467 vnet/lisp-cp/packets.c \
468 vnet/ip/ip_checksum.c
469
470test_lisp_types_SOURCES = \
471 test/lisp-cp/test_lisp_types.c \
472 vnet/lisp-cp/lisp_types.c
473
474test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
475test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
476
477test_cp_serdes_LDADD = libvnet.la $(LDS)
478test_lisp_types_LDADD = libvnet.la $(LDS)
479
480test_cp_serdes_LDFLAGS = -static
481test_lisp_types_LDFLAGS = -static
482endif
483
Florin Corase127a7e2016-02-18 22:20:01 +0100484########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700485# Tunnel protocol: lisp-gpe
486########################################
487
488libvnet_la_SOURCES += \
489 vnet/lisp-gpe/lisp_gpe.c \
Florin Coras577c3552016-04-21 00:45:40 +0200490 vnet/lisp-gpe/interface.c \
Florin Coras02655bd2016-04-26 00:17:24 +0200491 vnet/lisp-gpe/ip_forward.c \
Florin Corase127a7e2016-02-18 22:20:01 +0100492 vnet/lisp-gpe/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700493
494nobase_include_HEADERS += \
495 vnet/lisp-gpe/lisp_gpe.h \
496 vnet/lisp-gpe/lisp_gpe_packet.h \
Florin Corase127a7e2016-02-18 22:20:01 +0100497 vnet/lisp-gpe/lisp_gpe_error.def
Ed Warnickecb9cada2015-12-08 15:45:58 -0700498
Filip Tehlar254b0362016-04-07 10:04:34 +0200499if ENABLE_TESTS
500TESTS += test_test
501
502test_test_SOURCES = test/lisp-gpe/test.c
503
504test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
505
506test_test_LDADD = $(LIBOBJS)
507
508noinst_PROGRAMS += $(TESTS)
509check_PROGRAMS = $(TESTS)
510endif
511
Ed Warnickecb9cada2015-12-08 15:45:58 -0700512########################################
513# DHCP client
514########################################
515libvnet_la_SOURCES += \
516 vnet/dhcp/client.c \
517 vnet/dhcp/client.h
518
519nobase_include_HEADERS += \
520 vnet/dhcp/client.h
521
522########################################
523# DHCP proxy
524########################################
525libvnet_la_SOURCES += \
526 vnet/dhcp/proxy_node.c \
527 vnet/dhcp/proxy.h
528
529nobase_include_HEADERS += \
530 vnet/dhcp/packet.h \
531 vnet/dhcp/proxy.h \
532 vnet/dhcp/proxy_error.def
533
534########################################
535# ipv6 segment routing
536########################################
Dave Barach61efa142016-01-22 08:23:09 -0500537
538if WITH_IPV6SR
Ed Warnickecb9cada2015-12-08 15:45:58 -0700539libvnet_la_SOURCES += \
Keith Burns (alagalah)52fc44d2016-03-25 09:38:50 -0700540 vnet/sr/sr.c \
541 vnet/sr/sr_replicate.c
Dave Barach61efa142016-01-22 08:23:09 -0500542endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700543
544nobase_include_HEADERS += \
545 vnet/sr/sr_packet.h \
546 vnet/sr/sr_error.def \
547 vnet/sr/sr.h
548
549########################################
550# CGN
551#########################################
Dave Barach61efa142016-01-22 08:23:09 -0500552
553if WITH_VCGN
Ed Warnickecb9cada2015-12-08 15:45:58 -0700554libvnet_la_SOURCES += \
555 vnet/vcgn/cnat_bulk_port.c \
556 vnet/vcgn/cnat_config.c \
557 vnet/vcgn/cnat_db_scanner.c \
558 vnet/vcgn/cnat_db_v2.c \
559 vnet/vcgn/cnat_debug_msg_handler.c \
560 vnet/vcgn/cnat_cli_handler.c \
561 vnet/vcgn/cnat_global.c \
562 vnet/vcgn/cnat_ipv4_udp_inside_input.c \
563 vnet/vcgn/cnat_ipv4_udp_inside_input_exceptions.c \
564 vnet/vcgn/cnat_ipv4_udp_outside_input.c \
565 vnet/vcgn/cnat_ipv4_tcp_inside_input.c \
566 vnet/vcgn/cnat_ipv4_tcp_inside_input_exceptions.c \
567 vnet/vcgn/cnat_ipv4_tcp_outside_input.c \
568 vnet/vcgn/cnat_ipv4_icmp_query_inside_input.c \
569 vnet/vcgn/cnat_ipv4_icmp_query_inside_input_exception.c \
570 vnet/vcgn/cnat_ipv4_icmp_query_outside_input.c \
571 vnet/vcgn/cnat_ipv4_icmp_error_inside_input.c \
572 vnet/vcgn/cnat_ipv4_icmp_error_outside_input.c \
573 vnet/vcgn/cnat_logging.c \
574 vnet/vcgn/cnat_ports.c \
575 vnet/vcgn/cnat_util.c \
576 vnet/vcgn/cnat_show.c \
577 vnet/vcgn/cnat_syslog.c \
578 vnet/vcgn/cnat_v4_functions.c \
579 vnet/vcgn/index_list.c \
580 vnet/vcgn/spp_platform_trace_log.c \
581 vnet/vcgn/vcgn_classify.c
Dave Barach61efa142016-01-22 08:23:09 -0500582endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700583
584########################################
585# DHCPv6 proxy
586########################################
587libvnet_la_SOURCES += \
588 vnet/dhcpv6/proxy_node.c
589
590nobase_include_HEADERS += \
591 vnet/dhcpv6/packet.h \
592 vnet/dhcpv6/proxy.h \
593 vnet/dhcpv6/proxy_error.def
594
595########################################
596# IPFIX / netflow v10
597########################################
598libvnet_la_SOURCES += \
599 vnet/flow/flow_report.c
600
601nobase_include_HEADERS += \
602 vnet/flow/flow_report.h \
603 vnet/flow/ipfix_info_elements.h \
604 vnet/flow/ipfix_packet.h
605
606########################################
607# IPFIX sample code
608########################################
609
610libvnet_la_SOURCES += \
611 vnet/flow/flow_report_sample.c
612
613nobase_include_HEADERS += \
614 vnet/flow/flow_report_sample.h
615
616########################################
617# lawful intercept
618########################################
619
620libvnet_la_SOURCES += \
621 vnet/lawful-intercept/lawful_intercept.c \
622 vnet/lawful-intercept/node.c
623
624nobase_include_HEADERS += \
625 vnet/dpdk_replication.h \
626 vnet/lawful-intercept/lawful_intercept.h
627
628########################################
629# Packet generator
630########################################
631
632libvnet_la_SOURCES += \
633 vnet/pg/cli.c \
634 vnet/pg/edit.c \
635 vnet/pg/init.c \
636 vnet/pg/input.c \
637 vnet/pg/output.c \
638 vnet/pg/stream.c
639
640nobase_include_HEADERS += \
641 vnet/pg/pg.h \
642 vnet/pg/edit.h
643
644########################################
645# Intel DPDK
646########################################
647if WITH_DPDK
648libvnet_la_SOURCES += \
649 vnet/devices/dpdk/dpdk_priv.h \
650 vnet/devices/dpdk/device.c \
Damjan Marion7f620972016-02-25 16:00:11 +0100651 vnet/devices/dpdk/format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700652 vnet/devices/dpdk/init.c \
653 vnet/devices/dpdk/node.c \
654 vnet/devices/dpdk/threads.c \
655 vnet/devices/dpdk/vhost_user.c \
656 vnet/devices/dpdk/cli.c
657
658nobase_include_HEADERS += \
659 vnet/devices/dpdk/dpdk.h \
660 vnet/devices/dpdk/threads.h
661endif
662
663########################################
664# virtio
665########################################
666
667if WITH_DPDK
668libvnet_la_SOURCES += \
669 vnet/devices/virtio/vhost-user.c
670
671nobase_include_HEADERS += \
672 vnet/devices/virtio/vhost-user.h
673endif WITH_DPDK
674
675########################################
676# ssvm ethernet
677########################################
678libvnet_la_SOURCES += \
679 vnet/devices/ssvm/ssvm_eth.c \
680 vnet/devices/ssvm/node.c
681
682nobase_include_HEADERS += \
683 vnet/devices/ssvm/ssvm_eth.h
684
685########################################
Damjan Marion83243a02016-02-29 13:09:30 +0100686# Linux packet interface
687########################################
688
689libvnet_la_SOURCES += \
690 vnet/devices/af_packet/af_packet.c \
691 vnet/devices/af_packet/device.c \
692 vnet/devices/af_packet/node.c \
693 vnet/devices/af_packet/cli.c
694
695nobase_include_HEADERS += \
696 vnet/devices/af_packet/af_packet.h
697
698########################################
Damjan Marion108c7312016-04-20 05:04:20 +0200699# NETMAP interface
700########################################
701
702libvnet_la_SOURCES += \
703 vnet/devices/netmap/netmap.c \
704 vnet/devices/netmap/device.c \
705 vnet/devices/netmap/node.c \
706 vnet/devices/netmap/cli.c
707
708nobase_include_HEADERS += \
709 vnet/devices/netmap/netmap.h
710
711
712########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700713# Unix kernel related
714########################################
715
716# FIXME: vnet/unix/hgshm.c
717
718libvnet_la_SOURCES += \
719 vnet/unix/gdb_funcs.c \
720 vnet/unix/pcap.c \
721 vnet/unix/tapcli.c \
722 vnet/unix/tuntap.c
723
724nobase_include_HEADERS += \
725 vnet/unix/pcap.h \
726 vnet/unix/tuntap.h \
727 vnet/unix/tapcli.h
728
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -0400729########################################
730# Plugin client library
731########################################
732
733libvnetplugin_la_SOURCES += \
734 vnet/plugin/p1.c
735
736nobase_include_HEADERS += \
737 vnet/plugin/plugin.h
738
Shwetha Bhandari05866a12016-05-04 08:12:57 +0200739########################################
740# Service Chain verification util
741########################################
742libvnet_la_SOURCES += \
743 vnet/lib-scv/scv_util.c
744
745nobase_include_HEADERS += \
746 vnet/lib-scv/scv_util.h \
747 vnet/lib-scv/math64.h
748
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -0400749lib_LTLIBRARIES = libvnet.la libvnetplugin.la
Ed Warnickecb9cada2015-12-08 15:45:58 -0700750
Ed Warnickecb9cada2015-12-08 15:45:58 -0700751dpdk_libs =
752
753if WITH_DPDK
754dpdk_libs += -l:libdpdk.a
755endif
756
Ed Warnickecb9cada2015-12-08 15:45:58 -0700757pcap2pg_SOURCES = \
758 vnet/unix/pcap2pg.c \
759 vnet/unix/pcap.h
760
761pcap2pg_LDFLAGS = -static
762pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl
763
764noinst_PROGRAMS += pcap2pg
Filip Tehlar254b0362016-04-07 10:04:34 +0200765
766