1 # 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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 lib_LTLIBRARIES += libvnet.la
17 libvnet_la_DEPENDENCIES = \
24 libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt
27 libvnet_la_LIBADD += -lcrypto
30 ########################################
32 ########################################
33 libvnet_la_SOURCES += \
36 vnet/devices/devices.c \
37 vnet/devices/netlink.c \
40 vnet/interface_api.c \
41 vnet/interface_cli.c \
42 vnet/interface_format.c \
43 vnet/interface_output.c \
47 nobase_include_HEADERS += \
51 vnet/devices/devices.h \
52 vnet/devices/netlink.h \
56 vnet/interface.api.h \
57 vnet/interface_funcs.h \
58 vnet/ip/ip4_to_ip6.h \
59 vnet/ip/ip6_to_ip4.h \
64 vnet/vnet_all_api_h.h \
65 vnet/vnet_msg_enum.h \
69 API_FILES += vnet/interface.api
71 ########################################
73 ########################################
75 libvnet_la_SOURCES += \
76 vnet/policer/node_funcs.c \
77 vnet/policer/policer.c \
78 vnet/policer/xlate.c \
79 vnet/policer/policer_api.c
81 nobase_include_HEADERS += \
82 vnet/policer/police.h \
83 vnet/policer/policer.h \
84 vnet/policer/xlate.h \
85 vnet/policer/policer.api.h
87 API_FILES += vnet/policer/policer.api
89 ########################################
91 ########################################
93 libvnet_la_SOURCES += \
96 vnet/cop/ip4_whitelist.c \
97 vnet/cop/ip6_whitelist.c \
100 nobase_include_HEADERS += \
104 API_FILES += vnet/cop/cop.api
106 ########################################
107 # Layer 2 protocols go here
108 ########################################
110 ########################################
111 # Layer 2 protocol: Ethernet
112 ########################################
113 libvnet_la_SOURCES += \
114 vnet/ethernet/arp.c \
115 vnet/ethernet/format.c \
116 vnet/ethernet/init.c \
117 vnet/ethernet/interface.c \
118 vnet/ethernet/node.c \
120 vnet/ethernet/sfp.c \
121 vnet/ethernet/p2p_ethernet.c \
122 vnet/ethernet/p2p_ethernet_input.c \
123 vnet/ethernet/p2p_ethernet_api.c
125 nobase_include_HEADERS += \
126 vnet/ethernet/arp_packet.h \
127 vnet/ethernet/error.def \
128 vnet/ethernet/ethernet.h \
129 vnet/ethernet/packet.h \
130 vnet/ethernet/types.def \
131 vnet/ethernet/sfp.h \
132 vnet/ethernet/p2p_ethernet.api.h \
133 vnet/ethernet/p2p_ethernet.h
135 API_FILES += vnet/ethernet/p2p_ethernet.api
137 ########################################
138 # Layer 2 protocol: Ethernet bridging
139 ########################################
140 libvnet_la_SOURCES += \
141 vnet/l2/feat_bitmap.c \
145 vnet/l2/l2_input_classify.c \
146 vnet/l2/l2_output_classify.c \
147 vnet/l2/l2_efp_filter.c \
152 vnet/l2/l2_input_vtr.c \
154 vnet/l2/l2_output.c \
155 vnet/l2/l2_in_out_acl.c \
161 nobase_include_HEADERS += \
162 vnet/l2/feat_bitmap.h \
164 vnet/l2/l2_output.h \
166 vnet/l2/l2_input_vtr.h \
167 vnet/l2/l2_efp_filter.h \
175 vnet/l2/l2_classify.h \
178 API_FILES += vnet/l2/l2.api
180 ########################################
181 # Layer 2 protocol: SRP
182 ########################################
183 libvnet_la_SOURCES += \
185 vnet/srp/interface.c \
189 nobase_include_HEADERS += \
193 ########################################
194 # Layer 2 protocol: PPP
195 ########################################
196 libvnet_la_SOURCES += \
201 nobase_include_HEADERS += \
206 ########################################
207 # Layer 2 protocol: HDLC
208 ########################################
209 libvnet_la_SOURCES += \
214 nobase_include_HEADERS += \
215 vnet/hdlc/error.def \
219 ########################################
220 # Layer 2 protocol: LLC
221 ########################################
222 libvnet_la_SOURCES += \
227 nobase_include_HEADERS += \
230 ########################################
231 # Layer 2 protocol: SNAP
232 ########################################
233 libvnet_la_SOURCES += \
238 nobase_include_HEADERS += \
241 ########################################
243 ########################################
244 libvnet_la_SOURCES += \
248 vnet/vxlan/vxlan_api.c
250 nobase_include_HEADERS += \
252 vnet/vxlan/vxlan_packet.h \
253 vnet/vxlan/vxlan_error.def \
254 vnet/vxlan/vxlan.api.h
256 API_FILES += vnet/vxlan/vxlan.api
258 ########################################
260 ########################################
261 libvnet_la_SOURCES += \
262 vnet/geneve/geneve.c \
263 vnet/geneve/encap.c \
264 vnet/geneve/decap.c \
265 vnet/geneve/geneve_api.c
267 nobase_include_HEADERS += \
268 vnet/geneve/geneve.h \
269 vnet/geneve/geneve_packet.h \
270 vnet/geneve/geneve_error.def \
271 vnet/geneve/geneve.api.h
273 API_FILES += vnet/geneve/geneve.api
275 ########################################
277 ########################################
278 libvnet_la_SOURCES += \
279 vnet/lldp/lldp_input.c \
280 vnet/lldp/lldp_node.c \
281 vnet/lldp/lldp_output.c \
282 vnet/lldp/lldp_cli.c \
285 nobase_include_HEADERS += \
286 vnet/lldp/lldp_protocol.h \
290 API_FILES += vnet/lldp/lldp.api
292 ########################################
293 # Layer 2/3 "classify"
294 ########################################
295 libvnet_la_SOURCES += \
296 vnet/classify/vnet_classify.c \
297 vnet/classify/ip_classify.c \
298 vnet/classify/in_out_acl.c \
299 vnet/classify/policer_classify.c \
300 vnet/classify/flow_classify.c \
301 vnet/classify/flow_classify_node.c \
302 vnet/classify/vnet_classify.h \
303 vnet/classify/classify_api.c
305 nobase_include_HEADERS += \
306 vnet/classify/vnet_classify.h \
307 vnet/classify/in_out_acl.h \
308 vnet/classify/policer_classify.h \
309 vnet/classify/flow_classify.h \
310 vnet/classify/classify.api.h
312 API_FILES += vnet/classify/classify.api
314 ########################################
315 # Layer 3 protocols go here
316 ########################################
318 ########################################
319 # Layer 3 protocol: IP v4/v6
320 ########################################
321 libvnet_la_SOURCES += \
326 vnet/ip/ip4_format.c \
327 vnet/ip/ip4_forward.c \
328 vnet/ip/ip4_punt_drop.c \
329 vnet/ip/ip4_input.c \
330 vnet/ip/ip4_mtrie.c \
332 vnet/ip/ip4_source_and_port_range_check.c \
333 vnet/ip/ip4_source_check.c \
334 vnet/ip/ip4_reassembly.c \
335 vnet/ip/ip6_format.c \
336 vnet/ip/ip6_forward.c \
337 vnet/ip/ip6_ll_table.c \
338 vnet/ip/ip6_ll_types.c \
339 vnet/ip/ip6_punt_drop.c \
340 vnet/ip/ip6_hop_by_hop.c \
341 vnet/ip/ip6_input.c \
342 vnet/ip/ip6_neighbor.c \
344 vnet/ip/ip6_reassembly.c \
346 vnet/ip/ip_checksum.c \
350 vnet/ip/ip_in_out_acl.c \
356 nobase_include_HEADERS += \
358 vnet/ip/icmp46_packet.h \
361 vnet/ip/igmp_packet.h \
363 vnet/ip/ip4_error.h \
365 vnet/ip/ip4_mtrie.h \
366 vnet/ip/ip4_packet.h \
367 vnet/ip/ip6_error.h \
369 vnet/ip/ip6_hop_by_hop.h \
370 vnet/ip/ip6_hop_by_hop_packet.h \
371 vnet/ip/ip6_packet.h \
372 vnet/ip/ip6_neighbor.h \
374 vnet/ip/ip_packet.h \
375 vnet/ip/ip_source_and_port_range_check.h \
378 vnet/ip/protocols.def \
379 vnet/ip/punt_error.def \
387 ########################################
388 # Bidirectional Forwarding Detection
389 ########################################
391 nobase_include_HEADERS += \
392 vnet/bfd/bfd_protocol.h \
393 vnet/bfd/bfd_main.h \
398 libvnet_la_SOURCES += \
401 vnet/bfd/bfd_main.c \
402 vnet/bfd/bfd_protocol.c \
406 API_FILES += vnet/bfd/bfd.api
408 ########################################
409 # Layer 3 protocol: IPSec
410 ########################################
412 libvnet_la_SOURCES += \
414 vnet/ipsec/ipsec_cli.c \
415 vnet/ipsec/ipsec_format.c \
416 vnet/ipsec/ipsec_input.c \
417 vnet/ipsec/ipsec_if.c \
418 vnet/ipsec/ipsec_if_in.c \
419 vnet/ipsec/ipsec_if_out.c \
420 vnet/ipsec/esp_format.c \
421 vnet/ipsec/esp_encrypt.c \
422 vnet/ipsec/esp_decrypt.c \
423 vnet/ipsec/ah_decrypt.c \
424 vnet/ipsec/ah_encrypt.c \
426 vnet/ipsec/ikev2_crypto.c \
427 vnet/ipsec/ikev2_cli.c \
428 vnet/ipsec/ikev2_payload.c \
429 vnet/ipsec/ikev2_format.c \
430 vnet/ipsec/ipsec_api.c
432 API_FILES += vnet/ipsec/ipsec.api
435 libvnet_la_SOURCES += \
436 vnet/ipsec/ipsec_output.c
438 nobase_include_HEADERS += \
443 vnet/ipsec/ikev2_priv.h \
444 vnet/ipsec/ipsec.api.h
446 ########################################
447 # Layer 3 protocol: osi
448 ########################################
449 libvnet_la_SOURCES += \
454 nobase_include_HEADERS += \
457 ########################################
458 # Layer 3 protocol: MAP
459 ########################################
460 libvnet_la_SOURCES += \
465 vnet/map/ip4_map_t.c \
466 vnet/map/ip6_map_t.c \
469 nobase_include_HEADERS += \
474 API_FILES += vnet/map/map.api
480 test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
482 test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
483 -lpthread -lvlibmemory -ldl -lsvm -lrt
485 test_map_LDFLAGS = -static
488 ########################################
489 # Layer 4 protocol: tcp
490 ########################################
491 libvnet_la_SOURCES += \
493 vnet/tcp/tcp_format.c \
495 vnet/tcp/tcp_syn_filter4.c \
496 vnet/tcp/tcp_output.c \
497 vnet/tcp/tcp_input.c \
498 vnet/tcp/tcp_newreno.c \
499 vnet/tcp/tcp_test.c \
502 nobase_include_HEADERS += \
503 vnet/tcp/tcp_packet.h \
504 vnet/tcp/tcp_timer.h \
505 vnet/tcp/tcp_debug.h \
509 API_FILES += vnet/tcp/tcp.api
511 ########################################
512 # Layer 4 protocol: udp
513 ########################################
514 libvnet_la_SOURCES += \
516 vnet/udp/udp_input.c \
517 vnet/udp/udp_format.c \
518 vnet/udp/udp_local.c \
520 vnet/udp/udp_encap_node.c \
521 vnet/udp/udp_encap.c \
524 nobase_include_HEADERS += \
525 vnet/udp/udp_error.def \
527 vnet/udp/udp_packet.h \
530 API_FILES += vnet/udp/udp.api
532 ########################################
533 # Layer 4 protocol: sctp
534 ########################################
535 libvnet_la_SOURCES += \
536 vnet/sctp/sctp_api.c \
538 vnet/sctp/sctp_pg.c \
539 vnet/sctp/sctp_input.c \
540 vnet/sctp/sctp_output.c \
541 vnet/sctp/sctp_format.c
543 nobase_include_HEADERS += \
544 vnet/sctp/sctp_error.def \
545 vnet/sctp/sctp_packet.h \
546 vnet/sctp/sctp_timer.h \
550 API_FILES += vnet/sctp/sctp.api
552 ########################################
553 # Tunnel protocol: gre
554 ########################################
555 libvnet_la_SOURCES += \
558 vnet/gre/interface.c \
562 nobase_include_HEADERS += \
568 API_FILES += vnet/gre/gre.api
570 ########################################
571 # Tunnel protocol: l2tpv3
572 ########################################
573 libvnet_la_SOURCES += \
580 nobase_include_HEADERS += \
585 API_FILES += vnet/l2tp/l2tp.api
587 ########################################
588 # Tunnel protocol: gre+mpls
589 ########################################
590 libvnet_la_SOURCES += \
592 vnet/mpls/mpls_lookup.c \
593 vnet/mpls/mpls_output.c \
594 vnet/mpls/mpls_features.c \
595 vnet/mpls/mpls_input.c \
596 vnet/mpls/interface.c \
597 vnet/mpls/mpls_tunnel.c \
601 nobase_include_HEADERS += \
603 vnet/mpls/mpls_types.h \
604 vnet/mpls/mpls_tunnel.h \
606 vnet/mpls/error.def \
609 API_FILES += vnet/mpls/mpls.api
611 ########################################
612 # Tunnel protocol: vxlan-gpe
613 ########################################
615 libvnet_la_SOURCES += \
616 vnet/vxlan-gpe/vxlan_gpe.c \
617 vnet/vxlan-gpe/encap.c \
618 vnet/vxlan-gpe/decap.c \
619 vnet/vxlan-gpe/vxlan_gpe_api.c
621 nobase_include_HEADERS += \
622 vnet/vxlan-gpe/vxlan_gpe.h \
623 vnet/vxlan-gpe/vxlan_gpe_packet.h \
624 vnet/vxlan-gpe/vxlan_gpe_error.def \
625 vnet/vxlan-gpe/vxlan_gpe.api.h
627 API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
629 ########################################
630 # Tunnel protocol: ipsec+gre
631 ########################################
632 libvnet_la_SOURCES += \
633 vnet/ipsec-gre/ipsec_gre.c \
634 vnet/ipsec-gre/node.c \
635 vnet/ipsec-gre/interface.c \
636 vnet/ipsec-gre/ipsec_gre_api.c
638 nobase_include_HEADERS += \
639 vnet/ipsec-gre/ipsec_gre.h \
640 vnet/ipsec-gre/error.def \
641 vnet/ipsec-gre/ipsec_gre.api.h
643 API_FILES += vnet/ipsec-gre/ipsec_gre.api
645 ########################################
646 # LISP control plane: lisp-cp
647 ########################################
649 libvnet_la_SOURCES += \
650 vnet/lisp-cp/lisp_types.c \
651 vnet/lisp-cp/lisp_cp_dpo.c \
652 vnet/lisp-cp/control.c \
653 vnet/lisp-cp/gid_dictionary.c \
654 vnet/lisp-cp/lisp_msg_serdes.c \
655 vnet/lisp-cp/packets.c \
656 vnet/lisp-cp/one_cli.c \
657 vnet/lisp-cp/lisp_cli.c \
658 vnet/lisp-cp/one_api.c \
659 vnet/lisp-cp/lisp_api.c
661 nobase_include_HEADERS += \
662 vnet/lisp-cp/lisp_types.h \
663 vnet/lisp-cp/packets.h \
664 vnet/lisp-cp/gid_dictionary.h \
665 vnet/lisp-cp/lisp_cp_messages.h \
666 vnet/lisp-cp/lisp_msg_serdes.h \
667 vnet/lisp-cp/control.h \
668 vnet/lisp-cp/one.api.h \
669 vnet/lisp-cp/lisp.api.h
671 API_FILES += vnet/lisp-cp/lisp.api
672 API_FILES += vnet/lisp-cp/one.api
682 -lpthread -ldl -lrt -lm
684 TESTS += test_cp_serdes test_lisp_types
686 test_cp_serdes_SOURCES = \
687 tests/vnet/lisp-cp/test_cp_serdes.c \
688 vnet/lisp-cp/lisp_msg_serdes.c \
689 vnet/lisp-cp/lisp_types.c \
690 vnet/lisp-cp/packets.c \
691 vnet/ip/ip_checksum.c
693 test_lisp_types_SOURCES = \
694 tests/vnet/lisp-cp/test_lisp_types.c \
695 vnet/lisp-cp/lisp_types.c
697 test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
698 test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
700 test_cp_serdes_LDADD = $(LDS)
701 test_lisp_types_LDADD = $(LDS)
704 ########################################
705 # Tunnel protocol: lisp-gpe
706 ########################################
708 libvnet_la_SOURCES += \
709 vnet/lisp-gpe/lisp_gpe.c \
710 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
711 vnet/lisp-gpe/lisp_gpe_adjacency.c \
712 vnet/lisp-gpe/lisp_gpe_tunnel.c \
713 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
714 vnet/lisp-gpe/lisp_gpe_tenant.c \
715 vnet/lisp-gpe/interface.c \
716 vnet/lisp-gpe/decap.c \
717 vnet/lisp-gpe/lisp_gpe_api.c
719 nobase_include_HEADERS += \
720 vnet/lisp-gpe/lisp_gpe.h \
721 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
722 vnet/lisp-gpe/lisp_gpe_tenant.h \
723 vnet/lisp-gpe/lisp_gpe_packet.h \
724 vnet/lisp-gpe/lisp_gpe_error.def \
725 vnet/lisp-gpe/lisp_gpe.api.h
727 API_FILES += vnet/lisp-gpe/lisp_gpe.api
729 ########################################
731 ########################################
732 libvnet_la_SOURCES += \
734 vnet/dhcp/dhcp_client_detect.c \
737 nobase_include_HEADERS += \
741 API_FILES += vnet/dhcp/dhcp.api
743 ########################################
745 ########################################
746 libvnet_la_SOURCES += \
747 vnet/dhcp/dhcp6_proxy_node.c \
748 vnet/dhcp/dhcp4_proxy_node.c \
749 vnet/dhcp/dhcp_proxy.c
751 nobase_include_HEADERS += \
752 vnet/dhcp/dhcp4_packet.h \
753 vnet/dhcp/dhcp6_packet.h \
754 vnet/dhcp/dhcp_proxy.h \
755 vnet/dhcp/dhcp6_proxy_error.def \
756 vnet/dhcp/dhcp4_proxy_error.def
758 ########################################
759 # ipv6 segment routing
760 ########################################
762 libvnet_la_SOURCES += \
764 vnet/srv6/sr_localsid.c \
765 vnet/srv6/sr_policy_rewrite.c \
766 vnet/srv6/sr_steering.c \
769 nobase_include_HEADERS += \
770 vnet/srv6/sr_packet.h \
774 API_FILES += vnet/srv6/sr.api
776 ########################################
777 # mpls segment routing
778 ########################################
780 libvnet_la_SOURCES += \
781 vnet/srmpls/sr_mpls_policy.c \
782 vnet/srmpls/sr_mpls_steering.c \
783 vnet/srmpls/sr_mpls_api.c
786 nobase_include_HEADERS += \
787 vnet/srmpls/sr_mpls.h \
788 vnet/srmpls/sr_mpls.api.h
790 API_FILES += vnet/srmpls/sr_mpls.api
792 ########################################
793 # IPFIX / netflow v10
794 ########################################
795 libvnet_la_SOURCES += \
796 vnet/flow/flow_report.c \
799 nobase_include_HEADERS += \
800 vnet/flow/flow_report.h \
801 vnet/flow/ipfix_info_elements.h \
802 vnet/flow/ipfix_packet.h \
805 API_FILES += vnet/flow/flow.api
807 ########################################
808 # IPFIX classify code
809 ########################################
811 libvnet_la_SOURCES += \
812 vnet/flow/flow_report_classify.c
814 nobase_include_HEADERS += \
815 vnet/flow/flow_report_classify.h
817 ########################################
819 ########################################
821 libvnet_la_SOURCES += \
822 vnet/lawful-intercept/lawful_intercept.c \
823 vnet/lawful-intercept/node.c
825 nobase_include_HEADERS += \
826 vnet/lawful-intercept/lawful_intercept.h
828 ########################################
829 # SPAN (port mirroring)
830 ########################################
832 libvnet_la_SOURCES += \
833 vnet/span/span_api.c \
837 nobase_include_HEADERS += \
838 vnet/span/span.api.h \
841 API_FILES += vnet/span/span.api
843 ########################################
845 ########################################
846 libvnet_la_SOURCES += \
849 vnet/dns/dns_packet.h \
850 vnet/dns/reply_node.c \
851 vnet/dns/request_node.c \
852 vnet/dns/resolver_process.c
854 nobase_include_HEADERS += \
858 API_FILES += vnet/dns/dns.api
860 ########################################
862 ########################################
864 libvnet_la_SOURCES += \
873 nobase_include_HEADERS += \
878 API_FILES += vnet/pg/pg.api
880 ########################################
882 ########################################
884 libvnet_la_SOURCES += \
885 vnet/devices/virtio/device.c \
886 vnet/devices/virtio/node.c \
887 vnet/devices/virtio/vhost-user.c \
888 vnet/devices/virtio/vhost_user_api.c \
889 vnet/devices/virtio/virtio.c
892 nobase_include_HEADERS += \
893 vnet/devices/virtio/virtio.h \
894 vnet/devices/virtio/vhost-user.h \
895 vnet/devices/virtio/vhost_user.api.h
897 API_FILES += vnet/devices/virtio/vhost_user.api
899 ########################################
900 # tap interface (with virtio backend)
901 ########################################
903 libvnet_la_SOURCES += \
904 vnet/devices/tap/cli.c \
905 vnet/devices/tap/tap.c \
906 vnet/devices/tap/tapv2_api.c
908 nobase_include_HEADERS += \
909 vnet/devices/tap/tap.h \
910 vnet/devices/tap/tapv2.api.h
912 API_FILES += vnet/devices/tap/tapv2.api
914 ########################################
916 ########################################
918 libvnet_la_SOURCES += \
919 vnet/session/session.c \
920 vnet/session/session_table.c \
921 vnet/session/session_rules_table.c \
922 vnet/session/session_lookup.c \
923 vnet/session/session_node.c \
924 vnet/session/transport.c \
925 vnet/session/application.c \
926 vnet/session/session_cli.c \
927 vnet/session/application_interface.c \
928 vnet/session/application_namespace.c \
929 vnet/session/segment_manager.c \
930 vnet/session/session_test.c \
931 vnet/session/session_api.c
933 nobase_include_HEADERS += \
934 vnet/session/session.h \
935 vnet/session/session_table.h \
936 vnet/session/session_rules_table.h \
937 vnet/session/stream_session.h \
938 vnet/session/session_lookup.h \
939 vnet/session/application.h \
940 vnet/session/transport.h \
941 vnet/session/transport_interface.h \
942 vnet/session/application_interface.h \
943 vnet/session/application_namespace.h \
944 vnet/session/session_debug.h \
945 vnet/session/segment_manager.h \
946 vnet/session/mma_template.h \
947 vnet/session/mma_template.c \
948 vnet/session/mma_16.h \
949 vnet/session/mma_40.h \
950 vnet/session/session.api.h
952 API_FILES += vnet/session/session.api
954 ########################################
955 # session layer applications
956 ########################################
958 libvnet_la_SOURCES += \
959 vnet/session-apps/echo_client.c \
960 vnet/session-apps/echo_server.c \
961 vnet/session-apps/http_server.c \
962 vnet/session-apps/proxy.c
964 nobase_include_HEADERS += \
965 vnet/session-apps/echo_client.h \
966 vnet/session-apps/proxy.h
968 ########################################
970 ########################################
972 libvnet_la_SOURCES += vnet/tls/tls.c
974 nobase_include_HEADERS += \
977 ########################################
978 # Linux packet interface
979 ########################################
981 libvnet_la_SOURCES += \
982 vnet/devices/af_packet/af_packet.c \
983 vnet/devices/af_packet/device.c \
984 vnet/devices/af_packet/node.c \
985 vnet/devices/af_packet/cli.c \
986 vnet/devices/af_packet/af_packet_api.c
988 nobase_include_HEADERS += \
989 vnet/devices/af_packet/af_packet.h \
990 vnet/devices/af_packet/af_packet.api.h
992 API_FILES += vnet/devices/af_packet/af_packet.api
994 ########################################
996 ########################################
998 libvnet_la_SOURCES += \
999 vnet/devices/netmap/netmap.c \
1000 vnet/devices/netmap/device.c \
1001 vnet/devices/netmap/node.c \
1002 vnet/devices/netmap/cli.c \
1003 vnet/devices/netmap/netmap_api.c
1005 nobase_include_HEADERS += \
1006 vnet/devices/netmap/netmap.h \
1007 vnet/devices/netmap/netmap.api.h
1009 API_FILES += vnet/devices/netmap/netmap.api
1011 ########################################
1012 # Driver feature graph arc support
1013 ########################################
1015 libvnet_la_SOURCES += \
1016 vnet/feature/feature.c \
1017 vnet/feature/feature_api.c \
1018 vnet/feature/registration.c
1020 nobase_include_HEADERS += \
1021 vnet/feature/feature.h \
1022 vnet/feature/feature.api.h
1024 API_FILES += vnet/feature/feature.api
1026 ########################################
1027 # Unix kernel related
1028 ########################################
1030 # FIXME: vnet/unix/hgshm.c
1032 libvnet_la_SOURCES += \
1033 vnet/unix/gdb_funcs.c \
1035 vnet/unix/tap_api.c \
1036 vnet/unix/tapcli.c \
1039 nobase_include_HEADERS += \
1041 vnet/unix/tuntap.h \
1042 vnet/unix/tap.api.h \
1045 API_FILES += vnet/unix/tap.api
1047 ########################################
1049 ########################################
1051 libvnet_la_SOURCES += \
1053 vnet/fib/fib_test.c \
1054 vnet/fib/ip4_fib.c \
1055 vnet/fib/ip6_fib.c \
1056 vnet/fib/mpls_fib.c \
1057 vnet/fib/fib_table.c \
1058 vnet/fib/fib_walk.c \
1059 vnet/fib/fib_types.c \
1060 vnet/fib/fib_node.c \
1061 vnet/fib/fib_node_list.c \
1062 vnet/fib/fib_entry.c \
1063 vnet/fib/fib_entry_src.c \
1064 vnet/fib/fib_entry_src_rr.c \
1065 vnet/fib/fib_entry_src_interface.c \
1066 vnet/fib/fib_entry_src_default_route.c \
1067 vnet/fib/fib_entry_src_special.c \
1068 vnet/fib/fib_entry_src_api.c \
1069 vnet/fib/fib_entry_src_adj.c \
1070 vnet/fib/fib_entry_src_mpls.c \
1071 vnet/fib/fib_entry_src_lisp.c \
1072 vnet/fib/fib_entry_cover.c \
1073 vnet/fib/fib_entry_delegate.c \
1074 vnet/fib/fib_path_list.c \
1075 vnet/fib/fib_path.c \
1076 vnet/fib/fib_path_ext.c \
1077 vnet/fib/fib_urpf_list.c \
1078 vnet/fib/fib_attached_export.c \
1081 nobase_include_HEADERS += \
1083 vnet/fib/fib_api.h \
1084 vnet/fib/ip4_fib.h \
1085 vnet/fib/ip6_fib.h \
1086 vnet/fib/fib_types.h \
1087 vnet/fib/fib_table.h \
1088 vnet/fib/fib_node.h \
1089 vnet/fib/fib_node_list.h \
1090 vnet/fib/fib_entry.h \
1091 vnet/fib/fib_entry_delegate.h
1093 ########################################
1095 ########################################
1097 libvnet_la_SOURCES += \
1098 vnet/adj/adj_nbr.c \
1099 vnet/adj/adj_glean.c \
1100 vnet/adj/adj_midchain.c \
1101 vnet/adj/adj_mcast.c \
1103 vnet/adj/adj_nsh.c \
1105 vnet/adj/rewrite.c \
1106 vnet/adj/adj_bfd.c \
1107 vnet/adj/adj_delegate.c
1109 nobase_include_HEADERS += \
1111 vnet/adj/adj_types.h \
1112 vnet/adj/adj_glean.h \
1113 vnet/adj/adj_nsh.h \
1114 vnet/adj/adj_nbr.h \
1117 ########################################
1118 # Data-Plane Objects
1119 ########################################
1121 libvnet_la_SOURCES += \
1123 vnet/dpo/drop_dpo.c \
1124 vnet/dpo/ip_null_dpo.c \
1125 vnet/dpo/ip6_ll_dpo.c \
1126 vnet/dpo/punt_dpo.c \
1127 vnet/dpo/receive_dpo.c \
1128 vnet/dpo/load_balance.c \
1129 vnet/dpo/load_balance_map.c \
1130 vnet/dpo/lookup_dpo.c \
1131 vnet/dpo/classify_dpo.c \
1132 vnet/dpo/replicate_dpo.c \
1133 vnet/dpo/interface_rx_dpo.c \
1134 vnet/dpo/interface_tx_dpo.c \
1135 vnet/dpo/mpls_disposition.c \
1136 vnet/dpo/mpls_label_dpo.c \
1137 vnet/dpo/l3_proxy_dpo.c \
1140 nobase_include_HEADERS += \
1141 vnet/dpo/load_balance.h \
1142 vnet/dpo/drop_dpo.h \
1143 vnet/dpo/lookup_dpo.h \
1144 vnet/dpo/punt_dpo.h \
1145 vnet/dpo/classify_dpo.h \
1146 vnet/dpo/receive_dpo.h \
1147 vnet/dpo/ip_null_dpo.h \
1148 vnet/dpo/replicate_dpo.h \
1151 ########################################
1153 ########################################
1155 libvnet_la_SOURCES += \
1156 vnet/mfib/mfib_test.c \
1157 vnet/mfib/mfib_forward.c \
1158 vnet/mfib/ip4_mfib.c \
1159 vnet/mfib/ip6_mfib.c \
1160 vnet/mfib/mfib_types.c \
1161 vnet/mfib/mfib_signal.c \
1162 vnet/mfib/mfib_itf.c \
1163 vnet/mfib/mfib_entry.c \
1164 vnet/mfib/mfib_table.c
1166 nobase_include_HEADERS += \
1167 vnet/mfib/ip4_mfib.h \
1168 vnet/mfib/mfib_types.h \
1169 vnet/mfib/mfib_table.h
1171 ########################################
1173 ########################################
1175 libvnet_la_SOURCES += \
1177 vnet/util/refcount.c \
1178 vnet/util/trajectory.c
1180 ########################################
1182 ########################################
1184 libvnet_la_SOURCES += \
1185 vnet/bier/bier_bit_string.c \
1186 vnet/bier/bier_entry.c \
1187 vnet/bier/bier_fmask.c \
1188 vnet/bier/bier_fmask_db.c \
1189 vnet/bier/bier_input.c \
1190 vnet/bier/bier_lookup.c \
1191 vnet/bier/bier_output.c \
1192 vnet/bier/bier_table.c \
1193 vnet/bier/bier_types.c \
1194 vnet/bier/bier_test.c \
1195 vnet/bier/bier_api.c \
1196 vnet/bier/bier_drop.c \
1197 vnet/bier/bier_update.c \
1198 vnet/bier/bier_imp_node.c \
1199 vnet/bier/bier_imp.c \
1200 vnet/bier/bier_disp_entry.c \
1201 vnet/bier/bier_disp_lookup_node.c \
1202 vnet/bier/bier_disp_dispatch_node.c \
1203 vnet/bier/bier_disp_table.c \
1204 vnet/bier/bier_bift_table.c
1206 nobase_include_HEADERS += \
1207 vnet/bier/bier_types.h \
1208 vnet/bier/bier_entry.h \
1209 vnet/bier/bier_update.h \
1210 vnet/bier/bier.api.h \
1211 vnet/bier/bier_table.h
1213 API_FILES += vnet/bier/bier.api
1215 ########################################
1217 ########################################
1219 noinst_PROGRAMS += tcp_echo udp_echo
1221 TEST_APPS_LDADD = libvlibmemoryclient.la libsvm.la libvppinfra.la
1222 TEST_APPS_LDADD += -lpthread -lm -lrt
1224 tcp_echo_SOURCES = tests/vnet/session/tcp_echo.c
1225 tcp_echo_LDADD = $(TEST_APPS_LDADD)
1227 udp_echo_SOURCES = tests/vnet/session/udp_echo.c
1228 udp_echo_LDADD = $(TEST_APPS_LDADD)
1230 ########################################
1231 # Plugin client library
1232 ########################################
1234 nobase_include_HEADERS += \
1235 vnet/plugin/plugin.h
1238 vnet/unix/pcap2pg.c \
1241 pcap2pg_LDFLAGS = -static
1242 pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1244 pcap2cinit_SOURCES = \
1245 vnet/unix/pcap2cinit.c \
1248 pcap2cinit_LDFLAGS = -static
1249 pcap2cinit_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1251 noinst_PROGRAMS += pcap2pg pcap2cinit
1253 # vi:syntax=automake