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