blob: 16ade4d12285e4c1269a72c7565a388727777562 [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 \
501 vnet/mpls/pg.c
502
503nobase_include_HEADERS += \
504 vnet/mpls/mpls.h \
505 vnet/mpls/mpls_types.h \
506 vnet/mpls/mpls_tunnel.h \
507 vnet/mpls/packet.h \
508 vnet/mpls/error.def
509
510
511########################################
512# Tunnel protocol: vxlan-gpe
513########################################
514
515libvnet_la_SOURCES += \
516 vnet/vxlan-gpe/vxlan_gpe.c \
517 vnet/vxlan-gpe/encap.c \
518 vnet/vxlan-gpe/decap.c \
519 vnet/vxlan-gpe/vxlan_gpe_api.c
520
521nobase_include_HEADERS += \
522 vnet/vxlan-gpe/vxlan_gpe.h \
523 vnet/vxlan-gpe/vxlan_gpe_packet.h \
524 vnet/vxlan-gpe/vxlan_gpe_error.def \
525 vnet/vxlan-gpe/vxlan_gpe.api.h
526
527API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
528
529########################################
530# Tunnel protocol: ipsec+gre
531########################################
532libvnet_la_SOURCES += \
533 vnet/ipsec-gre/ipsec_gre.c \
534 vnet/ipsec-gre/node.c \
535 vnet/ipsec-gre/interface.c \
536 vnet/ipsec-gre/ipsec_gre_api.c
537
538nobase_include_HEADERS += \
539 vnet/ipsec-gre/ipsec_gre.h \
540 vnet/ipsec-gre/error.def \
541 vnet/ipsec-gre/ipsec_gre.api.h
542
543API_FILES += vnet/ipsec-gre/ipsec_gre.api
544
545########################################
546# LISP control plane: lisp-cp
547########################################
548
549libvnet_la_SOURCES += \
550 vnet/lisp-cp/lisp_types.c \
551 vnet/lisp-cp/lisp_cp_dpo.c \
552 vnet/lisp-cp/control.c \
553 vnet/lisp-cp/gid_dictionary.c \
554 vnet/lisp-cp/lisp_msg_serdes.c \
555 vnet/lisp-cp/packets.c \
556 vnet/lisp-cp/lisp_api.c
557
558nobase_include_HEADERS += \
559 vnet/lisp-cp/lisp_types.h \
560 vnet/lisp-cp/packets.h \
561 vnet/lisp-cp/gid_dictionary.h \
562 vnet/lisp-cp/lisp_cp_messages.h \
563 vnet/lisp-cp/lisp_msg_serdes.h \
564 vnet/lisp-cp/control.h \
565 vnet/lisp-cp/lisp.api.h
566
567API_FILES += vnet/lisp-cp/lisp.api
568
569if ENABLE_TESTS
570LDS = \
571 libvppinfra.la \
572 libvnet.la \
573 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100574 libsvm.la \
575 libsvmdb.la \
576 libvlibapi.la \
577 libvlibmemory.la \
578 -lpthread -ldl -lrt -lm -lcrypto
579
580TESTS += test_cp_serdes test_lisp_types
581
582test_cp_serdes_SOURCES = \
583 tests/vnet/lisp-cp/test_cp_serdes.c \
584 vnet/lisp-cp/lisp_msg_serdes.c \
585 vnet/lisp-cp/lisp_types.c \
586 vnet/lisp-cp/packets.c \
587 vnet/ip/ip_checksum.c
588
589test_lisp_types_SOURCES = \
590 tests/vnet/lisp-cp/test_lisp_types.c \
591 vnet/lisp-cp/lisp_types.c
592
593test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
594test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
595
596test_cp_serdes_LDFLAGS = $(DPDK_LD_FLAGS)
597test_cp_serdes_LDADD = $(LDS) $(DPDK_LD_ADD)
598test_lisp_types_LDFLAGS = $(DPDK_LD_FLAGS)
599test_lisp_types_LDADD = $(LDS) $(DPDK_LD_ADD)
600endif
601
602########################################
603# Tunnel protocol: lisp-gpe
604########################################
605
606libvnet_la_SOURCES += \
607 vnet/lisp-gpe/lisp_gpe.c \
608 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
609 vnet/lisp-gpe/lisp_gpe_adjacency.c \
610 vnet/lisp-gpe/lisp_gpe_tunnel.c \
611 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
612 vnet/lisp-gpe/lisp_gpe_tenant.c \
613 vnet/lisp-gpe/interface.c \
614 vnet/lisp-gpe/decap.c \
615 vnet/lisp-gpe/lisp_gpe_api.c
616
617nobase_include_HEADERS += \
618 vnet/lisp-gpe/lisp_gpe.h \
619 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
620 vnet/lisp-gpe/lisp_gpe_tenant.h \
621 vnet/lisp-gpe/lisp_gpe_packet.h \
622 vnet/lisp-gpe/lisp_gpe_error.def \
623 vnet/lisp-gpe/lisp_gpe.api.h
624
625API_FILES += vnet/lisp-gpe/lisp_gpe.api
626
627if ENABLE_TESTS
628TESTS += test_test
629
630test_test_SOURCES = tests/vnet/lisp-gpe/test.c
631
632test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
633
634test_test_LDADD = $(LIBOBJS)
635
636noinst_PROGRAMS += $(TESTS)
637check_PROGRAMS += $(TESTS)
638endif
639
640########################################
641# DHCP client
642########################################
643libvnet_la_SOURCES += \
644 vnet/dhcp/client.c \
645 vnet/dhcp/client.h
646
647nobase_include_HEADERS += \
648 vnet/dhcp/client.h
649
650########################################
651# DHCP proxy
652########################################
653libvnet_la_SOURCES += \
654 vnet/dhcp/proxy_node.c \
655 vnet/dhcp/proxy.h
656
657nobase_include_HEADERS += \
658 vnet/dhcp/packet.h \
659 vnet/dhcp/proxy.h \
660 vnet/dhcp/proxy_error.def
661
662########################################
663# ipv6 segment routing
664########################################
665
666if WITH_IPV6SR
667libvnet_la_SOURCES += \
668 vnet/sr/sr.c \
669 vnet/sr/sr_replicate.c
670endif
671
672nobase_include_HEADERS += \
673 vnet/sr/sr_packet.h \
674 vnet/sr/sr_error.def \
675 vnet/sr/sr.h
676
677########################################
678# DHCPv6 proxy
679########################################
680libvnet_la_SOURCES += \
681 vnet/dhcpv6/proxy_node.c
682
683nobase_include_HEADERS += \
684 vnet/dhcpv6/packet.h \
685 vnet/dhcpv6/proxy.h \
686 vnet/dhcpv6/proxy_error.def
687
688########################################
689# IPFIX / netflow v10
690########################################
691libvnet_la_SOURCES += \
692 vnet/flow/flow_report.c
693
694nobase_include_HEADERS += \
695 vnet/flow/flow_report.h \
696 vnet/flow/ipfix_info_elements.h \
697 vnet/flow/ipfix_packet.h
698
699########################################
700# IPFIX classify code
701########################################
702
703libvnet_la_SOURCES += \
704 vnet/flow/flow_report_classify.c
705
706nobase_include_HEADERS += \
707 vnet/flow/flow_report_classify.h
708
709########################################
710# lawful intercept
711########################################
712
713libvnet_la_SOURCES += \
714 vnet/lawful-intercept/lawful_intercept.c \
715 vnet/lawful-intercept/node.c
716
717nobase_include_HEADERS += \
718 vnet/lawful-intercept/lawful_intercept.h
719
720########################################
721# SPAN (port mirroring)
722########################################
723
724libvnet_la_SOURCES += \
725 vnet/span/span_api.c \
726 vnet/span/span.c \
727 vnet/span/node.c
728
729nobase_include_HEADERS += \
730 vnet/span/span.api.h \
731 vnet/span/span.h
732
733API_FILES += vnet/span/span.api
734
735########################################
736# Packet generator
737########################################
738
739libvnet_la_SOURCES += \
740 vnet/pg/cli.c \
741 vnet/pg/edit.c \
742 vnet/pg/init.c \
743 vnet/pg/input.c \
744 vnet/pg/output.c \
745 vnet/pg/stream.c
746
747nobase_include_HEADERS += \
748 vnet/pg/pg.h \
749 vnet/pg/edit.h
750
751########################################
752# DPDK
753########################################
754if WITH_DPDK
755libvnet_la_SOURCES += \
756 vnet/devices/dpdk/dpdk_priv.h \
757 vnet/devices/dpdk/device.c \
758 vnet/devices/dpdk/format.c \
759 vnet/devices/dpdk/init.c \
760 vnet/devices/dpdk/node.c \
761 vnet/devices/dpdk/hqos.c \
762 vnet/devices/dpdk/cli.c
763
764nobase_include_HEADERS += \
765 vnet/devices/dpdk/dpdk.h
766else
767libvnet_la_SOURCES += \
768 vnet/devices/nic/ixge.c \
769 vnet/devices/nic/ixge.h \
770 vnet/devices/nic/sfp.c \
771 vnet/devices/nic/sfp.h
772endif
773
774########################################
775# virtio
776########################################
777
778libvnet_la_SOURCES += \
779 vnet/devices/virtio/vhost-user.c \
780 vnet/devices/virtio/vhost_user_api.c
781
782nobase_include_HEADERS += \
783 vnet/devices/virtio/vhost-user.h \
784 vnet/devices/virtio/vhost_user.api.h
785
786API_FILES += vnet/devices/virtio/vhost_user.api
787
788########################################
789# ssvm ethernet
790########################################
791libvnet_la_SOURCES += \
792 vnet/devices/ssvm/ssvm_eth.c \
793 vnet/devices/ssvm/node.c
794
795nobase_include_HEADERS += \
796 vnet/devices/ssvm/ssvm_eth.h
797
798########################################
799# Linux packet interface
800########################################
801
802libvnet_la_SOURCES += \
803 vnet/devices/af_packet/af_packet.c \
804 vnet/devices/af_packet/device.c \
805 vnet/devices/af_packet/node.c \
806 vnet/devices/af_packet/cli.c \
807 vnet/devices/af_packet/af_packet_api.c
808
809nobase_include_HEADERS += \
810 vnet/devices/af_packet/af_packet.h \
811 vnet/devices/af_packet/af_packet.api.h
812
813API_FILES += vnet/devices/af_packet/af_packet.api
814
815########################################
816# NETMAP interface
817########################################
818
819libvnet_la_SOURCES += \
820 vnet/devices/netmap/netmap.c \
821 vnet/devices/netmap/device.c \
822 vnet/devices/netmap/node.c \
823 vnet/devices/netmap/cli.c \
824 vnet/devices/netmap/netmap_api.c
825
826nobase_include_HEADERS += \
827 vnet/devices/netmap/netmap.h \
828 vnet/devices/netmap/netmap.api.h
829
830API_FILES += vnet/devices/netmap/netmap.api
831
832########################################
833# Driver feature graph arc support
834########################################
835
836libvnet_la_SOURCES += \
837 vnet/feature/feature.c \
838 vnet/feature/registration.c
839
840nobase_include_HEADERS += \
841 vnet/feature/feature.h
842
843########################################
844# Unix kernel related
845########################################
846
847# FIXME: vnet/unix/hgshm.c
848
849libvnet_la_SOURCES += \
850 vnet/unix/gdb_funcs.c \
851 vnet/unix/pcap.c \
852 vnet/unix/tap_api.c \
853 vnet/unix/tapcli.c \
854 vnet/unix/tuntap.c
855
856nobase_include_HEADERS += \
857 vnet/unix/pcap.h \
858 vnet/unix/tuntap.h \
859 vnet/unix/tap.api.h \
860 vnet/unix/tapcli.h
861
862API_FILES += vnet/unix/tap.api
863
864########################################
865# FIB
866########################################
867
868libvnet_la_SOURCES += \
869 vnet/fib/fib.c \
870 vnet/fib/fib_test.c \
871 vnet/fib/ip4_fib.c \
872 vnet/fib/ip6_fib.c \
873 vnet/fib/mpls_fib.c \
874 vnet/fib/fib_table.c \
875 vnet/fib/fib_walk.c \
876 vnet/fib/fib_types.c \
877 vnet/fib/fib_node.c \
878 vnet/fib/fib_node_list.c \
879 vnet/fib/fib_entry.c \
880 vnet/fib/fib_entry_src.c \
881 vnet/fib/fib_entry_src_rr.c \
882 vnet/fib/fib_entry_src_interface.c \
883 vnet/fib/fib_entry_src_default_route.c \
884 vnet/fib/fib_entry_src_special.c \
885 vnet/fib/fib_entry_src_api.c \
886 vnet/fib/fib_entry_src_adj.c \
887 vnet/fib/fib_entry_src_mpls.c \
888 vnet/fib/fib_entry_src_lisp.c \
889 vnet/fib/fib_entry_cover.c \
890 vnet/fib/fib_entry_delegate.c \
891 vnet/fib/fib_path_list.c \
892 vnet/fib/fib_path.c \
893 vnet/fib/fib_path_ext.c \
894 vnet/fib/fib_urpf_list.c \
895 vnet/fib/fib_attached_export.c
896
897nobase_include_HEADERS += \
898 vnet/fib/fib.h \
899 vnet/fib/fib_api.h \
900 vnet/fib/ip4_fib.h \
901 vnet/fib/ip6_fib.h \
902 vnet/fib/fib_types.h \
903 vnet/fib/fib_table.h \
904 vnet/fib/fib_node.h \
905 vnet/fib/fib_node_list.h \
906 vnet/fib/fib_entry.h \
907 vnet/fib/fib_entry_delegate.h
908
909########################################
910# ADJ
911########################################
912
913libvnet_la_SOURCES += \
914 vnet/adj/adj_nbr.c \
915 vnet/adj/adj_rewrite.c \
916 vnet/adj/adj_glean.c \
917 vnet/adj/adj_midchain.c \
918 vnet/adj/adj_l2.c \
919 vnet/adj/adj.c
920
921nobase_include_HEADERS += \
922 vnet/adj/adj.h \
923 vnet/adj/adj_types.h \
924 vnet/adj/adj_rewrite.h \
925 vnet/adj/adj_glean.h \
926 vnet/adj/adj_nbr.h
927
928########################################
929# Data-Plane Objects
930########################################
931
932libvnet_la_SOURCES += \
933 vnet/dpo/dpo.c \
934 vnet/dpo/drop_dpo.c \
935 vnet/dpo/ip_null_dpo.c \
936 vnet/dpo/punt_dpo.c \
937 vnet/dpo/receive_dpo.c \
938 vnet/dpo/load_balance.c \
939 vnet/dpo/load_balance_map.c \
940 vnet/dpo/lookup_dpo.c \
941 vnet/dpo/classify_dpo.c \
942 vnet/dpo/mpls_label_dpo.c
943
944nobase_include_HEADERS += \
945 vnet/dpo/load_balance.h \
946 vnet/dpo/drop_dpo.h \
947 vnet/dpo/lookup_dpo.h \
948 vnet/dpo/punt_dpo.h \
949 vnet/dpo/classify_dpo.h \
950 vnet/dpo/receive_dpo.h \
951 vnet/dpo/ip_null_dpo.h \
952 vnet/dpo/dpo.h
953
954########################################
955# Plugin client library
956########################################
957
958libvnetplugin_la_SOURCES += \
959 vnet/plugin/p1.c
960
961nobase_include_HEADERS += \
962 vnet/plugin/plugin.h
963
964libvnetdir = ${libdir}
965libvnet_LTLIBRARIES = libvnet.la libvnetplugin.la
966
967pcap2pg_SOURCES = \
968 vnet/unix/pcap2pg.c \
969 vnet/unix/pcap.h
970
971pcap2pg_LDFLAGS = -static
972pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
973
974noinst_PROGRAMS += pcap2pg
975
976# vi:syntax=automake