blob: 665a16ea0dce193a8d1d487f8ffd6c9a3f9f4cf8 [file] [log] [blame]
Damjan Marion7cd468a2016-12-19 23:05:39 +01001# 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
Damjan Marion724f64c2017-01-11 11:11:00 +010014lib_LTLIBRARIES += libvnet.la
15
Damjan Marion7cd468a2016-12-19 23:05:39 +010016libvnet_la_SOURCES =
Damjan Marion7cd468a2016-12-19 23:05:39 +010017
Damjan Marion45a00c42017-01-08 15:34:50 +010018libvnet_la_LIBADD = libvppinfra.la libsvm.la
19libvnet_la_DEPENDENCIES = libvppinfra.la libvlib.la libsvmdb.la libsvm.la libvlibapi.la libvlibmemory.la libvlibmemoryclient.la
20
21if WITH_IPV6SR
22libvnet_la_LIBADD += -lcrypto
23endif
Damjan Marion7cd468a2016-12-19 23:05:39 +010024
25########################################
26# Generic stuff
27########################################
28libvnet_la_SOURCES += \
29 vnet/config.c \
30 vnet/devices/devices.c \
31 vnet/handoff.c \
32 vnet/interface.c \
33 vnet/interface_api.c \
34 vnet/interface_cli.c \
35 vnet/interface_format.c \
36 vnet/interface_output.c \
37 vnet/misc.c \
38 vnet/replication.c \
39 vnet/rewrite.c
40
41nobase_include_HEADERS += \
42 vnet/api_errno.h \
43 vnet/buffer.h \
44 vnet/config.h \
45 vnet/devices/devices.h \
46 vnet/global_funcs.h \
47 vnet/handoff.h \
48 vnet/interface.h \
49 vnet/interface.api.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 vnet/vnet_all_api_h.h \
57 vnet/vnet_msg_enum.h
58
59API_FILES += vnet/interface.api
60
61########################################
62# Policer infra
63########################################
64
65libvnet_la_SOURCES += \
66 vnet/policer/node_funcs.c \
67 vnet/policer/policer.c \
68 vnet/policer/xlate.c
69
70nobase_include_HEADERS += \
71 vnet/policer/police.h \
72 vnet/policer/policer.h \
73 vnet/policer/xlate.h
74
75########################################
76# Cop - junk filter
77########################################
78
79libvnet_la_SOURCES += \
80 vnet/cop/cop.c \
81 vnet/cop/node1.c \
82 vnet/cop/ip4_whitelist.c \
83 vnet/cop/ip6_whitelist.c
84
85nobase_include_HEADERS += \
86 vnet/cop/cop.h
87
88########################################
89# Layer 2 protocols go here
90########################################
91
92########################################
93# Layer 2 protocol: Ethernet
94########################################
95libvnet_la_SOURCES += \
96 vnet/ethernet/arp.c \
97 vnet/ethernet/format.c \
98 vnet/ethernet/init.c \
99 vnet/ethernet/interface.c \
100 vnet/ethernet/node.c \
101 vnet/ethernet/pg.c
102
103nobase_include_HEADERS += \
104 vnet/ethernet/arp_packet.h \
105 vnet/ethernet/error.def \
106 vnet/ethernet/ethernet.h \
107 vnet/ethernet/packet.h \
108 vnet/ethernet/types.def
109
110########################################
111# Layer 2 protocol: Ethernet bridging
112########################################
113libvnet_la_SOURCES += \
114 vnet/l2/feat_bitmap.c \
115 vnet/l2/l2_api.c \
116 vnet/l2/l2_bd.c \
117 vnet/l2/l2_bvi.c \
118 vnet/l2/l2_input_classify.c \
119 vnet/l2/l2_output_classify.c \
120 vnet/l2/l2_efp_filter.c \
121 vnet/l2/l2_fib.c \
122 vnet/l2/l2_flood.c \
123 vnet/l2/l2_fwd.c \
124 vnet/l2/l2_input_acl.c \
125 vnet/l2/l2_input.c \
126 vnet/l2/l2_input_vtr.c \
127 vnet/l2/l2_learn.c \
128 vnet/l2/l2_output_acl.c \
129 vnet/l2/l2_output.c \
130 vnet/l2/l2_patch.c \
131 vnet/l2/l2_rw.c \
132 vnet/l2/l2_vtr.c \
133 vnet/l2/l2_xcrw.c
134
135nobase_include_HEADERS += \
136 vnet/l2/feat_bitmap.h \
137 vnet/l2/l2_input.h \
138 vnet/l2/l2_output.h \
139 vnet/l2/l2_vtr.h \
140 vnet/l2/l2_input_vtr.h \
141 vnet/l2/l2_efp_filter.h \
142 vnet/l2/l2_fwd.h \
143 vnet/l2/l2_bd.h \
144 vnet/l2/l2_bvi.h \
145 vnet/l2/l2_flood.h \
146 vnet/l2/l2_fib.h \
147 vnet/l2/l2_rw.h \
148 vnet/l2/l2_xcrw.h \
149 vnet/l2/l2_classify.h \
150 vnet/l2/l2.api.h
151
152API_FILES += vnet/l2/l2.api
153
154########################################
155# Layer 2 protocol: SRP
156########################################
157libvnet_la_SOURCES += \
158 vnet/srp/format.c \
159 vnet/srp/interface.c \
160 vnet/srp/node.c \
161 vnet/srp/pg.c
162
163nobase_include_HEADERS += \
164 vnet/srp/packet.h \
165 vnet/srp/srp.h
166
167########################################
168# Layer 2 protocol: PPP
169########################################
170libvnet_la_SOURCES += \
171 vnet/ppp/node.c \
172 vnet/ppp/pg.c \
173 vnet/ppp/ppp.c
174
175nobase_include_HEADERS += \
176 vnet/ppp/error.def \
177 vnet/ppp/ppp.h \
178 vnet/ppp/packet.h
179
180########################################
181# Layer 2 protocol: HDLC
182########################################
183libvnet_la_SOURCES += \
184 vnet/hdlc/node.c \
185 vnet/hdlc/pg.c \
186 vnet/hdlc/hdlc.c
187
188nobase_include_HEADERS += \
189 vnet/hdlc/error.def \
190 vnet/hdlc/hdlc.h \
191 vnet/hdlc/packet.h
192
193########################################
194# Layer 2 protocol: LLC
195########################################
196libvnet_la_SOURCES += \
197 vnet/llc/llc.c \
198 vnet/llc/node.c \
199 vnet/llc/pg.c
200
201nobase_include_HEADERS += \
202 vnet/llc/llc.h
203
204########################################
205# Layer 2 protocol: SNAP
206########################################
207libvnet_la_SOURCES += \
208 vnet/snap/snap.c \
209 vnet/snap/node.c \
210 vnet/snap/pg.c
211
212nobase_include_HEADERS += \
213 vnet/snap/snap.h
214
215########################################
216# Layer 2 / vxlan
217########################################
218libvnet_la_SOURCES += \
219 vnet/vxlan/vxlan.c \
220 vnet/vxlan/encap.c \
221 vnet/vxlan/decap.c \
222 vnet/vxlan/vxlan_api.c
223
224nobase_include_HEADERS += \
225 vnet/vxlan/vxlan.h \
226 vnet/vxlan/vxlan_packet.h \
227 vnet/vxlan/vxlan_error.def \
228 vnet/vxlan/vxlan.api.h
229
230API_FILES += vnet/vxlan/vxlan.api
231
232########################################
233# Layer 2 / CDP
234########################################
235libvnet_la_SOURCES += \
236 vnet/cdp/cdp_input.c \
237 vnet/cdp/cdp_node.c \
238 vnet/cdp/cdp_periodic.c
239
240nobase_include_HEADERS += \
241 vnet/cdp/cdp_protocol.h
242
243########################################
244# Layer 2 / LLDP
245########################################
246libvnet_la_SOURCES += \
247 vnet/lldp/lldp_input.c \
248 vnet/lldp/lldp_node.c \
249 vnet/lldp/lldp_output.c \
250 vnet/lldp/lldp_cli.c
251
252nobase_include_HEADERS += \
253 vnet/lldp/lldp_protocol.h
254
255########################################
256# Layer 2/3 "classify"
257########################################
258libvnet_la_SOURCES += \
259 vnet/classify/vnet_classify.c \
260 vnet/classify/ip_classify.c \
261 vnet/classify/input_acl.c \
262 vnet/classify/policer_classify.c \
263 vnet/classify/flow_classify.c \
264 vnet/classify/flow_classify_node.c \
265 vnet/classify/vnet_classify.h
266
267nobase_include_HEADERS += \
268 vnet/classify/vnet_classify.h \
269 vnet/classify/input_acl.h \
270 vnet/classify/policer_classify.h \
271 vnet/classify/flow_classify.h
272
273########################################
274# Layer 3 protocols go here
275########################################
276
277########################################
278# Layer 3 protocol: IP v4/v6
279########################################
280libvnet_la_SOURCES += \
281 vnet/ip/format.c \
282 vnet/ip/icmp4.c \
283 vnet/ip/icmp6.c \
284 vnet/ip/ip46_cli.c \
285 vnet/ip/ip4_format.c \
286 vnet/ip/ip4_forward.c \
287 vnet/ip/ip4_input.c \
288 vnet/ip/ip4_mtrie.c \
289 vnet/ip/ip4_pg.c \
290 vnet/ip/ip4_source_and_port_range_check.c \
291 vnet/ip/ip4_source_check.c \
292 vnet/ip/ip6_format.c \
293 vnet/ip/ip6_forward.c \
294 vnet/ip/ip6_hop_by_hop.c \
295 vnet/ip/ip6_input.c \
296 vnet/ip/ip6_neighbor.c \
297 vnet/ip/ip6_pg.c \
298 vnet/ip/ip_api.c \
299 vnet/ip/ip_checksum.c \
300 vnet/ip/ip_frag.c \
301 vnet/ip/ip.h \
302 vnet/ip/ip_init.c \
303 vnet/ip/ip_input_acl.c \
304 vnet/ip/lookup.c \
305 vnet/ip/ping.c \
306 vnet/ip/punt.c \
307 vnet/ip/udp_format.c \
308 vnet/ip/udp_init.c \
309 vnet/ip/udp_local.c \
310 vnet/ip/udp_pg.c
311
312nobase_include_HEADERS += \
313 vnet/ip/format.h \
314 vnet/ip/icmp46_packet.h \
315 vnet/ip/icmp4.h \
316 vnet/ip/icmp6.h \
317 vnet/ip/igmp_packet.h \
318 vnet/ip/ip.api.h \
319 vnet/ip/ip4_error.h \
320 vnet/ip/ip4.h \
321 vnet/ip/ip4_mtrie.h \
322 vnet/ip/ip4_packet.h \
323 vnet/ip/ip6_error.h \
324 vnet/ip/ip6.h \
325 vnet/ip/ip6_hop_by_hop.h \
326 vnet/ip/ip6_hop_by_hop_packet.h \
327 vnet/ip/ip6_packet.h \
328 vnet/ip/ip6_neighbor.h \
329 vnet/ip/ip.h \
330 vnet/ip/ip_packet.h \
331 vnet/ip/ip_source_and_port_range_check.h \
332 vnet/ip/lookup.h \
333 vnet/ip/ports.def \
334 vnet/ip/protocols.def \
335 vnet/ip/punt_error.def \
336 vnet/ip/punt.h \
337 vnet/ip/tcp_packet.h \
338 vnet/ip/udp_error.def \
339 vnet/ip/udp.h \
340 vnet/ip/udp_packet.h
341
342API_FILES += vnet/ip/ip.api
343
344########################################
345# Bidirectional Forwarding Detection
346########################################
347
348nobase_include_HEADERS += \
349 vnet/bfd/bfd_protocol.h \
350 vnet/bfd/bfd_main.h \
351 vnet/bfd/bfd_api.h \
352 vnet/bfd/bfd_udp.h \
353 vnet/bfd/bfd.api.h
354
355libvnet_la_SOURCES += \
356 vnet/bfd/bfd_api.h \
357 vnet/bfd/bfd_udp.c \
358 vnet/bfd/bfd_main.c \
359 vnet/bfd/bfd_protocol.c \
360 vnet/bfd/bfd_api.c
361
362API_FILES += vnet/bfd/bfd.api
363
364########################################
365# Layer 3 protocol: IPSec
366########################################
367if WITH_IPSEC
368libvnet_la_SOURCES += \
369 vnet/ipsec/ipsec.c \
370 vnet/ipsec/ipsec_cli.c \
371 vnet/ipsec/ipsec_format.c \
372 vnet/ipsec/ipsec_input.c \
373 vnet/ipsec/ipsec_if.c \
374 vnet/ipsec/ipsec_if_in.c \
375 vnet/ipsec/ipsec_if_out.c \
376 vnet/ipsec/esp_encrypt.c \
377 vnet/ipsec/esp_decrypt.c \
378 vnet/ipsec/ikev2.c \
379 vnet/ipsec/ikev2_crypto.c \
380 vnet/ipsec/ikev2_cli.c \
381 vnet/ipsec/ikev2_payload.c \
382 vnet/ipsec/ikev2_format.c \
383 vnet/ipsec/ipsec_api.c
384
385API_FILES += vnet/ipsec/ipsec.api
386
387if WITH_DPDK_CRYPTO
388libvnet_la_SOURCES += \
389 vnet/devices/dpdk/ipsec/esp_encrypt.c \
390 vnet/devices/dpdk/ipsec/esp_decrypt.c \
391 vnet/devices/dpdk/ipsec/crypto_node.c \
392 vnet/devices/dpdk/ipsec/cli.c \
393 vnet/devices/dpdk/ipsec/ipsec.c
394endif
395endif
396
397libvnet_la_SOURCES += \
398 vnet/ipsec/ipsec_output.c
399
400nobase_include_HEADERS += \
401 vnet/ipsec/ipsec.h \
402 vnet/ipsec/esp.h \
403 vnet/ipsec/ikev2.h \
404 vnet/ipsec/ikev2_priv.h \
405 vnet/ipsec/ipsec.api.h
406if WITH_DPDK_CRYPTO
407nobase_include_HEADERS += \
408 vnet/devices/dpdk/ipsec/ipsec.h \
409 vnet/devices/dpdk/ipsec/esp.h
410endif
411
412########################################
413# Layer 3 protocol: osi
414########################################
415libvnet_la_SOURCES += \
416 vnet/osi/node.c \
417 vnet/osi/osi.c \
418 vnet/osi/pg.c
419
420nobase_include_HEADERS += \
421 vnet/osi/osi.h
422
423########################################
424# Layer 3 protocol: MAP
425########################################
426libvnet_la_SOURCES += \
427 vnet/map/map.c \
428 vnet/map/map_dpo.c \
429 vnet/map/ip4_map.c \
430 vnet/map/ip6_map.c \
431 vnet/map/ip4_map_t.c \
432 vnet/map/ip6_map_t.c \
433 vnet/map/map_api.c
434
435nobase_include_HEADERS += \
436 vnet/map/map.h \
437 vnet/map/map_dpo.h \
438 vnet/map/map.api.h
439
440API_FILES += vnet/map/map.api
441
442if ENABLE_TESTS
443TESTS += test_map
444test_map_SOURCES = \
445 vnet/map/test.c
446test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
447
448test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Damjan Marion0eca04d2017-01-03 20:11:35 +0100449 -lpthread -lvlibmemory -lvlibapi \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100450 -ldl -lsvm -lrt
451
452test_map_LDFLAGS = -static
453endif
454
455
456########################################
457# Tunnel protocol: gre
458########################################
459libvnet_la_SOURCES += \
460 vnet/gre/gre.c \
461 vnet/gre/node.c \
462 vnet/gre/interface.c \
463 vnet/gre/pg.c \
464 vnet/gre/gre_api.c
465
466nobase_include_HEADERS += \
467 vnet/gre/gre.h \
468 vnet/gre/packet.h \
469 vnet/gre/error.def \
470 vnet/gre/gre.api.h
471
472API_FILES += vnet/gre/gre.api
473
474########################################
475# Tunnel protocol: l2tpv3
476########################################
477libvnet_la_SOURCES += \
478 vnet/l2tp/l2tp.c \
479 vnet/l2tp/encap.c \
480 vnet/l2tp/decap.c \
481 vnet/l2tp/pg.c \
482 vnet/l2tp/l2tp_api.c
483
484nobase_include_HEADERS += \
485 vnet/l2tp/l2tp.h \
486 vnet/l2tp/packet.h \
487 vnet/l2tp/l2tp.api.h
488
489API_FILES += vnet/l2tp/l2tp.api
490
491########################################
492# Tunnel protocol: gre+mpls
493########################################
494libvnet_la_SOURCES += \
495 vnet/mpls/mpls.c \
496 vnet/mpls/mpls_lookup.c \
497 vnet/mpls/mpls_output.c \
498 vnet/mpls/mpls_features.c \
499 vnet/mpls/node.c \
500 vnet/mpls/interface.c \
501 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100502 vnet/mpls/pg.c \
503 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100504
505nobase_include_HEADERS += \
506 vnet/mpls/mpls.h \
507 vnet/mpls/mpls_types.h \
508 vnet/mpls/mpls_tunnel.h \
509 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100510 vnet/mpls/error.def \
511 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100512
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100513API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100514
515########################################
516# Tunnel protocol: vxlan-gpe
517########################################
518
519libvnet_la_SOURCES += \
520 vnet/vxlan-gpe/vxlan_gpe.c \
521 vnet/vxlan-gpe/encap.c \
522 vnet/vxlan-gpe/decap.c \
523 vnet/vxlan-gpe/vxlan_gpe_api.c
524
525nobase_include_HEADERS += \
526 vnet/vxlan-gpe/vxlan_gpe.h \
527 vnet/vxlan-gpe/vxlan_gpe_packet.h \
528 vnet/vxlan-gpe/vxlan_gpe_error.def \
529 vnet/vxlan-gpe/vxlan_gpe.api.h
530
531API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
532
533########################################
534# Tunnel protocol: ipsec+gre
535########################################
536libvnet_la_SOURCES += \
537 vnet/ipsec-gre/ipsec_gre.c \
538 vnet/ipsec-gre/node.c \
539 vnet/ipsec-gre/interface.c \
540 vnet/ipsec-gre/ipsec_gre_api.c
541
542nobase_include_HEADERS += \
543 vnet/ipsec-gre/ipsec_gre.h \
544 vnet/ipsec-gre/error.def \
545 vnet/ipsec-gre/ipsec_gre.api.h
546
547API_FILES += vnet/ipsec-gre/ipsec_gre.api
548
549########################################
550# LISP control plane: lisp-cp
551########################################
552
553libvnet_la_SOURCES += \
554 vnet/lisp-cp/lisp_types.c \
555 vnet/lisp-cp/lisp_cp_dpo.c \
556 vnet/lisp-cp/control.c \
557 vnet/lisp-cp/gid_dictionary.c \
558 vnet/lisp-cp/lisp_msg_serdes.c \
559 vnet/lisp-cp/packets.c \
560 vnet/lisp-cp/lisp_api.c
561
562nobase_include_HEADERS += \
563 vnet/lisp-cp/lisp_types.h \
564 vnet/lisp-cp/packets.h \
565 vnet/lisp-cp/gid_dictionary.h \
566 vnet/lisp-cp/lisp_cp_messages.h \
567 vnet/lisp-cp/lisp_msg_serdes.h \
568 vnet/lisp-cp/control.h \
569 vnet/lisp-cp/lisp.api.h
570
571API_FILES += vnet/lisp-cp/lisp.api
572
573if ENABLE_TESTS
574LDS = \
575 libvppinfra.la \
576 libvnet.la \
577 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100578 libsvm.la \
579 libsvmdb.la \
580 libvlibapi.la \
581 libvlibmemory.la \
582 -lpthread -ldl -lrt -lm -lcrypto
583
584TESTS += test_cp_serdes test_lisp_types
585
586test_cp_serdes_SOURCES = \
587 tests/vnet/lisp-cp/test_cp_serdes.c \
588 vnet/lisp-cp/lisp_msg_serdes.c \
589 vnet/lisp-cp/lisp_types.c \
590 vnet/lisp-cp/packets.c \
591 vnet/ip/ip_checksum.c
592
593test_lisp_types_SOURCES = \
594 tests/vnet/lisp-cp/test_lisp_types.c \
595 vnet/lisp-cp/lisp_types.c
596
597test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
598test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
599
600test_cp_serdes_LDFLAGS = $(DPDK_LD_FLAGS)
601test_cp_serdes_LDADD = $(LDS) $(DPDK_LD_ADD)
602test_lisp_types_LDFLAGS = $(DPDK_LD_FLAGS)
603test_lisp_types_LDADD = $(LDS) $(DPDK_LD_ADD)
604endif
605
606########################################
607# Tunnel protocol: lisp-gpe
608########################################
609
610libvnet_la_SOURCES += \
611 vnet/lisp-gpe/lisp_gpe.c \
612 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
613 vnet/lisp-gpe/lisp_gpe_adjacency.c \
614 vnet/lisp-gpe/lisp_gpe_tunnel.c \
615 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
616 vnet/lisp-gpe/lisp_gpe_tenant.c \
617 vnet/lisp-gpe/interface.c \
618 vnet/lisp-gpe/decap.c \
619 vnet/lisp-gpe/lisp_gpe_api.c
620
621nobase_include_HEADERS += \
622 vnet/lisp-gpe/lisp_gpe.h \
623 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
624 vnet/lisp-gpe/lisp_gpe_tenant.h \
625 vnet/lisp-gpe/lisp_gpe_packet.h \
626 vnet/lisp-gpe/lisp_gpe_error.def \
627 vnet/lisp-gpe/lisp_gpe.api.h
628
629API_FILES += vnet/lisp-gpe/lisp_gpe.api
630
631if ENABLE_TESTS
632TESTS += test_test
633
634test_test_SOURCES = tests/vnet/lisp-gpe/test.c
635
636test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
637
638test_test_LDADD = $(LIBOBJS)
639
640noinst_PROGRAMS += $(TESTS)
641check_PROGRAMS += $(TESTS)
642endif
643
644########################################
645# DHCP client
646########################################
647libvnet_la_SOURCES += \
648 vnet/dhcp/client.c \
649 vnet/dhcp/client.h
650
651nobase_include_HEADERS += \
652 vnet/dhcp/client.h
653
654########################################
655# DHCP proxy
656########################################
657libvnet_la_SOURCES += \
658 vnet/dhcp/proxy_node.c \
659 vnet/dhcp/proxy.h
660
661nobase_include_HEADERS += \
662 vnet/dhcp/packet.h \
663 vnet/dhcp/proxy.h \
664 vnet/dhcp/proxy_error.def
665
666########################################
667# ipv6 segment routing
668########################################
669
670if WITH_IPV6SR
671libvnet_la_SOURCES += \
672 vnet/sr/sr.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100673 vnet/sr/sr_replicate.c \
674 vnet/sr/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100675endif
676
677nobase_include_HEADERS += \
678 vnet/sr/sr_packet.h \
679 vnet/sr/sr_error.def \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100680 vnet/sr/sr.h \
681 vnet/sr/sr.api.h
682
683API_FILES += vnet/sr/sr.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100684
685########################################
686# DHCPv6 proxy
687########################################
688libvnet_la_SOURCES += \
689 vnet/dhcpv6/proxy_node.c
690
691nobase_include_HEADERS += \
692 vnet/dhcpv6/packet.h \
693 vnet/dhcpv6/proxy.h \
694 vnet/dhcpv6/proxy_error.def
695
696########################################
697# IPFIX / netflow v10
698########################################
699libvnet_la_SOURCES += \
700 vnet/flow/flow_report.c
701
702nobase_include_HEADERS += \
703 vnet/flow/flow_report.h \
704 vnet/flow/ipfix_info_elements.h \
705 vnet/flow/ipfix_packet.h
706
707########################################
708# IPFIX classify code
709########################################
710
711libvnet_la_SOURCES += \
712 vnet/flow/flow_report_classify.c
713
714nobase_include_HEADERS += \
715 vnet/flow/flow_report_classify.h
716
717########################################
718# lawful intercept
719########################################
720
721libvnet_la_SOURCES += \
722 vnet/lawful-intercept/lawful_intercept.c \
723 vnet/lawful-intercept/node.c
724
725nobase_include_HEADERS += \
726 vnet/lawful-intercept/lawful_intercept.h
727
728########################################
729# SPAN (port mirroring)
730########################################
731
732libvnet_la_SOURCES += \
733 vnet/span/span_api.c \
734 vnet/span/span.c \
735 vnet/span/node.c
736
737nobase_include_HEADERS += \
738 vnet/span/span.api.h \
739 vnet/span/span.h
740
741API_FILES += vnet/span/span.api
742
743########################################
744# Packet generator
745########################################
746
747libvnet_la_SOURCES += \
748 vnet/pg/cli.c \
749 vnet/pg/edit.c \
750 vnet/pg/init.c \
751 vnet/pg/input.c \
752 vnet/pg/output.c \
753 vnet/pg/stream.c
754
755nobase_include_HEADERS += \
756 vnet/pg/pg.h \
757 vnet/pg/edit.h
758
759########################################
760# DPDK
761########################################
762if WITH_DPDK
763libvnet_la_SOURCES += \
764 vnet/devices/dpdk/dpdk_priv.h \
765 vnet/devices/dpdk/device.c \
766 vnet/devices/dpdk/format.c \
767 vnet/devices/dpdk/init.c \
768 vnet/devices/dpdk/node.c \
769 vnet/devices/dpdk/hqos.c \
Pavel Kotucek738f3f22017-01-09 15:11:03 +0100770 vnet/devices/dpdk/cli.c \
771 vnet/devices/dpdk/dpdk_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100772
773nobase_include_HEADERS += \
Pavel Kotucek738f3f22017-01-09 15:11:03 +0100774 vnet/devices/dpdk/dpdk.h \
775 vnet/devices/dpdk/dpdk.api.h
776
777API_FILES += vnet/devices/dpdk/dpdk.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100778else
779libvnet_la_SOURCES += \
780 vnet/devices/nic/ixge.c \
781 vnet/devices/nic/ixge.h \
782 vnet/devices/nic/sfp.c \
783 vnet/devices/nic/sfp.h
784endif
785
786########################################
787# virtio
788########################################
789
790libvnet_la_SOURCES += \
791 vnet/devices/virtio/vhost-user.c \
792 vnet/devices/virtio/vhost_user_api.c
793
794nobase_include_HEADERS += \
795 vnet/devices/virtio/vhost-user.h \
796 vnet/devices/virtio/vhost_user.api.h
797
798API_FILES += vnet/devices/virtio/vhost_user.api
799
800########################################
801# ssvm ethernet
802########################################
803libvnet_la_SOURCES += \
804 vnet/devices/ssvm/ssvm_eth.c \
805 vnet/devices/ssvm/node.c
806
807nobase_include_HEADERS += \
808 vnet/devices/ssvm/ssvm_eth.h
809
810########################################
811# Linux packet interface
812########################################
813
814libvnet_la_SOURCES += \
815 vnet/devices/af_packet/af_packet.c \
816 vnet/devices/af_packet/device.c \
817 vnet/devices/af_packet/node.c \
818 vnet/devices/af_packet/cli.c \
819 vnet/devices/af_packet/af_packet_api.c
820
821nobase_include_HEADERS += \
822 vnet/devices/af_packet/af_packet.h \
823 vnet/devices/af_packet/af_packet.api.h
824
825API_FILES += vnet/devices/af_packet/af_packet.api
826
827########################################
828# NETMAP interface
829########################################
830
831libvnet_la_SOURCES += \
832 vnet/devices/netmap/netmap.c \
833 vnet/devices/netmap/device.c \
834 vnet/devices/netmap/node.c \
835 vnet/devices/netmap/cli.c \
836 vnet/devices/netmap/netmap_api.c
837
838nobase_include_HEADERS += \
839 vnet/devices/netmap/netmap.h \
840 vnet/devices/netmap/netmap.api.h
841
842API_FILES += vnet/devices/netmap/netmap.api
843
844########################################
845# Driver feature graph arc support
846########################################
847
848libvnet_la_SOURCES += \
849 vnet/feature/feature.c \
850 vnet/feature/registration.c
851
852nobase_include_HEADERS += \
853 vnet/feature/feature.h
854
855########################################
856# Unix kernel related
857########################################
858
859# FIXME: vnet/unix/hgshm.c
860
861libvnet_la_SOURCES += \
862 vnet/unix/gdb_funcs.c \
863 vnet/unix/pcap.c \
864 vnet/unix/tap_api.c \
865 vnet/unix/tapcli.c \
866 vnet/unix/tuntap.c
867
868nobase_include_HEADERS += \
869 vnet/unix/pcap.h \
870 vnet/unix/tuntap.h \
871 vnet/unix/tap.api.h \
872 vnet/unix/tapcli.h
873
874API_FILES += vnet/unix/tap.api
875
876########################################
877# FIB
878########################################
879
880libvnet_la_SOURCES += \
881 vnet/fib/fib.c \
882 vnet/fib/fib_test.c \
883 vnet/fib/ip4_fib.c \
884 vnet/fib/ip6_fib.c \
885 vnet/fib/mpls_fib.c \
886 vnet/fib/fib_table.c \
887 vnet/fib/fib_walk.c \
888 vnet/fib/fib_types.c \
889 vnet/fib/fib_node.c \
890 vnet/fib/fib_node_list.c \
891 vnet/fib/fib_entry.c \
892 vnet/fib/fib_entry_src.c \
893 vnet/fib/fib_entry_src_rr.c \
894 vnet/fib/fib_entry_src_interface.c \
895 vnet/fib/fib_entry_src_default_route.c \
896 vnet/fib/fib_entry_src_special.c \
897 vnet/fib/fib_entry_src_api.c \
898 vnet/fib/fib_entry_src_adj.c \
899 vnet/fib/fib_entry_src_mpls.c \
900 vnet/fib/fib_entry_src_lisp.c \
901 vnet/fib/fib_entry_cover.c \
902 vnet/fib/fib_entry_delegate.c \
903 vnet/fib/fib_path_list.c \
904 vnet/fib/fib_path.c \
905 vnet/fib/fib_path_ext.c \
906 vnet/fib/fib_urpf_list.c \
907 vnet/fib/fib_attached_export.c
908
909nobase_include_HEADERS += \
910 vnet/fib/fib.h \
911 vnet/fib/fib_api.h \
912 vnet/fib/ip4_fib.h \
913 vnet/fib/ip6_fib.h \
914 vnet/fib/fib_types.h \
915 vnet/fib/fib_table.h \
916 vnet/fib/fib_node.h \
917 vnet/fib/fib_node_list.h \
918 vnet/fib/fib_entry.h \
919 vnet/fib/fib_entry_delegate.h
920
921########################################
922# ADJ
923########################################
924
925libvnet_la_SOURCES += \
926 vnet/adj/adj_nbr.c \
927 vnet/adj/adj_rewrite.c \
928 vnet/adj/adj_glean.c \
929 vnet/adj/adj_midchain.c \
930 vnet/adj/adj_l2.c \
931 vnet/adj/adj.c
932
933nobase_include_HEADERS += \
934 vnet/adj/adj.h \
935 vnet/adj/adj_types.h \
936 vnet/adj/adj_rewrite.h \
937 vnet/adj/adj_glean.h \
938 vnet/adj/adj_nbr.h
939
940########################################
941# Data-Plane Objects
942########################################
943
944libvnet_la_SOURCES += \
945 vnet/dpo/dpo.c \
946 vnet/dpo/drop_dpo.c \
947 vnet/dpo/ip_null_dpo.c \
948 vnet/dpo/punt_dpo.c \
949 vnet/dpo/receive_dpo.c \
950 vnet/dpo/load_balance.c \
951 vnet/dpo/load_balance_map.c \
952 vnet/dpo/lookup_dpo.c \
953 vnet/dpo/classify_dpo.c \
954 vnet/dpo/mpls_label_dpo.c
955
956nobase_include_HEADERS += \
957 vnet/dpo/load_balance.h \
958 vnet/dpo/drop_dpo.h \
959 vnet/dpo/lookup_dpo.h \
960 vnet/dpo/punt_dpo.h \
961 vnet/dpo/classify_dpo.h \
962 vnet/dpo/receive_dpo.h \
963 vnet/dpo/ip_null_dpo.h \
964 vnet/dpo/dpo.h
965
966########################################
967# Plugin client library
968########################################
969
Damjan Marion7cd468a2016-12-19 23:05:39 +0100970nobase_include_HEADERS += \
971 vnet/plugin/plugin.h
972
Damjan Marion7cd468a2016-12-19 23:05:39 +0100973pcap2pg_SOURCES = \
974 vnet/unix/pcap2pg.c \
975 vnet/unix/pcap.h
976
977pcap2pg_LDFLAGS = -static
978pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
979
980noinst_PROGRAMS += pcap2pg
981
982# vi:syntax=automake