blob: 72bdd11f54b51084a38f06ffc499e59c1f361597 [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
24########################################
25# Generic stuff
26########################################
27libvnet_la_SOURCES += \
28 vnet/config.c \
Damjan Marion0247b462016-06-08 01:37:11 +020029 vnet/handoff.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070030 vnet/interface.c \
31 vnet/interface_cli.c \
32 vnet/interface_format.c \
33 vnet/interface_output.c \
34 vnet/misc.c \
35 vnet/replication.c \
36 vnet/rewrite.c
37
38nobase_include_HEADERS += \
39 vnet/api_errno.h \
40 vnet/buffer.h \
41 vnet/config.h \
42 vnet/global_funcs.h \
Damjan Marion0247b462016-06-08 01:37:11 +020043 vnet/handoff.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -070044 vnet/interface.h \
45 vnet/interface_funcs.h \
46 vnet/l3_types.h \
47 vnet/pipeline.h \
48 vnet/replication.h \
49 vnet/rewrite.h \
50 vnet/vnet.h
51
52########################################
53# Policer infra
54########################################
55
56libvnet_la_SOURCES += \
57 vnet/policer/node_funcs.c \
58 vnet/policer/policer.c \
59 vnet/policer/xlate.c
60
61nobase_include_HEADERS += \
62 vnet/policer/police.h \
Matus Fabian65fcd4d2016-05-13 05:44:48 -070063 vnet/policer/policer.h \
64 vnet/policer/fix_types.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -070065 vnet/policer/xlate.h
66
Dave Barachc07bf5d2016-02-17 17:52:26 -050067########################################
68# Cop - junk filter
69########################################
70
71libvnet_la_SOURCES += \
72 vnet/cop/cop.c \
73 vnet/cop/node1.c \
74 vnet/cop/ip4_whitelist.c \
75 vnet/cop/ip6_whitelist.c
76
77nobase_include_HEADERS += \
78 vnet/cop/cop.h
Ed Warnickecb9cada2015-12-08 15:45:58 -070079
80########################################
81# Layer 2 protocols go here
82########################################
83
84########################################
85# Layer 2 protocol: Ethernet
86########################################
87libvnet_la_SOURCES += \
88 vnet/ethernet/arp.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070089 vnet/ethernet/format.c \
90 vnet/ethernet/init.c \
91 vnet/ethernet/interface.c \
92 vnet/ethernet/node.c \
93 vnet/ethernet/pg.c
94
95nobase_include_HEADERS += \
96 vnet/ethernet/arp_packet.h \
97 vnet/ethernet/error.def \
98 vnet/ethernet/ethernet.h \
99 vnet/ethernet/packet.h \
100 vnet/ethernet/types.def
101
102########################################
103# Layer 2 protocol: Ethernet bridging
104########################################
105libvnet_la_SOURCES += \
106 vnet/l2/feat_bitmap.c \
107 vnet/l2/l2_bd.c \
108 vnet/l2/l2_bvi.c \
109 vnet/l2/l2_classify.c \
110 vnet/l2/l2_efp_filter.c \
111 vnet/l2/l2_fib.c \
112 vnet/l2/l2_flood.c \
113 vnet/l2/l2_fwd.c \
114 vnet/l2/l2_input_acl.c \
115 vnet/l2/l2_input.c \
116 vnet/l2/l2_input_vtr.c \
117 vnet/l2/l2_learn.c \
118 vnet/l2/l2_output_acl.c \
119 vnet/l2/l2_output.c \
120 vnet/l2/l2_patch.c \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000121 vnet/l2/l2_rw.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700122 vnet/l2/l2_vtr.c \
123 vnet/l2/l2_xcrw.c
124
125nobase_include_HEADERS += \
126 vnet/l2/feat_bitmap.h \
127 vnet/l2/l2_input.h \
128 vnet/l2/l2_output.h \
129 vnet/l2/l2_vtr.h \
130 vnet/l2/l2_input_vtr.h \
131 vnet/l2/l2_efp_filter.h \
132 vnet/l2/l2_fwd.h \
133 vnet/l2/l2_bd.h \
134 vnet/l2/l2_bvi.h \
135 vnet/l2/l2_flood.h \
136 vnet/l2/l2_fib.h \
Pierre Pfisterd6f5b962016-03-21 16:17:52 +0000137 vnet/l2/l2_rw.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700138 vnet/l2/l2_xcrw.h \
139 vnet/l2/l2_classify.h
140
141########################################
142# Layer 2 protocol: SRP
143########################################
144libvnet_la_SOURCES += \
145 vnet/srp/format.c \
146 vnet/srp/interface.c \
147 vnet/srp/node.c \
148 vnet/srp/pg.c
149
150nobase_include_HEADERS += \
151 vnet/srp/packet.h \
152 vnet/srp/srp.h
153
154########################################
155# Layer 2 protocol: PPP
156########################################
157libvnet_la_SOURCES += \
158 vnet/ppp/node.c \
159 vnet/ppp/pg.c \
160 vnet/ppp/ppp.c
161
162nobase_include_HEADERS += \
163 vnet/ppp/error.def \
164 vnet/ppp/ppp.h \
165 vnet/ppp/packet.h
166
167########################################
168# Layer 2 protocol: HDLC
169########################################
170libvnet_la_SOURCES += \
171 vnet/hdlc/node.c \
172 vnet/hdlc/pg.c \
173 vnet/hdlc/hdlc.c
174
175nobase_include_HEADERS += \
176 vnet/hdlc/error.def \
177 vnet/hdlc/hdlc.h \
178 vnet/hdlc/packet.h
179
180########################################
181# Layer 2 protocol: LLC
182########################################
183libvnet_la_SOURCES += \
184 vnet/llc/llc.c \
185 vnet/llc/node.c \
186 vnet/llc/pg.c
187
188nobase_include_HEADERS += \
189 vnet/llc/llc.h
190
191########################################
192# Layer 2 protocol: SNAP
193########################################
194libvnet_la_SOURCES += \
195 vnet/snap/snap.c \
196 vnet/snap/node.c \
197 vnet/snap/pg.c
198
199nobase_include_HEADERS += \
200 vnet/snap/snap.h
201
202########################################
203# Layer 2 / vxlan
204########################################
205libvnet_la_SOURCES += \
206 vnet/vxlan/vxlan.c \
207 vnet/vxlan/encap.c \
208 vnet/vxlan/decap.c
209
210nobase_include_HEADERS += \
211 vnet/vxlan/vxlan.h \
Dave Barachced48e72016-02-08 15:57:35 -0500212 vnet/vxlan/vxlan_packet.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700213 vnet/vxlan/vxlan_error.def
214
215########################################
Dave Barachced48e72016-02-08 15:57:35 -0500216# Layer 2 / CDP
217########################################
218libvnet_la_SOURCES += \
219 vnet/cdp/cdp_input.c \
220 vnet/cdp/cdp_node.c \
221 vnet/cdp/cdp_periodic.c
222
223nobase_include_HEADERS += \
224 vnet/cdp/cdp_protocol.h
225
226########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700227# Layer 2/3 "classify"
228########################################
229libvnet_la_SOURCES += \
230 vnet/classify/vnet_classify.c \
231 vnet/classify/ip_classify.c \
232 vnet/classify/input_acl.c \
Matus Fabian70e6a8d2016-06-20 08:10:42 -0700233 vnet/classify/policer_classify.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700234 vnet/classify/vnet_classify.h
235
236nobase_include_HEADERS += \
237 vnet/classify/vnet_classify.h \
Matus Fabian70e6a8d2016-06-20 08:10:42 -0700238 vnet/classify/input_acl.h \
239 vnet/classify/policer_classify.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700240
241########################################
242# Layer 3 protocols go here
243########################################
244
Ed Warnickecb9cada2015-12-08 15:45:58 -0700245########################################
246# Layer 3 protocol: IP v4/v6
247########################################
248libvnet_la_SOURCES += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400249 vnet/ip/adj_alloc.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700250 vnet/ip/format.c \
251 vnet/ip/icmp4.c \
252 vnet/ip/icmp6.c \
Dave Barachd6534602016-06-14 18:38:02 -0400253 vnet/ip/ip_feature_registration.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700254 vnet/ip/ip46_cli.c \
255 vnet/ip/ip4_format.c \
256 vnet/ip/ip4_forward.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700257 vnet/ip/ip4_input.c \
258 vnet/ip/ip4_mtrie.c \
259 vnet/ip/ip4_pg.c \
260 vnet/ip/ip4_source_check.c \
Dave Barach6f9bca22016-04-30 10:25:32 -0400261 vnet/ip/ip4_source_and_port_range_check.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700262 vnet/ip/ip6_format.c \
263 vnet/ip/ip6_forward.c \
264 vnet/ip/ip6_hop_by_hop.c \
265 vnet/ip/ip6_input.c \
266 vnet/ip/ip6_neighbor.c \
267 vnet/ip/ip6_pg.c \
268 vnet/ip/ip_checksum.c \
269 vnet/ip/ip.h \
270 vnet/ip/ip_init.c \
271 vnet/ip/lookup.c \
272 vnet/ip/udp_format.c \
273 vnet/ip/udp_init.c \
274 vnet/ip/udp_local.c \
275 vnet/ip/udp_pg.c \
276 vnet/ip/ip_input_acl.c \
277 vnet/ip/ip_frag.c
278
279nobase_include_HEADERS += \
Dave Barachb2ef4dd2016-03-23 08:56:01 -0400280 vnet/ip/adj_alloc.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700281 vnet/ip/format.h \
282 vnet/ip/icmp46_packet.h \
Ole Troan92eade12016-01-13 20:17:08 +0100283 vnet/ip/icmp4.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700284 vnet/ip/icmp6.h \
285 vnet/ip/igmp_packet.h \
286 vnet/ip/ip.h \
Dave Barachd6534602016-06-14 18:38:02 -0400287 vnet/ip/ip_feature_registration.h \
Dave Barach6f9bca22016-04-30 10:25:32 -0400288 vnet/ip/ip_source_and_port_range_check.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700289 vnet/ip/ip4.h \
290 vnet/ip/ip4_mtrie.h \
291 vnet/ip/ip4_error.h \
292 vnet/ip/ip4_packet.h \
293 vnet/ip/ip6.h \
294 vnet/ip/ip6_error.h \
295 vnet/ip/ip6_hop_by_hop.h \
296 vnet/ip/ip6_hop_by_hop_packet.h \
297 vnet/ip/ip6_packet.h \
298 vnet/ip/lookup.h \
299 vnet/ip/ip_packet.h \
300 vnet/ip/ports.def \
301 vnet/ip/protocols.def \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700302 vnet/ip/tcp_packet.h \
303 vnet/ip/udp.h \
304 vnet/ip/udp_error.def \
305 vnet/ip/udp_packet.h
306
307########################################
308# Layer 3 protocol: IPSec
309########################################
Dave Barach61efa142016-01-22 08:23:09 -0500310if WITH_IPSEC
Ed Warnickecb9cada2015-12-08 15:45:58 -0700311libvnet_la_SOURCES += \
312 vnet/ipsec/ipsec.c \
313 vnet/ipsec/ipsec_cli.c \
314 vnet/ipsec/ipsec_format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700315 vnet/ipsec/ipsec_input.c \
316 vnet/ipsec/ipsec_if.c \
317 vnet/ipsec/ipsec_if_in.c \
318 vnet/ipsec/ipsec_if_out.c \
319 vnet/ipsec/esp_encrypt.c \
320 vnet/ipsec/esp_decrypt.c \
321 vnet/ipsec/ikev2.c \
322 vnet/ipsec/ikev2_crypto.c \
323 vnet/ipsec/ikev2_cli.c \
324 vnet/ipsec/ikev2_payload.c \
325 vnet/ipsec/ikev2_format.c
Dave Barach61efa142016-01-22 08:23:09 -0500326endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700327
Damjan Marione936bbe2016-02-25 23:17:38 +0100328libvnet_la_SOURCES += \
329 vnet/ipsec/ipsec_output.c
330
Ed Warnickecb9cada2015-12-08 15:45:58 -0700331nobase_include_HEADERS += \
332 vnet/ipsec/ipsec.h \
333 vnet/ipsec/esp.h \
334 vnet/ipsec/ikev2.h \
335 vnet/ipsec/ikev2_priv.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700336
337########################################
338# Layer 3 protocol: osi
339########################################
340libvnet_la_SOURCES += \
341 vnet/osi/node.c \
342 vnet/osi/osi.c \
343 vnet/osi/pg.c
344
345nobase_include_HEADERS += \
346 vnet/osi/osi.h
347
348########################################
349# Layer 3 protocol: MAP
350########################################
351libvnet_la_SOURCES += \
352 vnet/map/map.c \
353 vnet/map/ip4_map.c \
354 vnet/map/ip6_map.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700355 vnet/map/ip4_map_t.c \
356 vnet/map/ip6_map_t.c
357
358nobase_include_HEADERS += \
Ole Troan3b3688f2016-06-15 14:29:08 +0200359 vnet/map/map.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700360
361########################################
362# Tunnel protocol: gre
363########################################
364libvnet_la_SOURCES += \
365 vnet/gre/gre.c \
366 vnet/gre/node.c \
367 vnet/gre/interface.c \
368 vnet/gre/pg.c
369
370nobase_include_HEADERS += \
371 vnet/gre/gre.h \
372 vnet/gre/packet.h \
373 vnet/gre/error.def
374
375########################################
376# Tunnel protocol: l2tpv3
377########################################
378libvnet_la_SOURCES += \
379 vnet/l2tp/l2tp.c \
380 vnet/l2tp/encap.c \
381 vnet/l2tp/decap.c \
382 vnet/l2tp/pg.c
383
384nobase_include_HEADERS += \
385 vnet/l2tp/l2tp.h \
386 vnet/l2tp/packet.h
387
388########################################
389# Tunnel protocol: gre+mpls
390########################################
391libvnet_la_SOURCES += \
392 vnet/mpls-gre/mpls.c \
393 vnet/mpls-gre/node.c \
394 vnet/mpls-gre/interface.c \
395 vnet/mpls-gre/policy_encap.c \
396 vnet/mpls-gre/pg.c
397
398nobase_include_HEADERS += \
399 vnet/mpls-gre/mpls.h \
400 vnet/mpls-gre/packet.h \
401 vnet/mpls-gre/error.def
402
403
404########################################
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700405# Tunnel protocol: vxlan-gpe
Ed Warnickecb9cada2015-12-08 15:45:58 -0700406########################################
407
408libvnet_la_SOURCES += \
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700409 vnet/vxlan-gpe/vxlan_gpe.c \
410 vnet/vxlan-gpe/encap.c \
411 vnet/vxlan-gpe/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700412
413nobase_include_HEADERS += \
Keith Burns (alagalah)94b14422016-05-05 18:16:50 -0700414 vnet/vxlan-gpe/vxlan_gpe.h \
415 vnet/vxlan-gpe/vxlan_gpe_packet.h \
416 vnet/vxlan-gpe/vxlan_gpe_error.def
Ed Warnickecb9cada2015-12-08 15:45:58 -0700417
418########################################
Matus Fabian694265d2016-08-10 01:55:36 -0700419# Tunnel protocol: ipsec+gre
420########################################
421libvnet_la_SOURCES += \
422 vnet/ipsec-gre/ipsec_gre.c \
423 vnet/ipsec-gre/node.c \
424 vnet/ipsec-gre/interface.c
425
426nobase_include_HEADERS += \
427 vnet/ipsec-gre/ipsec_gre.h \
428 vnet/ipsec-gre/error.def
429
430########################################
Florin Corase127a7e2016-02-18 22:20:01 +0100431# LISP control plane: lisp-cp
432########################################
433
434libvnet_la_SOURCES += \
435 vnet/lisp-cp/lisp_types.c \
436 vnet/lisp-cp/control.c \
437 vnet/lisp-cp/gid_dictionary.c \
438 vnet/lisp-cp/lisp_msg_serdes.c \
439 vnet/lisp-cp/packets.c
440
441nobase_include_HEADERS += \
442 vnet/lisp-cp/lisp_types.h \
443 vnet/lisp-cp/packets.h \
444 vnet/lisp-cp/gid_dictionary.h \
445 vnet/lisp-cp/lisp_cp_messages.h \
446 vnet/lisp-cp/lisp_msg_serdes.h \
447 vnet/lisp-cp/control.h
448
Filip Tehlar254b0362016-04-07 10:04:34 +0200449
450if ENABLE_TESTS
451LDS = -lvppinfra -l:libvlib.a -l:libdpdk.a -l:libvlibmemory.a \
452 -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a
453
454TESTS += test_cp_serdes test_lisp_types
455
456test_cp_serdes_SOURCES = \
457 test/lisp-cp/test_cp_serdes.c \
458 vnet/lisp-cp/lisp_msg_serdes.c \
459 vnet/lisp-cp/lisp_types.c \
460 vnet/lisp-cp/packets.c \
461 vnet/ip/ip_checksum.c
462
463test_lisp_types_SOURCES = \
464 test/lisp-cp/test_lisp_types.c \
465 vnet/lisp-cp/lisp_types.c
466
467test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
468test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
469
470test_cp_serdes_LDADD = libvnet.la $(LDS)
471test_lisp_types_LDADD = libvnet.la $(LDS)
472
473test_cp_serdes_LDFLAGS = -static
474test_lisp_types_LDFLAGS = -static
475endif
476
Florin Corase127a7e2016-02-18 22:20:01 +0100477########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700478# Tunnel protocol: lisp-gpe
479########################################
480
481libvnet_la_SOURCES += \
482 vnet/lisp-gpe/lisp_gpe.c \
Florin Coras577c3552016-04-21 00:45:40 +0200483 vnet/lisp-gpe/interface.c \
Florin Coras02655bd2016-04-26 00:17:24 +0200484 vnet/lisp-gpe/ip_forward.c \
Florin Corase127a7e2016-02-18 22:20:01 +0100485 vnet/lisp-gpe/decap.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700486
487nobase_include_HEADERS += \
488 vnet/lisp-gpe/lisp_gpe.h \
489 vnet/lisp-gpe/lisp_gpe_packet.h \
Florin Corase127a7e2016-02-18 22:20:01 +0100490 vnet/lisp-gpe/lisp_gpe_error.def
Ed Warnickecb9cada2015-12-08 15:45:58 -0700491
Filip Tehlar254b0362016-04-07 10:04:34 +0200492if ENABLE_TESTS
493TESTS += test_test
494
495test_test_SOURCES = test/lisp-gpe/test.c
496
497test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
498
499test_test_LDADD = $(LIBOBJS)
500
501noinst_PROGRAMS += $(TESTS)
502check_PROGRAMS = $(TESTS)
503endif
504
Ed Warnickecb9cada2015-12-08 15:45:58 -0700505########################################
506# DHCP client
507########################################
508libvnet_la_SOURCES += \
509 vnet/dhcp/client.c \
510 vnet/dhcp/client.h
511
512nobase_include_HEADERS += \
513 vnet/dhcp/client.h
514
515########################################
516# DHCP proxy
517########################################
518libvnet_la_SOURCES += \
519 vnet/dhcp/proxy_node.c \
520 vnet/dhcp/proxy.h
521
522nobase_include_HEADERS += \
523 vnet/dhcp/packet.h \
524 vnet/dhcp/proxy.h \
525 vnet/dhcp/proxy_error.def
526
527########################################
528# ipv6 segment routing
529########################################
Dave Barach61efa142016-01-22 08:23:09 -0500530
531if WITH_IPV6SR
Ed Warnickecb9cada2015-12-08 15:45:58 -0700532libvnet_la_SOURCES += \
Keith Burns (alagalah)52fc44d2016-03-25 09:38:50 -0700533 vnet/sr/sr.c \
534 vnet/sr/sr_replicate.c
Dave Barach61efa142016-01-22 08:23:09 -0500535endif
Ed Warnickecb9cada2015-12-08 15:45:58 -0700536
537nobase_include_HEADERS += \
538 vnet/sr/sr_packet.h \
539 vnet/sr/sr_error.def \
540 vnet/sr/sr.h
541
542########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700543# DHCPv6 proxy
544########################################
545libvnet_la_SOURCES += \
546 vnet/dhcpv6/proxy_node.c
547
548nobase_include_HEADERS += \
549 vnet/dhcpv6/packet.h \
550 vnet/dhcpv6/proxy.h \
551 vnet/dhcpv6/proxy_error.def
552
553########################################
554# IPFIX / netflow v10
555########################################
556libvnet_la_SOURCES += \
557 vnet/flow/flow_report.c
558
559nobase_include_HEADERS += \
560 vnet/flow/flow_report.h \
561 vnet/flow/ipfix_info_elements.h \
562 vnet/flow/ipfix_packet.h
563
564########################################
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700565# IPFIX classify code
Ed Warnickecb9cada2015-12-08 15:45:58 -0700566########################################
567
568libvnet_la_SOURCES += \
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700569 vnet/flow/flow_report_classify.c
Ed Warnickecb9cada2015-12-08 15:45:58 -0700570
571nobase_include_HEADERS += \
Juraj Sloboda819ec6f2016-08-07 23:40:03 -0700572 vnet/flow/flow_report_classify.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700573
574########################################
575# lawful intercept
576########################################
577
578libvnet_la_SOURCES += \
579 vnet/lawful-intercept/lawful_intercept.c \
580 vnet/lawful-intercept/node.c
581
582nobase_include_HEADERS += \
583 vnet/dpdk_replication.h \
584 vnet/lawful-intercept/lawful_intercept.h
585
586########################################
587# Packet generator
588########################################
589
590libvnet_la_SOURCES += \
591 vnet/pg/cli.c \
592 vnet/pg/edit.c \
593 vnet/pg/init.c \
594 vnet/pg/input.c \
595 vnet/pg/output.c \
596 vnet/pg/stream.c
597
598nobase_include_HEADERS += \
599 vnet/pg/pg.h \
600 vnet/pg/edit.h
601
602########################################
603# Intel DPDK
604########################################
605if WITH_DPDK
606libvnet_la_SOURCES += \
607 vnet/devices/dpdk/dpdk_priv.h \
608 vnet/devices/dpdk/device.c \
Damjan Marion7f620972016-02-25 16:00:11 +0100609 vnet/devices/dpdk/format.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700610 vnet/devices/dpdk/init.c \
611 vnet/devices/dpdk/node.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700612 vnet/devices/dpdk/vhost_user.c \
613 vnet/devices/dpdk/cli.c
614
615nobase_include_HEADERS += \
Damjan Marion0f8ecf02016-06-27 08:30:30 +0200616 vnet/devices/dpdk/dpdk.h
Damjan Marionb4d89272016-05-12 22:14:45 +0200617else
618libvnet_la_SOURCES += \
619 vnet/devices/nic/ixge.c \
620 vnet/devices/nic/ixge.h \
621 vnet/devices/nic/sfp.c \
622 vnet/devices/nic/sfp.h
Ed Warnickecb9cada2015-12-08 15:45:58 -0700623endif
624
625########################################
626# virtio
627########################################
628
629if WITH_DPDK
630libvnet_la_SOURCES += \
631 vnet/devices/virtio/vhost-user.c
632
633nobase_include_HEADERS += \
634 vnet/devices/virtio/vhost-user.h
635endif WITH_DPDK
636
637########################################
638# ssvm ethernet
639########################################
640libvnet_la_SOURCES += \
641 vnet/devices/ssvm/ssvm_eth.c \
642 vnet/devices/ssvm/node.c
643
644nobase_include_HEADERS += \
645 vnet/devices/ssvm/ssvm_eth.h
646
647########################################
Damjan Marion83243a02016-02-29 13:09:30 +0100648# Linux packet interface
649########################################
650
651libvnet_la_SOURCES += \
652 vnet/devices/af_packet/af_packet.c \
653 vnet/devices/af_packet/device.c \
654 vnet/devices/af_packet/node.c \
655 vnet/devices/af_packet/cli.c
656
657nobase_include_HEADERS += \
658 vnet/devices/af_packet/af_packet.h
659
660########################################
Damjan Marion108c7312016-04-20 05:04:20 +0200661# NETMAP interface
662########################################
663
664libvnet_la_SOURCES += \
665 vnet/devices/netmap/netmap.c \
666 vnet/devices/netmap/device.c \
667 vnet/devices/netmap/node.c \
668 vnet/devices/netmap/cli.c
669
670nobase_include_HEADERS += \
671 vnet/devices/netmap/netmap.h
672
673
674########################################
Ed Warnickecb9cada2015-12-08 15:45:58 -0700675# Unix kernel related
676########################################
677
678# FIXME: vnet/unix/hgshm.c
679
680libvnet_la_SOURCES += \
681 vnet/unix/gdb_funcs.c \
682 vnet/unix/pcap.c \
683 vnet/unix/tapcli.c \
684 vnet/unix/tuntap.c
685
686nobase_include_HEADERS += \
687 vnet/unix/pcap.h \
688 vnet/unix/tuntap.h \
689 vnet/unix/tapcli.h
690
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -0400691########################################
692# Plugin client library
693########################################
694
695libvnetplugin_la_SOURCES += \
696 vnet/plugin/p1.c
697
698nobase_include_HEADERS += \
699 vnet/plugin/plugin.h
700
701lib_LTLIBRARIES = libvnet.la libvnetplugin.la
Ed Warnickecb9cada2015-12-08 15:45:58 -0700702
Ed Warnickecb9cada2015-12-08 15:45:58 -0700703dpdk_libs =
704
705if WITH_DPDK
706dpdk_libs += -l:libdpdk.a
707endif
708
Ed Warnickecb9cada2015-12-08 15:45:58 -0700709pcap2pg_SOURCES = \
710 vnet/unix/pcap2pg.c \
711 vnet/unix/pcap.h
712
713pcap2pg_LDFLAGS = -static
714pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl
715
716noinst_PROGRAMS += pcap2pg
Filip Tehlar254b0362016-04-07 10:04:34 +0200717
718