blob: fd9c3e508b7e81d53415e343a514977a3f690846 [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
Damjan Marion137c7c62016-07-06 22:52:49 +020016AM_CFLAGS = -Wall @DPDK@ @IPSEC@ @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
Ole Troand575e692016-08-25 12:26:47 +020024dpdk_libs =
25if WITH_DPDK
26dpdk_libs += -l:libdpdk.a
27endif
28
Ed Warnickecb9cada2015-12-08 15:45:58 -070029########################################
30# Generic stuff
31########################################
32libvnet_la_SOURCES += \
33 vnet/config.c \
Damjan Marion0247b462016-06-08 01:37:11 +020034 vnet/handoff.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070035 vnet/interface.c \
36 vnet/interface_cli.c \
37 vnet/interface_format.c \
38 vnet/interface_output.c \
39 vnet/misc.c \
40 vnet/replication.c \
41 vnet/rewrite.c
42
43nobase_include_HEADERS += \
44 vnet/api_errno.h \
45 vnet/buffer.h \
46 vnet/config.h \
47 vnet/global_funcs.h \
Damjan Marion0247b462016-06-08 01:37:11 +020048 vnet/handoff.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -070049 vnet/interface.h \
50 vnet/interface_funcs.h \
51 vnet/l3_types.h \
52 vnet/pipeline.h \
53 vnet/replication.h \
54 vnet/rewrite.h \
55 vnet/vnet.h
56
57########################################
58# Policer infra
59########################################
60
61libvnet_la_SOURCES += \
62 vnet/policer/node_funcs.c \
63 vnet/policer/policer.c \
64 vnet/policer/xlate.c
65
66nobase_include_HEADERS += \
67 vnet/policer/police.h \
Matus Fabian65fcd4d2016-05-13 05:44:48 -070068 vnet/policer/policer.h \
69 vnet/policer/fix_types.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -070070 vnet/policer/xlate.h
71
Dave Barachc07bf5d2016-02-17 17:52:26 -050072########################################
73# Cop - junk filter
74########################################
75
76libvnet_la_SOURCES += \
77 vnet/cop/cop.c \
78 vnet/cop/node1.c \
79 vnet/cop/ip4_whitelist.c \
80 vnet/cop/ip6_whitelist.c
81
82nobase_include_HEADERS += \
83 vnet/cop/cop.h
Ed Warnickecb9cada2015-12-08 15:45:58 -070084
85########################################
86# Layer 2 protocols go here
87########################################
88
89########################################
90# Layer 2 protocol: Ethernet
91########################################
92libvnet_la_SOURCES += \
93 vnet/ethernet/arp.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070094 vnet/ethernet/format.c \
95 vnet/ethernet/init.c \
96 vnet/ethernet/interface.c \
97 vnet/ethernet/node.c \
98 vnet/ethernet/pg.c
99
100nobase_include_HEADERS += \
101 vnet/ethernet/arp_packet.h \
102 vnet/ethernet/error.def \
103 vnet/ethernet/ethernet.h \
104 vnet/ethernet/packet.h \
105 vnet/ethernet/types.def
106
107########################################
108# Layer 2 protocol: Ethernet bridging
109########################################
110libvnet_la_SOURCES += \
111 vnet/l2/feat_bitmap.c \
112 vnet/l2/l2_bd.c \
113 vnet/l2/l2_bvi.c \
114 vnet/l2/l2_classify.c \
115 vnet/l2/l2_efp_filter.c \
116 vnet/l2/l2_fib.c \
117 vnet/l2/l2_flood.c \
118 vnet/l2/l2_fwd.c \
119 vnet/l2/l2_input_acl.c \
120 vnet/l2/l2_input.c \
121 vnet/l2/l2_input_vtr.c \
122 vnet/l2/l2_learn.c \
123 vnet/l2/l2_output_acl.c \
124 vnet/l2/l2_output.c \
125 vnet/l2/l2_patch.c \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000126 vnet/l2/l2_rw.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700127 vnet/l2/l2_vtr.c \
128 vnet/l2/l2_xcrw.c
129
130nobase_include_HEADERS += \
131 vnet/l2/feat_bitmap.h \
132 vnet/l2/l2_input.h \
133 vnet/l2/l2_output.h \
134 vnet/l2/l2_vtr.h \
135 vnet/l2/l2_input_vtr.h \
136 vnet/l2/l2_efp_filter.h \
137 vnet/l2/l2_fwd.h \
138 vnet/l2/l2_bd.h \
139 vnet/l2/l2_bvi.h \
140 vnet/l2/l2_flood.h \
141 vnet/l2/l2_fib.h \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000142 vnet/l2/l2_rw.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700143 vnet/l2/l2_xcrw.h \
144 vnet/l2/l2_classify.h
145
146########################################
147# Layer 2 protocol: SRP
148########################################
149libvnet_la_SOURCES += \
150 vnet/srp/format.c \
151 vnet/srp/interface.c \
152 vnet/srp/node.c \
153 vnet/srp/pg.c
154
155nobase_include_HEADERS += \
156 vnet/srp/packet.h \
157 vnet/srp/srp.h
158
159########################################
160# Layer 2 protocol: PPP
161########################################
162libvnet_la_SOURCES += \
163 vnet/ppp/node.c \
164 vnet/ppp/pg.c \
165 vnet/ppp/ppp.c
166
167nobase_include_HEADERS += \
168 vnet/ppp/error.def \
169 vnet/ppp/ppp.h \
170 vnet/ppp/packet.h
171
172########################################
173# Layer 2 protocol: HDLC
174########################################
175libvnet_la_SOURCES += \
176 vnet/hdlc/node.c \
177 vnet/hdlc/pg.c \
178 vnet/hdlc/hdlc.c
179
180nobase_include_HEADERS += \
181 vnet/hdlc/error.def \
182 vnet/hdlc/hdlc.h \
183 vnet/hdlc/packet.h
184
185########################################
186# Layer 2 protocol: LLC
187########################################
188libvnet_la_SOURCES += \
189 vnet/llc/llc.c \
190 vnet/llc/node.c \
191 vnet/llc/pg.c
192
193nobase_include_HEADERS += \
194 vnet/llc/llc.h
195
196########################################
197# Layer 2 protocol: SNAP
198########################################
199libvnet_la_SOURCES += \
200 vnet/snap/snap.c \
201 vnet/snap/node.c \
202 vnet/snap/pg.c
203
204nobase_include_HEADERS += \
205 vnet/snap/snap.h
206
207########################################
208# Layer 2 / vxlan
209########################################
210libvnet_la_SOURCES += \
211 vnet/vxlan/vxlan.c \
212 vnet/vxlan/encap.c \
213 vnet/vxlan/decap.c
214
215nobase_include_HEADERS += \
216 vnet/vxlan/vxlan.h \
Dave Barachced48e72016-02-08 15:57:35 -0500217 vnet/vxlan/vxlan_packet.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700218 vnet/vxlan/vxlan_error.def
219
220########################################
Dave Barachced48e72016-02-08 15:57:35 -0500221# Layer 2 / CDP
222########################################
223libvnet_la_SOURCES += \
224 vnet/cdp/cdp_input.c \
225 vnet/cdp/cdp_node.c \
226 vnet/cdp/cdp_periodic.c
227
228nobase_include_HEADERS += \
229 vnet/cdp/cdp_protocol.h
230
231########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700232# Layer 2/3 "classify"
233########################################
234libvnet_la_SOURCES += \
235 vnet/classify/vnet_classify.c \
236 vnet/classify/ip_classify.c \
237 vnet/classify/input_acl.c \
Matus Fabian70e6a8d2016-06-20 08:10:42 -0700238 vnet/classify/policer_classify.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700239 vnet/classify/vnet_classify.h
240
241nobase_include_HEADERS += \
242 vnet/classify/vnet_classify.h \
Matus Fabian70e6a8d2016-06-20 08:10:42 -0700243 vnet/classify/input_acl.h \
244 vnet/classify/policer_classify.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700245
246########################################
247# Layer 3 protocols go here
248########################################
249
Ed Warnickecb9cada2015-12-08 15:45:58 -0700250########################################
251# Layer 3 protocol: IP v4/v6
252########################################
253libvnet_la_SOURCES += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400254 vnet/ip/adj_alloc.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700255 vnet/ip/format.c \
256 vnet/ip/icmp4.c \
257 vnet/ip/icmp6.c \
Dave Barachd6534602016-06-14 18:38:02 -0400258 vnet/ip/ip_feature_registration.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700259 vnet/ip/ip46_cli.c \
260 vnet/ip/ip4_format.c \
261 vnet/ip/ip4_forward.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700262 vnet/ip/ip4_input.c \
263 vnet/ip/ip4_mtrie.c \
264 vnet/ip/ip4_pg.c \
265 vnet/ip/ip4_source_check.c \
Dave Barach6f9bca22016-04-30 10:25:32 -0400266 vnet/ip/ip4_source_and_port_range_check.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700267 vnet/ip/ip6_format.c \
268 vnet/ip/ip6_forward.c \
269 vnet/ip/ip6_hop_by_hop.c \
270 vnet/ip/ip6_input.c \
271 vnet/ip/ip6_neighbor.c \
272 vnet/ip/ip6_pg.c \
273 vnet/ip/ip_checksum.c \
274 vnet/ip/ip.h \
275 vnet/ip/ip_init.c \
276 vnet/ip/lookup.c \
277 vnet/ip/udp_format.c \
278 vnet/ip/udp_init.c \
279 vnet/ip/udp_local.c \
280 vnet/ip/udp_pg.c \
281 vnet/ip/ip_input_acl.c \
282 vnet/ip/ip_frag.c
283
284nobase_include_HEADERS += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400285 vnet/ip/adj_alloc.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700286 vnet/ip/format.h \
287 vnet/ip/icmp46_packet.h \
Ole Troan92eade12016-01-13 20:17:08 +0100288 vnet/ip/icmp4.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700289 vnet/ip/icmp6.h \
290 vnet/ip/igmp_packet.h \
291 vnet/ip/ip.h \
Dave Barachd6534602016-06-14 18:38:02 -0400292 vnet/ip/ip_feature_registration.h \
Dave Barach6f9bca22016-04-30 10:25:32 -0400293 vnet/ip/ip_source_and_port_range_check.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700294 vnet/ip/ip4.h \
295 vnet/ip/ip4_mtrie.h \
296 vnet/ip/ip4_error.h \
297 vnet/ip/ip4_packet.h \
298 vnet/ip/ip6.h \
299 vnet/ip/ip6_error.h \
300 vnet/ip/ip6_hop_by_hop.h \
301 vnet/ip/ip6_hop_by_hop_packet.h \
302 vnet/ip/ip6_packet.h \
303 vnet/ip/lookup.h \
304 vnet/ip/ip_packet.h \
305 vnet/ip/ports.def \
306 vnet/ip/protocols.def \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700307 vnet/ip/tcp_packet.h \
308 vnet/ip/udp.h \
309 vnet/ip/udp_error.def \
310 vnet/ip/udp_packet.h
311
312########################################
313# Layer 3 protocol: IPSec
314########################################
Dave Barach61efa142016-01-22 08:23:09 -0500315if WITH_IPSEC
Ed Warnickecb9cada2015-12-08 15:45:58 -0700316libvnet_la_SOURCES += \
317 vnet/ipsec/ipsec.c \
318 vnet/ipsec/ipsec_cli.c \
319 vnet/ipsec/ipsec_format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700320 vnet/ipsec/ipsec_input.c \
321 vnet/ipsec/ipsec_if.c \
322 vnet/ipsec/ipsec_if_in.c \
323 vnet/ipsec/ipsec_if_out.c \
324 vnet/ipsec/esp_encrypt.c \
325 vnet/ipsec/esp_decrypt.c \
326 vnet/ipsec/ikev2.c \
327 vnet/ipsec/ikev2_crypto.c \
328 vnet/ipsec/ikev2_cli.c \
329 vnet/ipsec/ikev2_payload.c \
330 vnet/ipsec/ikev2_format.c
Dave Barach61efa142016-01-22 08:23:09 -0500331endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700332
Damjan Marione936bbe2016-02-25 23:17:38 +0100333libvnet_la_SOURCES += \
334 vnet/ipsec/ipsec_output.c
335
Ed Warnickecb9cada2015-12-08 15:45:58 -0700336nobase_include_HEADERS += \
337 vnet/ipsec/ipsec.h \
338 vnet/ipsec/esp.h \
339 vnet/ipsec/ikev2.h \
340 vnet/ipsec/ikev2_priv.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700341
342########################################
343# Layer 3 protocol: osi
344########################################
345libvnet_la_SOURCES += \
346 vnet/osi/node.c \
347 vnet/osi/osi.c \
348 vnet/osi/pg.c
349
350nobase_include_HEADERS += \
351 vnet/osi/osi.h
352
353########################################
354# Layer 3 protocol: MAP
355########################################
356libvnet_la_SOURCES += \
357 vnet/map/map.c \
358 vnet/map/ip4_map.c \
359 vnet/map/ip6_map.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700360 vnet/map/ip4_map_t.c \
361 vnet/map/ip6_map_t.c
362
363nobase_include_HEADERS += \
Ole Troan3b3688f2016-06-15 14:29:08 +0200364 vnet/map/map.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700365
Ole Troand575e692016-08-25 12:26:47 +0200366if ENABLE_TESTS
367TESTS += test_map
368test_map_SOURCES = \
369 vnet/map/test.c
370test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
371
372test_map_LDADD = libvnet.la -lvppinfra -lvlib \
373 -lpthread -lvlibmemory -lvlibapi -lvlib_unix \
374 -ldl -lsvm -lrt
375
376test_map_LDFLAGS = -static
377endif
378
379
Ed Warnickecb9cada2015-12-08 15:45:58 -0700380########################################
381# Tunnel protocol: gre
382########################################
383libvnet_la_SOURCES += \
384 vnet/gre/gre.c \
385 vnet/gre/node.c \
386 vnet/gre/interface.c \
387 vnet/gre/pg.c
388
389nobase_include_HEADERS += \
390 vnet/gre/gre.h \
391 vnet/gre/packet.h \
392 vnet/gre/error.def
393
394########################################
395# Tunnel protocol: l2tpv3
396########################################
397libvnet_la_SOURCES += \
398 vnet/l2tp/l2tp.c \
399 vnet/l2tp/encap.c \
400 vnet/l2tp/decap.c \
401 vnet/l2tp/pg.c
402
403nobase_include_HEADERS += \
404 vnet/l2tp/l2tp.h \
405 vnet/l2tp/packet.h
406
407########################################
408# Tunnel protocol: gre+mpls
409########################################
410libvnet_la_SOURCES += \
411 vnet/mpls-gre/mpls.c \
412 vnet/mpls-gre/node.c \
413 vnet/mpls-gre/interface.c \
414 vnet/mpls-gre/policy_encap.c \
415 vnet/mpls-gre/pg.c
416
417nobase_include_HEADERS += \
418 vnet/mpls-gre/mpls.h \
419 vnet/mpls-gre/packet.h \
420 vnet/mpls-gre/error.def
421
422
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########################################
Matus Fabian694265d2016-08-10 01:55:36 -0700438# Tunnel protocol: ipsec+gre
439########################################
440libvnet_la_SOURCES += \
441 vnet/ipsec-gre/ipsec_gre.c \
442 vnet/ipsec-gre/node.c \
443 vnet/ipsec-gre/interface.c
444
445nobase_include_HEADERS += \
446 vnet/ipsec-gre/ipsec_gre.h \
447 vnet/ipsec-gre/error.def
448
449########################################
Florin Corase127a7e2016-02-18 22:20:01 +0100450# LISP control plane: lisp-cp
451########################################
452
453libvnet_la_SOURCES += \
454 vnet/lisp-cp/lisp_types.c \
455 vnet/lisp-cp/control.c \
456 vnet/lisp-cp/gid_dictionary.c \
457 vnet/lisp-cp/lisp_msg_serdes.c \
458 vnet/lisp-cp/packets.c
459
460nobase_include_HEADERS += \
461 vnet/lisp-cp/lisp_types.h \
462 vnet/lisp-cp/packets.h \
463 vnet/lisp-cp/gid_dictionary.h \
464 vnet/lisp-cp/lisp_cp_messages.h \
465 vnet/lisp-cp/lisp_msg_serdes.h \
466 vnet/lisp-cp/control.h
467
Filip Tehlar254b0362016-04-07 10:04:34 +0200468
469if ENABLE_TESTS
Ole Troand575e692016-08-25 12:26:47 +0200470LDS = -lvppinfra -l:libvlib.a $(dpdk_libs) -l:libvlibmemory.a \
Filip Tehlar254b0362016-04-07 10:04:34 +0200471 -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a
472
473TESTS += test_cp_serdes test_lisp_types
474
475test_cp_serdes_SOURCES = \
476 test/lisp-cp/test_cp_serdes.c \
477 vnet/lisp-cp/lisp_msg_serdes.c \
478 vnet/lisp-cp/lisp_types.c \
479 vnet/lisp-cp/packets.c \
480 vnet/ip/ip_checksum.c
481
482test_lisp_types_SOURCES = \
483 test/lisp-cp/test_lisp_types.c \
484 vnet/lisp-cp/lisp_types.c
485
486test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
487test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
488
489test_cp_serdes_LDADD = libvnet.la $(LDS)
490test_lisp_types_LDADD = libvnet.la $(LDS)
491
492test_cp_serdes_LDFLAGS = -static
493test_lisp_types_LDFLAGS = -static
494endif
495
Florin Corase127a7e2016-02-18 22:20:01 +0100496########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700497# Tunnel protocol: lisp-gpe
498########################################
499
500libvnet_la_SOURCES += \
501 vnet/lisp-gpe/lisp_gpe.c \
Florin Coras577c3552016-04-21 00:45:40 +0200502 vnet/lisp-gpe/interface.c \
Florin Coras02655bd2016-04-26 00:17:24 +0200503 vnet/lisp-gpe/ip_forward.c \
Florin Corase127a7e2016-02-18 22:20:01 +0100504 vnet/lisp-gpe/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700505
506nobase_include_HEADERS += \
507 vnet/lisp-gpe/lisp_gpe.h \
508 vnet/lisp-gpe/lisp_gpe_packet.h \
Florin Corase127a7e2016-02-18 22:20:01 +0100509 vnet/lisp-gpe/lisp_gpe_error.def
Ed Warnickecb9cada2015-12-08 15:45:58 -0700510
Filip Tehlar254b0362016-04-07 10:04:34 +0200511if ENABLE_TESTS
512TESTS += test_test
513
514test_test_SOURCES = test/lisp-gpe/test.c
515
516test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
517
518test_test_LDADD = $(LIBOBJS)
519
520noinst_PROGRAMS += $(TESTS)
521check_PROGRAMS = $(TESTS)
522endif
523
Ed Warnickecb9cada2015-12-08 15:45:58 -0700524########################################
525# DHCP client
526########################################
527libvnet_la_SOURCES += \
528 vnet/dhcp/client.c \
529 vnet/dhcp/client.h
530
531nobase_include_HEADERS += \
532 vnet/dhcp/client.h
533
534########################################
535# DHCP proxy
536########################################
537libvnet_la_SOURCES += \
538 vnet/dhcp/proxy_node.c \
539 vnet/dhcp/proxy.h
540
541nobase_include_HEADERS += \
542 vnet/dhcp/packet.h \
543 vnet/dhcp/proxy.h \
544 vnet/dhcp/proxy_error.def
545
546########################################
547# ipv6 segment routing
548########################################
Dave Barach61efa142016-01-22 08:23:09 -0500549
550if WITH_IPV6SR
Ed Warnickecb9cada2015-12-08 15:45:58 -0700551libvnet_la_SOURCES += \
Keith Burns (alagalah)52fc44d2016-03-25 09:38:50 -0700552 vnet/sr/sr.c \
553 vnet/sr/sr_replicate.c
Dave Barach61efa142016-01-22 08:23:09 -0500554endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700555
556nobase_include_HEADERS += \
557 vnet/sr/sr_packet.h \
558 vnet/sr/sr_error.def \
559 vnet/sr/sr.h
560
561########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700562# DHCPv6 proxy
563########################################
564libvnet_la_SOURCES += \
565 vnet/dhcpv6/proxy_node.c
566
567nobase_include_HEADERS += \
568 vnet/dhcpv6/packet.h \
569 vnet/dhcpv6/proxy.h \
570 vnet/dhcpv6/proxy_error.def
571
572########################################
573# IPFIX / netflow v10
574########################################
575libvnet_la_SOURCES += \
576 vnet/flow/flow_report.c
577
578nobase_include_HEADERS += \
579 vnet/flow/flow_report.h \
580 vnet/flow/ipfix_info_elements.h \
581 vnet/flow/ipfix_packet.h
582
583########################################
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700584# IPFIX classify code
Ed Warnickecb9cada2015-12-08 15:45:58 -0700585########################################
586
587libvnet_la_SOURCES += \
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700588 vnet/flow/flow_report_classify.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700589
590nobase_include_HEADERS += \
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700591 vnet/flow/flow_report_classify.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700592
593########################################
594# lawful intercept
595########################################
596
597libvnet_la_SOURCES += \
598 vnet/lawful-intercept/lawful_intercept.c \
599 vnet/lawful-intercept/node.c
600
601nobase_include_HEADERS += \
602 vnet/dpdk_replication.h \
603 vnet/lawful-intercept/lawful_intercept.h
604
605########################################
606# Packet generator
607########################################
608
609libvnet_la_SOURCES += \
610 vnet/pg/cli.c \
611 vnet/pg/edit.c \
612 vnet/pg/init.c \
613 vnet/pg/input.c \
614 vnet/pg/output.c \
615 vnet/pg/stream.c
616
617nobase_include_HEADERS += \
618 vnet/pg/pg.h \
619 vnet/pg/edit.h
620
621########################################
622# Intel DPDK
623########################################
624if WITH_DPDK
625libvnet_la_SOURCES += \
626 vnet/devices/dpdk/dpdk_priv.h \
627 vnet/devices/dpdk/device.c \
Damjan Marion7f620972016-02-25 16:00:11 +0100628 vnet/devices/dpdk/format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700629 vnet/devices/dpdk/init.c \
630 vnet/devices/dpdk/node.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700631 vnet/devices/dpdk/vhost_user.c \
632 vnet/devices/dpdk/cli.c
633
634nobase_include_HEADERS += \
Damjan Marion0f8ecf02016-06-27 08:30:30 +0200635 vnet/devices/dpdk/dpdk.h
Damjan Marionb4d89272016-05-12 22:14:45 +0200636else
637libvnet_la_SOURCES += \
638 vnet/devices/nic/ixge.c \
639 vnet/devices/nic/ixge.h \
640 vnet/devices/nic/sfp.c \
641 vnet/devices/nic/sfp.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700642endif
643
644########################################
645# virtio
646########################################
647
Ed Warnickecb9cada2015-12-08 15:45:58 -0700648libvnet_la_SOURCES += \
649 vnet/devices/virtio/vhost-user.c
650
651nobase_include_HEADERS += \
652 vnet/devices/virtio/vhost-user.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700653
654########################################
655# ssvm ethernet
656########################################
657libvnet_la_SOURCES += \
658 vnet/devices/ssvm/ssvm_eth.c \
659 vnet/devices/ssvm/node.c
660
661nobase_include_HEADERS += \
662 vnet/devices/ssvm/ssvm_eth.h
663
664########################################
Damjan Marion83243a02016-02-29 13:09:30 +0100665# Linux packet interface
666########################################
667
668libvnet_la_SOURCES += \
669 vnet/devices/af_packet/af_packet.c \
670 vnet/devices/af_packet/device.c \
671 vnet/devices/af_packet/node.c \
672 vnet/devices/af_packet/cli.c
673
674nobase_include_HEADERS += \
675 vnet/devices/af_packet/af_packet.h
676
677########################################
Damjan Marion108c7312016-04-20 05:04:20 +0200678# NETMAP interface
679########################################
680
681libvnet_la_SOURCES += \
682 vnet/devices/netmap/netmap.c \
683 vnet/devices/netmap/device.c \
684 vnet/devices/netmap/node.c \
685 vnet/devices/netmap/cli.c
686
687nobase_include_HEADERS += \
688 vnet/devices/netmap/netmap.h
689
690
691########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700692# Unix kernel related
693########################################
694
695# FIXME: vnet/unix/hgshm.c
696
697libvnet_la_SOURCES += \
698 vnet/unix/gdb_funcs.c \
699 vnet/unix/pcap.c \
700 vnet/unix/tapcli.c \
701 vnet/unix/tuntap.c
702
703nobase_include_HEADERS += \
704 vnet/unix/pcap.h \
705 vnet/unix/tuntap.h \
706 vnet/unix/tapcli.h
707
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -0400708########################################
709# Plugin client library
710########################################
711
712libvnetplugin_la_SOURCES += \
713 vnet/plugin/p1.c
714
715nobase_include_HEADERS += \
716 vnet/plugin/plugin.h
717
718lib_LTLIBRARIES = libvnet.la libvnetplugin.la
Ed Warnickecb9cada2015-12-08 15:45:58 -0700719
Ed Warnickecb9cada2015-12-08 15:45:58 -0700720pcap2pg_SOURCES = \
721 vnet/unix/pcap2pg.c \
722 vnet/unix/pcap.h
723
724pcap2pg_LDFLAGS = -static
725pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl
726
727noinst_PROGRAMS += pcap2pg