blob: 1c47c658ac784d087183a864d4cd7bdd5215522f [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 \
Dave Barachb84a3e52016-08-30 17:01:52 -0400114 vnet/l2/l2_input_classify.c \
115 vnet/l2/l2_output_classify.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700116 vnet/l2/l2_efp_filter.c \
117 vnet/l2/l2_fib.c \
118 vnet/l2/l2_flood.c \
119 vnet/l2/l2_fwd.c \
120 vnet/l2/l2_input_acl.c \
121 vnet/l2/l2_input.c \
122 vnet/l2/l2_input_vtr.c \
123 vnet/l2/l2_learn.c \
124 vnet/l2/l2_output_acl.c \
125 vnet/l2/l2_output.c \
126 vnet/l2/l2_patch.c \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000127 vnet/l2/l2_rw.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700128 vnet/l2/l2_vtr.c \
129 vnet/l2/l2_xcrw.c
130
131nobase_include_HEADERS += \
132 vnet/l2/feat_bitmap.h \
133 vnet/l2/l2_input.h \
134 vnet/l2/l2_output.h \
135 vnet/l2/l2_vtr.h \
136 vnet/l2/l2_input_vtr.h \
137 vnet/l2/l2_efp_filter.h \
138 vnet/l2/l2_fwd.h \
139 vnet/l2/l2_bd.h \
140 vnet/l2/l2_bvi.h \
141 vnet/l2/l2_flood.h \
142 vnet/l2/l2_fib.h \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000143 vnet/l2/l2_rw.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700144 vnet/l2/l2_xcrw.h \
145 vnet/l2/l2_classify.h
146
147########################################
148# Layer 2 protocol: SRP
149########################################
150libvnet_la_SOURCES += \
151 vnet/srp/format.c \
152 vnet/srp/interface.c \
153 vnet/srp/node.c \
154 vnet/srp/pg.c
155
156nobase_include_HEADERS += \
157 vnet/srp/packet.h \
158 vnet/srp/srp.h
159
160########################################
161# Layer 2 protocol: PPP
162########################################
163libvnet_la_SOURCES += \
164 vnet/ppp/node.c \
165 vnet/ppp/pg.c \
166 vnet/ppp/ppp.c
167
168nobase_include_HEADERS += \
169 vnet/ppp/error.def \
170 vnet/ppp/ppp.h \
171 vnet/ppp/packet.h
172
173########################################
174# Layer 2 protocol: HDLC
175########################################
176libvnet_la_SOURCES += \
177 vnet/hdlc/node.c \
178 vnet/hdlc/pg.c \
179 vnet/hdlc/hdlc.c
180
181nobase_include_HEADERS += \
182 vnet/hdlc/error.def \
183 vnet/hdlc/hdlc.h \
184 vnet/hdlc/packet.h
185
186########################################
187# Layer 2 protocol: LLC
188########################################
189libvnet_la_SOURCES += \
190 vnet/llc/llc.c \
191 vnet/llc/node.c \
192 vnet/llc/pg.c
193
194nobase_include_HEADERS += \
195 vnet/llc/llc.h
196
197########################################
198# Layer 2 protocol: SNAP
199########################################
200libvnet_la_SOURCES += \
201 vnet/snap/snap.c \
202 vnet/snap/node.c \
203 vnet/snap/pg.c
204
205nobase_include_HEADERS += \
206 vnet/snap/snap.h
207
208########################################
209# Layer 2 / vxlan
210########################################
211libvnet_la_SOURCES += \
212 vnet/vxlan/vxlan.c \
213 vnet/vxlan/encap.c \
214 vnet/vxlan/decap.c
215
216nobase_include_HEADERS += \
217 vnet/vxlan/vxlan.h \
Dave Barachced48e72016-02-08 15:57:35 -0500218 vnet/vxlan/vxlan_packet.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700219 vnet/vxlan/vxlan_error.def
220
221########################################
Dave Barachced48e72016-02-08 15:57:35 -0500222# Layer 2 / CDP
223########################################
224libvnet_la_SOURCES += \
225 vnet/cdp/cdp_input.c \
226 vnet/cdp/cdp_node.c \
227 vnet/cdp/cdp_periodic.c
228
229nobase_include_HEADERS += \
230 vnet/cdp/cdp_protocol.h
231
232########################################
Klement Sekerade4582b2016-09-13 12:27:08 +0200233# Layer 2 / LLDP
234########################################
235libvnet_la_SOURCES += \
236 vnet/lldp/lldp_input.c \
237 vnet/lldp/lldp_node.c \
238 vnet/lldp/lldp_output.c \
239 vnet/lldp/lldp_cli.c
240
241nobase_include_HEADERS += \
242 vnet/lldp/lldp_protocol.h
243
244########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700245# Layer 2/3 "classify"
246########################################
247libvnet_la_SOURCES += \
248 vnet/classify/vnet_classify.c \
249 vnet/classify/ip_classify.c \
250 vnet/classify/input_acl.c \
Matus Fabian70e6a8d2016-06-20 08:10:42 -0700251 vnet/classify/policer_classify.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700252 vnet/classify/vnet_classify.h
253
254nobase_include_HEADERS += \
255 vnet/classify/vnet_classify.h \
Matus Fabian70e6a8d2016-06-20 08:10:42 -0700256 vnet/classify/input_acl.h \
257 vnet/classify/policer_classify.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700258
259########################################
260# Layer 3 protocols go here
261########################################
262
Ed Warnickecb9cada2015-12-08 15:45:58 -0700263########################################
264# Layer 3 protocol: IP v4/v6
265########################################
266libvnet_la_SOURCES += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400267 vnet/ip/adj_alloc.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700268 vnet/ip/format.c \
269 vnet/ip/icmp4.c \
270 vnet/ip/icmp6.c \
Dave Barachd6534602016-06-14 18:38:02 -0400271 vnet/ip/ip_feature_registration.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700272 vnet/ip/ip46_cli.c \
Andrew Yourtchenko7e682202016-08-04 13:39:35 +0000273 vnet/ip/ping.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700274 vnet/ip/ip4_format.c \
275 vnet/ip/ip4_forward.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700276 vnet/ip/ip4_input.c \
277 vnet/ip/ip4_mtrie.c \
278 vnet/ip/ip4_pg.c \
279 vnet/ip/ip4_source_check.c \
Dave Barach6f9bca22016-04-30 10:25:32 -0400280 vnet/ip/ip4_source_and_port_range_check.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700281 vnet/ip/ip6_format.c \
282 vnet/ip/ip6_forward.c \
283 vnet/ip/ip6_hop_by_hop.c \
284 vnet/ip/ip6_input.c \
285 vnet/ip/ip6_neighbor.c \
286 vnet/ip/ip6_pg.c \
287 vnet/ip/ip_checksum.c \
288 vnet/ip/ip.h \
289 vnet/ip/ip_init.c \
290 vnet/ip/lookup.c \
291 vnet/ip/udp_format.c \
292 vnet/ip/udp_init.c \
293 vnet/ip/udp_local.c \
294 vnet/ip/udp_pg.c \
295 vnet/ip/ip_input_acl.c \
296 vnet/ip/ip_frag.c
297
298nobase_include_HEADERS += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400299 vnet/ip/adj_alloc.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700300 vnet/ip/format.h \
301 vnet/ip/icmp46_packet.h \
Ole Troan92eade12016-01-13 20:17:08 +0100302 vnet/ip/icmp4.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700303 vnet/ip/icmp6.h \
304 vnet/ip/igmp_packet.h \
305 vnet/ip/ip.h \
Dave Barachd6534602016-06-14 18:38:02 -0400306 vnet/ip/ip_feature_registration.h \
Dave Barach6f9bca22016-04-30 10:25:32 -0400307 vnet/ip/ip_source_and_port_range_check.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700308 vnet/ip/ip4.h \
309 vnet/ip/ip4_mtrie.h \
310 vnet/ip/ip4_error.h \
311 vnet/ip/ip4_packet.h \
312 vnet/ip/ip6.h \
313 vnet/ip/ip6_error.h \
314 vnet/ip/ip6_hop_by_hop.h \
315 vnet/ip/ip6_hop_by_hop_packet.h \
316 vnet/ip/ip6_packet.h \
317 vnet/ip/lookup.h \
318 vnet/ip/ip_packet.h \
319 vnet/ip/ports.def \
320 vnet/ip/protocols.def \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700321 vnet/ip/tcp_packet.h \
322 vnet/ip/udp.h \
323 vnet/ip/udp_error.def \
324 vnet/ip/udp_packet.h
325
326########################################
327# Layer 3 protocol: IPSec
328########################################
Dave Barach61efa142016-01-22 08:23:09 -0500329if WITH_IPSEC
Ed Warnickecb9cada2015-12-08 15:45:58 -0700330libvnet_la_SOURCES += \
331 vnet/ipsec/ipsec.c \
332 vnet/ipsec/ipsec_cli.c \
333 vnet/ipsec/ipsec_format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700334 vnet/ipsec/ipsec_input.c \
335 vnet/ipsec/ipsec_if.c \
336 vnet/ipsec/ipsec_if_in.c \
337 vnet/ipsec/ipsec_if_out.c \
338 vnet/ipsec/esp_encrypt.c \
339 vnet/ipsec/esp_decrypt.c \
340 vnet/ipsec/ikev2.c \
341 vnet/ipsec/ikev2_crypto.c \
342 vnet/ipsec/ikev2_cli.c \
343 vnet/ipsec/ikev2_payload.c \
344 vnet/ipsec/ikev2_format.c
Dave Barach61efa142016-01-22 08:23:09 -0500345endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700346
Damjan Marione936bbe2016-02-25 23:17:38 +0100347libvnet_la_SOURCES += \
348 vnet/ipsec/ipsec_output.c
349
Ed Warnickecb9cada2015-12-08 15:45:58 -0700350nobase_include_HEADERS += \
351 vnet/ipsec/ipsec.h \
352 vnet/ipsec/esp.h \
353 vnet/ipsec/ikev2.h \
354 vnet/ipsec/ikev2_priv.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700355
356########################################
357# Layer 3 protocol: osi
358########################################
359libvnet_la_SOURCES += \
360 vnet/osi/node.c \
361 vnet/osi/osi.c \
362 vnet/osi/pg.c
363
364nobase_include_HEADERS += \
365 vnet/osi/osi.h
366
367########################################
368# Layer 3 protocol: MAP
369########################################
370libvnet_la_SOURCES += \
371 vnet/map/map.c \
372 vnet/map/ip4_map.c \
373 vnet/map/ip6_map.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700374 vnet/map/ip4_map_t.c \
375 vnet/map/ip6_map_t.c
376
377nobase_include_HEADERS += \
Ole Troan3b3688f2016-06-15 14:29:08 +0200378 vnet/map/map.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700379
Ole Troand575e692016-08-25 12:26:47 +0200380if ENABLE_TESTS
381TESTS += test_map
382test_map_SOURCES = \
383 vnet/map/test.c
384test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
385
386test_map_LDADD = libvnet.la -lvppinfra -lvlib \
387 -lpthread -lvlibmemory -lvlibapi -lvlib_unix \
388 -ldl -lsvm -lrt
389
390test_map_LDFLAGS = -static
391endif
392
393
Ed Warnickecb9cada2015-12-08 15:45:58 -0700394########################################
395# Tunnel protocol: gre
396########################################
397libvnet_la_SOURCES += \
398 vnet/gre/gre.c \
399 vnet/gre/node.c \
400 vnet/gre/interface.c \
401 vnet/gre/pg.c
402
403nobase_include_HEADERS += \
404 vnet/gre/gre.h \
405 vnet/gre/packet.h \
406 vnet/gre/error.def
407
408########################################
409# Tunnel protocol: l2tpv3
410########################################
411libvnet_la_SOURCES += \
412 vnet/l2tp/l2tp.c \
413 vnet/l2tp/encap.c \
414 vnet/l2tp/decap.c \
415 vnet/l2tp/pg.c
416
417nobase_include_HEADERS += \
418 vnet/l2tp/l2tp.h \
419 vnet/l2tp/packet.h
420
421########################################
422# Tunnel protocol: gre+mpls
423########################################
424libvnet_la_SOURCES += \
425 vnet/mpls-gre/mpls.c \
426 vnet/mpls-gre/node.c \
427 vnet/mpls-gre/interface.c \
428 vnet/mpls-gre/policy_encap.c \
429 vnet/mpls-gre/pg.c
430
431nobase_include_HEADERS += \
432 vnet/mpls-gre/mpls.h \
433 vnet/mpls-gre/packet.h \
434 vnet/mpls-gre/error.def
435
436
437########################################
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700438# Tunnel protocol: vxlan-gpe
Ed Warnickecb9cada2015-12-08 15:45:58 -0700439########################################
440
441libvnet_la_SOURCES += \
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700442 vnet/vxlan-gpe/vxlan_gpe.c \
443 vnet/vxlan-gpe/encap.c \
444 vnet/vxlan-gpe/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700445
446nobase_include_HEADERS += \
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700447 vnet/vxlan-gpe/vxlan_gpe.h \
448 vnet/vxlan-gpe/vxlan_gpe_packet.h \
449 vnet/vxlan-gpe/vxlan_gpe_error.def
Ed Warnickecb9cada2015-12-08 15:45:58 -0700450
451########################################
Matus Fabian694265d2016-08-10 01:55:36 -0700452# Tunnel protocol: ipsec+gre
453########################################
454libvnet_la_SOURCES += \
455 vnet/ipsec-gre/ipsec_gre.c \
456 vnet/ipsec-gre/node.c \
457 vnet/ipsec-gre/interface.c
458
459nobase_include_HEADERS += \
460 vnet/ipsec-gre/ipsec_gre.h \
461 vnet/ipsec-gre/error.def
462
463########################################
Florin Corase127a7e2016-02-18 22:20:01 +0100464# LISP control plane: lisp-cp
465########################################
466
467libvnet_la_SOURCES += \
468 vnet/lisp-cp/lisp_types.c \
469 vnet/lisp-cp/control.c \
470 vnet/lisp-cp/gid_dictionary.c \
471 vnet/lisp-cp/lisp_msg_serdes.c \
472 vnet/lisp-cp/packets.c
473
474nobase_include_HEADERS += \
475 vnet/lisp-cp/lisp_types.h \
476 vnet/lisp-cp/packets.h \
477 vnet/lisp-cp/gid_dictionary.h \
478 vnet/lisp-cp/lisp_cp_messages.h \
479 vnet/lisp-cp/lisp_msg_serdes.h \
480 vnet/lisp-cp/control.h
481
Filip Tehlar254b0362016-04-07 10:04:34 +0200482
483if ENABLE_TESTS
Ole Troand575e692016-08-25 12:26:47 +0200484LDS = -lvppinfra -l:libvlib.a $(dpdk_libs) -l:libvlibmemory.a \
Filip Tehlar254b0362016-04-07 10:04:34 +0200485 -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a
486
487TESTS += test_cp_serdes test_lisp_types
488
489test_cp_serdes_SOURCES = \
490 test/lisp-cp/test_cp_serdes.c \
491 vnet/lisp-cp/lisp_msg_serdes.c \
492 vnet/lisp-cp/lisp_types.c \
493 vnet/lisp-cp/packets.c \
494 vnet/ip/ip_checksum.c
495
496test_lisp_types_SOURCES = \
497 test/lisp-cp/test_lisp_types.c \
498 vnet/lisp-cp/lisp_types.c
499
500test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
501test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
502
503test_cp_serdes_LDADD = libvnet.la $(LDS)
504test_lisp_types_LDADD = libvnet.la $(LDS)
505
506test_cp_serdes_LDFLAGS = -static
507test_lisp_types_LDFLAGS = -static
508endif
509
Florin Corase127a7e2016-02-18 22:20:01 +0100510########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700511# Tunnel protocol: lisp-gpe
512########################################
513
514libvnet_la_SOURCES += \
515 vnet/lisp-gpe/lisp_gpe.c \
Florin Coras577c3552016-04-21 00:45:40 +0200516 vnet/lisp-gpe/interface.c \
Florin Coras02655bd2016-04-26 00:17:24 +0200517 vnet/lisp-gpe/ip_forward.c \
Florin Corase127a7e2016-02-18 22:20:01 +0100518 vnet/lisp-gpe/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700519
520nobase_include_HEADERS += \
521 vnet/lisp-gpe/lisp_gpe.h \
522 vnet/lisp-gpe/lisp_gpe_packet.h \
Florin Corase127a7e2016-02-18 22:20:01 +0100523 vnet/lisp-gpe/lisp_gpe_error.def
Ed Warnickecb9cada2015-12-08 15:45:58 -0700524
Filip Tehlar254b0362016-04-07 10:04:34 +0200525if ENABLE_TESTS
526TESTS += test_test
527
528test_test_SOURCES = test/lisp-gpe/test.c
529
530test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
531
532test_test_LDADD = $(LIBOBJS)
533
534noinst_PROGRAMS += $(TESTS)
535check_PROGRAMS = $(TESTS)
536endif
537
Ed Warnickecb9cada2015-12-08 15:45:58 -0700538########################################
539# DHCP client
540########################################
541libvnet_la_SOURCES += \
542 vnet/dhcp/client.c \
543 vnet/dhcp/client.h
544
545nobase_include_HEADERS += \
546 vnet/dhcp/client.h
547
548########################################
549# DHCP proxy
550########################################
551libvnet_la_SOURCES += \
552 vnet/dhcp/proxy_node.c \
553 vnet/dhcp/proxy.h
554
555nobase_include_HEADERS += \
556 vnet/dhcp/packet.h \
557 vnet/dhcp/proxy.h \
558 vnet/dhcp/proxy_error.def
559
560########################################
561# ipv6 segment routing
562########################################
Dave Barach61efa142016-01-22 08:23:09 -0500563
564if WITH_IPV6SR
Ed Warnickecb9cada2015-12-08 15:45:58 -0700565libvnet_la_SOURCES += \
Keith Burns (alagalah)52fc44d2016-03-25 09:38:50 -0700566 vnet/sr/sr.c \
567 vnet/sr/sr_replicate.c
Dave Barach61efa142016-01-22 08:23:09 -0500568endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700569
570nobase_include_HEADERS += \
571 vnet/sr/sr_packet.h \
572 vnet/sr/sr_error.def \
573 vnet/sr/sr.h
574
575########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700576# DHCPv6 proxy
577########################################
578libvnet_la_SOURCES += \
579 vnet/dhcpv6/proxy_node.c
580
581nobase_include_HEADERS += \
582 vnet/dhcpv6/packet.h \
583 vnet/dhcpv6/proxy.h \
584 vnet/dhcpv6/proxy_error.def
585
586########################################
587# IPFIX / netflow v10
588########################################
589libvnet_la_SOURCES += \
590 vnet/flow/flow_report.c
591
592nobase_include_HEADERS += \
593 vnet/flow/flow_report.h \
594 vnet/flow/ipfix_info_elements.h \
595 vnet/flow/ipfix_packet.h
596
597########################################
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700598# IPFIX classify code
Ed Warnickecb9cada2015-12-08 15:45:58 -0700599########################################
600
601libvnet_la_SOURCES += \
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700602 vnet/flow/flow_report_classify.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700603
604nobase_include_HEADERS += \
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700605 vnet/flow/flow_report_classify.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700606
607########################################
608# lawful intercept
609########################################
610
611libvnet_la_SOURCES += \
612 vnet/lawful-intercept/lawful_intercept.c \
613 vnet/lawful-intercept/node.c
614
615nobase_include_HEADERS += \
616 vnet/dpdk_replication.h \
617 vnet/lawful-intercept/lawful_intercept.h
618
619########################################
620# Packet generator
621########################################
622
623libvnet_la_SOURCES += \
624 vnet/pg/cli.c \
625 vnet/pg/edit.c \
626 vnet/pg/init.c \
627 vnet/pg/input.c \
628 vnet/pg/output.c \
629 vnet/pg/stream.c
630
631nobase_include_HEADERS += \
632 vnet/pg/pg.h \
633 vnet/pg/edit.h
634
635########################################
636# Intel DPDK
637########################################
638if WITH_DPDK
639libvnet_la_SOURCES += \
640 vnet/devices/dpdk/dpdk_priv.h \
641 vnet/devices/dpdk/device.c \
Damjan Marion7f620972016-02-25 16:00:11 +0100642 vnet/devices/dpdk/format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700643 vnet/devices/dpdk/init.c \
644 vnet/devices/dpdk/node.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700645 vnet/devices/dpdk/vhost_user.c \
646 vnet/devices/dpdk/cli.c
647
648nobase_include_HEADERS += \
Damjan Marion0f8ecf02016-06-27 08:30:30 +0200649 vnet/devices/dpdk/dpdk.h
Damjan Marionb4d89272016-05-12 22:14:45 +0200650else
651libvnet_la_SOURCES += \
652 vnet/devices/nic/ixge.c \
653 vnet/devices/nic/ixge.h \
654 vnet/devices/nic/sfp.c \
655 vnet/devices/nic/sfp.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700656endif
657
658########################################
659# virtio
660########################################
661
Ed Warnickecb9cada2015-12-08 15:45:58 -0700662libvnet_la_SOURCES += \
663 vnet/devices/virtio/vhost-user.c
664
665nobase_include_HEADERS += \
666 vnet/devices/virtio/vhost-user.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700667
668########################################
669# ssvm ethernet
670########################################
671libvnet_la_SOURCES += \
672 vnet/devices/ssvm/ssvm_eth.c \
673 vnet/devices/ssvm/node.c
674
675nobase_include_HEADERS += \
676 vnet/devices/ssvm/ssvm_eth.h
677
678########################################
Damjan Marion83243a02016-02-29 13:09:30 +0100679# Linux packet interface
680########################################
681
682libvnet_la_SOURCES += \
683 vnet/devices/af_packet/af_packet.c \
684 vnet/devices/af_packet/device.c \
685 vnet/devices/af_packet/node.c \
686 vnet/devices/af_packet/cli.c
687
688nobase_include_HEADERS += \
689 vnet/devices/af_packet/af_packet.h
690
691########################################
Damjan Marion108c7312016-04-20 05:04:20 +0200692# NETMAP interface
693########################################
694
695libvnet_la_SOURCES += \
696 vnet/devices/netmap/netmap.c \
697 vnet/devices/netmap/device.c \
698 vnet/devices/netmap/node.c \
699 vnet/devices/netmap/cli.c
700
701nobase_include_HEADERS += \
702 vnet/devices/netmap/netmap.h
703
704
705########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700706# Unix kernel related
707########################################
708
709# FIXME: vnet/unix/hgshm.c
710
711libvnet_la_SOURCES += \
712 vnet/unix/gdb_funcs.c \
713 vnet/unix/pcap.c \
714 vnet/unix/tapcli.c \
715 vnet/unix/tuntap.c
716
717nobase_include_HEADERS += \
718 vnet/unix/pcap.h \
719 vnet/unix/tuntap.h \
720 vnet/unix/tapcli.h
721
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -0400722########################################
723# Plugin client library
724########################################
725
726libvnetplugin_la_SOURCES += \
727 vnet/plugin/p1.c
728
729nobase_include_HEADERS += \
730 vnet/plugin/plugin.h
731
732lib_LTLIBRARIES = libvnet.la libvnetplugin.la
Ed Warnickecb9cada2015-12-08 15:45:58 -0700733
Ed Warnickecb9cada2015-12-08 15:45:58 -0700734pcap2pg_SOURCES = \
735 vnet/unix/pcap2pg.c \
736 vnet/unix/pcap.h
737
738pcap2pg_LDFLAGS = -static
739pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl
740
741noinst_PROGRAMS += pcap2pg