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
18 libvnet_la_DEPENDENCIES = \
24 libvnet_multiversioning_files =
26 libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt
29 libvnet_la_LIBADD += -lcrypto
32 ########################################
34 ########################################
35 libvnet_la_SOURCES += \
38 vnet/devices/devices.c \
39 vnet/devices/netlink.c \
41 vnet/flow/flow_cli.c \
44 vnet/interface_api.c \
45 vnet/interface_cli.c \
46 vnet/interface_format.c \
47 vnet/interface_output.c \
48 vnet/interface_stats.c \
52 nobase_include_HEADERS += \
56 vnet/devices/devices.h \
57 vnet/devices/netlink.h \
62 vnet/interface.api.h \
63 vnet/interface_funcs.h \
64 vnet/ip/ip4_to_ip6.h \
65 vnet/ip/ip6_to_ip4.h \
70 vnet/vnet_all_api_h.h \
71 vnet/vnet_msg_enum.h \
75 API_FILES += vnet/interface.api
77 ########################################
79 ########################################
81 libvnet_la_SOURCES += \
82 vnet/policer/node_funcs.c \
83 vnet/policer/policer.c \
84 vnet/policer/xlate.c \
85 vnet/policer/policer_api.c
87 nobase_include_HEADERS += \
88 vnet/policer/police.h \
89 vnet/policer/policer.h \
90 vnet/policer/xlate.h \
91 vnet/policer/policer.api.h
93 API_FILES += vnet/policer/policer.api
95 ########################################
97 ########################################
99 libvnet_la_SOURCES += \
102 vnet/cop/ip4_whitelist.c \
103 vnet/cop/ip6_whitelist.c \
106 nobase_include_HEADERS += \
110 API_FILES += vnet/cop/cop.api
112 ########################################
113 # Layer 2 protocols go here
114 ########################################
116 ########################################
117 # Layer 2 protocol: Ethernet
118 ########################################
119 libvnet_la_SOURCES += \
120 vnet/ethernet/arp.c \
121 vnet/ethernet/format.c \
122 vnet/ethernet/init.c \
123 vnet/ethernet/interface.c \
124 vnet/ethernet/node.c \
126 vnet/ethernet/sfp.c \
127 vnet/ethernet/p2p_ethernet.c \
128 vnet/ethernet/p2p_ethernet_input.c \
129 vnet/ethernet/p2p_ethernet_api.c
131 libvnet_multiversioning_files += \
134 nobase_include_HEADERS += \
135 vnet/ethernet/arp_packet.h \
136 vnet/ethernet/error.def \
137 vnet/ethernet/ethernet.h \
138 vnet/ethernet/packet.h \
139 vnet/ethernet/types.def \
140 vnet/ethernet/sfp.h \
141 vnet/ethernet/p2p_ethernet.api.h \
142 vnet/ethernet/p2p_ethernet.h
144 API_FILES += vnet/ethernet/p2p_ethernet.api
146 ########################################
147 # Layer 2 protocol: Ethernet bridging
148 ########################################
149 libvnet_la_SOURCES += \
150 vnet/l2/feat_bitmap.c \
154 vnet/l2/l2_input_classify.c \
155 vnet/l2/l2_output_classify.c \
156 vnet/l2/l2_efp_filter.c \
161 vnet/l2/l2_input_vtr.c \
163 vnet/l2/l2_output.c \
164 vnet/l2/l2_in_out_acl.c \
170 nobase_include_HEADERS += \
171 vnet/l2/feat_bitmap.h \
173 vnet/l2/l2_output.h \
175 vnet/l2/l2_input_vtr.h \
176 vnet/l2/l2_efp_filter.h \
184 vnet/l2/l2_classify.h \
187 API_FILES += vnet/l2/l2.api
189 ########################################
190 # Layer 2 protocol: SRP
191 ########################################
192 libvnet_la_SOURCES += \
194 vnet/srp/interface.c \
198 nobase_include_HEADERS += \
202 ########################################
203 # Layer 2 protocol: PPP
204 ########################################
205 libvnet_la_SOURCES += \
210 nobase_include_HEADERS += \
215 ########################################
216 # Layer 2 protocol: HDLC
217 ########################################
218 libvnet_la_SOURCES += \
223 nobase_include_HEADERS += \
224 vnet/hdlc/error.def \
228 ########################################
229 # Layer 2 protocol: LLC
230 ########################################
231 libvnet_la_SOURCES += \
236 nobase_include_HEADERS += \
239 ########################################
240 # Layer 2 protocol: SNAP
241 ########################################
242 libvnet_la_SOURCES += \
247 nobase_include_HEADERS += \
250 ########################################
252 ########################################
253 libvnet_la_SOURCES += \
257 vnet/vxlan/vxlan_api.c
259 nobase_include_HEADERS += \
261 vnet/vxlan/vxlan_packet.h \
262 vnet/vxlan/vxlan_error.def \
263 vnet/vxlan/vxlan.api.h
265 API_FILES += vnet/vxlan/vxlan.api
267 ########################################
269 ########################################
270 libvnet_la_SOURCES += \
271 vnet/geneve/geneve.c \
272 vnet/geneve/encap.c \
273 vnet/geneve/decap.c \
274 vnet/geneve/geneve_api.c
276 nobase_include_HEADERS += \
277 vnet/geneve/geneve.h \
278 vnet/geneve/geneve_packet.h \
279 vnet/geneve/geneve_error.def \
280 vnet/geneve/geneve.api.h
282 API_FILES += vnet/geneve/geneve.api
284 ########################################
286 ########################################
287 libvnet_la_SOURCES += \
289 vnet/bonding/node.c \
290 vnet/bonding/device.c \
291 vnet/bonding/bond_api.c
293 nobase_include_HEADERS += \
294 vnet/bonding/node.h \
295 vnet/bonding/bond.api.h
297 libvnet_multiversioning_files = \
300 API_FILES += vnet/bonding/bond.api
302 ########################################
304 ########################################
305 libvnet_la_SOURCES += \
306 vnet/lldp/lldp_input.c \
307 vnet/lldp/lldp_node.c \
308 vnet/lldp/lldp_output.c \
309 vnet/lldp/lldp_cli.c \
312 nobase_include_HEADERS += \
313 vnet/lldp/lldp_protocol.h \
317 API_FILES += vnet/lldp/lldp.api
319 ########################################
320 # Layer 2/3 "classify"
321 ########################################
322 libvnet_la_SOURCES += \
323 vnet/classify/vnet_classify.c \
324 vnet/classify/ip_classify.c \
325 vnet/classify/in_out_acl.c \
326 vnet/classify/policer_classify.c \
327 vnet/classify/flow_classify.c \
328 vnet/classify/flow_classify_node.c \
329 vnet/classify/vnet_classify.h \
330 vnet/classify/classify_api.c
332 nobase_include_HEADERS += \
333 vnet/classify/vnet_classify.h \
334 vnet/classify/in_out_acl.h \
335 vnet/classify/policer_classify.h \
336 vnet/classify/flow_classify.h \
337 vnet/classify/classify.api.h
339 API_FILES += vnet/classify/classify.api
341 ########################################
342 # Layer 3 protocols go here
343 ########################################
345 ########################################
346 # Layer 3 protocol: IP v4/v6
347 ########################################
348 libvnet_la_SOURCES += \
353 vnet/ip/ip4_format.c \
354 vnet/ip/ip4_forward.c \
355 vnet/ip/ip4_punt_drop.c \
356 vnet/ip/ip4_input.c \
357 vnet/ip/ip4_mtrie.c \
359 vnet/ip/ip4_source_and_port_range_check.c \
360 vnet/ip/ip4_source_check.c \
361 vnet/ip/ip4_reassembly.c \
362 vnet/ip/ip6_format.c \
363 vnet/ip/ip6_forward.c \
364 vnet/ip/ip6_ll_table.c \
365 vnet/ip/ip6_ll_types.c \
366 vnet/ip/ip6_punt_drop.c \
367 vnet/ip/ip6_hop_by_hop.c \
368 vnet/ip/ip6_input.c \
369 vnet/ip/ip6_neighbor.c \
371 vnet/ip/ip6_reassembly.c \
373 vnet/ip/ip_neighbor.c \
375 vnet/ip/ip_checksum.c \
379 vnet/ip/ip_in_out_acl.c \
385 nobase_include_HEADERS += \
387 vnet/ip/icmp46_packet.h \
390 vnet/ip/igmp_packet.h \
392 vnet/ip/rd_cp.api.h \
393 vnet/ip/ip4_error.h \
395 vnet/ip/ip4_mtrie.h \
396 vnet/ip/ip4_packet.h \
397 vnet/ip/ip6_error.h \
399 vnet/ip/ip6_hop_by_hop.h \
400 vnet/ip/ip6_hop_by_hop_packet.h \
401 vnet/ip/ip6_packet.h \
402 vnet/ip/ip6_neighbor.h \
404 vnet/ip/ip_packet.h \
405 vnet/ip/ip_source_and_port_range_check.h \
406 vnet/ip/ip_neighbor.h \
409 vnet/ip/protocols.def \
410 vnet/ip/punt_error.def \
419 ########################################
420 # Bidirectional Forwarding Detection
421 ########################################
423 nobase_include_HEADERS += \
424 vnet/bfd/bfd_protocol.h \
425 vnet/bfd/bfd_main.h \
430 libvnet_la_SOURCES += \
433 vnet/bfd/bfd_main.c \
434 vnet/bfd/bfd_protocol.c \
438 API_FILES += vnet/bfd/bfd.api
440 ########################################
441 # Layer 3 protocol: IPSec
442 ########################################
444 libvnet_la_SOURCES += \
446 vnet/ipsec/ipsec_cli.c \
447 vnet/ipsec/ipsec_format.c \
448 vnet/ipsec/ipsec_input.c \
449 vnet/ipsec/ipsec_if.c \
450 vnet/ipsec/ipsec_if_in.c \
451 vnet/ipsec/ipsec_if_out.c \
452 vnet/ipsec/esp_format.c \
453 vnet/ipsec/esp_encrypt.c \
454 vnet/ipsec/esp_decrypt.c \
455 vnet/ipsec/ah_decrypt.c \
456 vnet/ipsec/ah_encrypt.c \
458 vnet/ipsec/ikev2_crypto.c \
459 vnet/ipsec/ikev2_cli.c \
460 vnet/ipsec/ikev2_payload.c \
461 vnet/ipsec/ikev2_format.c \
462 vnet/ipsec/ipsec_api.c
464 API_FILES += vnet/ipsec/ipsec.api
467 libvnet_la_SOURCES += \
468 vnet/ipsec/ipsec_output.c
470 nobase_include_HEADERS += \
475 vnet/ipsec/ikev2_priv.h \
476 vnet/ipsec/ipsec.api.h
478 ########################################
479 # Layer 3 protocol: osi
480 ########################################
481 libvnet_la_SOURCES += \
486 nobase_include_HEADERS += \
489 ########################################
490 # Layer 3 protocol: MAP
491 ########################################
492 libvnet_la_SOURCES += \
497 vnet/map/ip4_map_t.c \
498 vnet/map/ip6_map_t.c \
501 nobase_include_HEADERS += \
506 API_FILES += vnet/map/map.api
512 test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
514 test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
515 -lpthread -lvlibmemory -ldl -lsvm -lrt
517 test_map_LDFLAGS = -static
520 ########################################
521 # Layer 4 protocol: tcp
522 ########################################
523 libvnet_la_SOURCES += \
525 vnet/tcp/tcp_format.c \
527 vnet/tcp/tcp_syn_filter4.c \
528 vnet/tcp/tcp_output.c \
529 vnet/tcp/tcp_input.c \
530 vnet/tcp/tcp_newreno.c \
531 vnet/tcp/tcp_test.c \
534 nobase_include_HEADERS += \
535 vnet/tcp/tcp_packet.h \
536 vnet/tcp/tcp_timer.h \
537 vnet/tcp/tcp_debug.h \
541 API_FILES += vnet/tcp/tcp.api
543 ########################################
544 # Layer 4 protocol: udp
545 ########################################
546 libvnet_la_SOURCES += \
548 vnet/udp/udp_input.c \
549 vnet/udp/udp_format.c \
550 vnet/udp/udp_local.c \
552 vnet/udp/udp_encap_node.c \
553 vnet/udp/udp_encap.c \
556 nobase_include_HEADERS += \
557 vnet/udp/udp_error.def \
559 vnet/udp/udp_packet.h \
562 API_FILES += vnet/udp/udp.api
564 ########################################
565 # Layer 4 protocol: sctp
566 ########################################
567 libvnet_la_SOURCES += \
568 vnet/sctp/sctp_api.c \
570 vnet/sctp/sctp_pg.c \
571 vnet/sctp/sctp_input.c \
572 vnet/sctp/sctp_output.c \
573 vnet/sctp/sctp_format.c
575 nobase_include_HEADERS += \
576 vnet/sctp/sctp_error.def \
577 vnet/sctp/sctp_packet.h \
578 vnet/sctp/sctp_timer.h \
582 API_FILES += vnet/sctp/sctp.api
584 ########################################
585 # Tunnel protocol: gre
586 ########################################
587 libvnet_la_SOURCES += \
590 vnet/gre/interface.c \
594 nobase_include_HEADERS += \
600 API_FILES += vnet/gre/gre.api
602 ########################################
603 # Tunnel protocol: ipip
604 ########################################
605 libvnet_la_SOURCES += \
609 vnet/ipip/ipip_api.c \
612 nobase_include_HEADERS += \
613 vnet/ipip/ipip.api.h \
616 API_FILES += vnet/ipip/ipip.api
618 ########################################
619 # Tunnel protocol: l2tpv3
620 ########################################
621 libvnet_la_SOURCES += \
628 nobase_include_HEADERS += \
633 API_FILES += vnet/l2tp/l2tp.api
635 ########################################
636 # Tunnel protocol: gre+mpls
637 ########################################
638 libvnet_la_SOURCES += \
640 vnet/mpls/mpls_lookup.c \
641 vnet/mpls/mpls_output.c \
642 vnet/mpls/mpls_features.c \
643 vnet/mpls/mpls_input.c \
644 vnet/mpls/interface.c \
645 vnet/mpls/mpls_tunnel.c \
649 nobase_include_HEADERS += \
651 vnet/mpls/mpls_types.h \
652 vnet/mpls/mpls_tunnel.h \
654 vnet/mpls/error.def \
657 API_FILES += vnet/mpls/mpls.api
659 ########################################
660 # Tunnel protocol: vxlan-gpe
661 ########################################
663 libvnet_la_SOURCES += \
664 vnet/vxlan-gpe/vxlan_gpe.c \
665 vnet/vxlan-gpe/encap.c \
666 vnet/vxlan-gpe/decap.c \
667 vnet/vxlan-gpe/vxlan_gpe_api.c
669 nobase_include_HEADERS += \
670 vnet/vxlan-gpe/vxlan_gpe.h \
671 vnet/vxlan-gpe/vxlan_gpe_packet.h \
672 vnet/vxlan-gpe/vxlan_gpe_error.def \
673 vnet/vxlan-gpe/vxlan_gpe.api.h
675 API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
677 ########################################
678 # Tunnel protocol: ipsec+gre
679 ########################################
680 libvnet_la_SOURCES += \
681 vnet/ipsec-gre/ipsec_gre.c \
682 vnet/ipsec-gre/node.c \
683 vnet/ipsec-gre/interface.c \
684 vnet/ipsec-gre/ipsec_gre_api.c
686 nobase_include_HEADERS += \
687 vnet/ipsec-gre/ipsec_gre.h \
688 vnet/ipsec-gre/error.def \
689 vnet/ipsec-gre/ipsec_gre.api.h
691 API_FILES += vnet/ipsec-gre/ipsec_gre.api
693 ########################################
694 # LISP control plane: lisp-cp
695 ########################################
697 libvnet_la_SOURCES += \
698 vnet/lisp-cp/lisp_types.c \
699 vnet/lisp-cp/lisp_cp_dpo.c \
700 vnet/lisp-cp/control.c \
701 vnet/lisp-cp/gid_dictionary.c \
702 vnet/lisp-cp/lisp_msg_serdes.c \
703 vnet/lisp-cp/packets.c \
704 vnet/lisp-cp/one_cli.c \
705 vnet/lisp-cp/lisp_cli.c \
706 vnet/lisp-cp/one_api.c \
707 vnet/lisp-cp/lisp_api.c
709 nobase_include_HEADERS += \
710 vnet/lisp-cp/lisp_types.h \
711 vnet/lisp-cp/packets.h \
712 vnet/lisp-cp/gid_dictionary.h \
713 vnet/lisp-cp/lisp_cp_messages.h \
714 vnet/lisp-cp/lisp_msg_serdes.h \
715 vnet/lisp-cp/control.h \
716 vnet/lisp-cp/one.api.h \
717 vnet/lisp-cp/lisp.api.h
719 API_FILES += vnet/lisp-cp/lisp.api
720 API_FILES += vnet/lisp-cp/one.api
730 -lpthread -ldl -lrt -lm
732 TESTS += test_cp_serdes test_lisp_types
734 test_cp_serdes_SOURCES = \
735 tests/vnet/lisp-cp/test_cp_serdes.c \
736 vnet/lisp-cp/lisp_msg_serdes.c \
737 vnet/lisp-cp/lisp_types.c \
738 vnet/lisp-cp/packets.c \
739 vnet/ip/ip_checksum.c
741 test_lisp_types_SOURCES = \
742 tests/vnet/lisp-cp/test_lisp_types.c \
743 vnet/lisp-cp/lisp_types.c
745 test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
746 test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
748 test_cp_serdes_LDADD = $(LDS)
749 test_lisp_types_LDADD = $(LDS)
752 ########################################
753 # Tunnel protocol: lisp-gpe
754 ########################################
756 libvnet_la_SOURCES += \
757 vnet/lisp-gpe/lisp_gpe.c \
758 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
759 vnet/lisp-gpe/lisp_gpe_adjacency.c \
760 vnet/lisp-gpe/lisp_gpe_tunnel.c \
761 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
762 vnet/lisp-gpe/lisp_gpe_tenant.c \
763 vnet/lisp-gpe/interface.c \
764 vnet/lisp-gpe/decap.c \
765 vnet/lisp-gpe/lisp_gpe_api.c
767 nobase_include_HEADERS += \
768 vnet/lisp-gpe/lisp_gpe.h \
769 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
770 vnet/lisp-gpe/lisp_gpe_tenant.h \
771 vnet/lisp-gpe/lisp_gpe_packet.h \
772 vnet/lisp-gpe/lisp_gpe_error.def \
773 vnet/lisp-gpe/lisp_gpe.api.h
775 API_FILES += vnet/lisp-gpe/lisp_gpe.api
777 ########################################
779 ########################################
780 libvnet_la_SOURCES += \
782 vnet/dhcp/dhcp_client_detect.c \
785 nobase_include_HEADERS += \
789 API_FILES += vnet/dhcp/dhcp.api
791 ########################################
793 ########################################
794 libvnet_la_SOURCES += \
795 vnet/dhcp/dhcp6_proxy_node.c \
796 vnet/dhcp/dhcp4_proxy_node.c \
797 vnet/dhcp/dhcp_proxy.c
799 nobase_include_HEADERS += \
800 vnet/dhcp/dhcp4_packet.h \
801 vnet/dhcp/dhcp6_packet.h \
802 vnet/dhcp/dhcp_proxy.h \
803 vnet/dhcp/dhcp6_proxy_error.def \
804 vnet/dhcp/dhcp4_proxy_error.def
806 ########################################
807 # ipv6 segment routing
808 ########################################
810 libvnet_la_SOURCES += \
812 vnet/srv6/sr_localsid.c \
813 vnet/srv6/sr_policy_rewrite.c \
814 vnet/srv6/sr_steering.c \
817 nobase_include_HEADERS += \
818 vnet/srv6/sr_packet.h \
822 API_FILES += vnet/srv6/sr.api
824 ########################################
825 # mpls segment routing
826 ########################################
828 libvnet_la_SOURCES += \
829 vnet/srmpls/sr_mpls_policy.c \
830 vnet/srmpls/sr_mpls_steering.c \
831 vnet/srmpls/sr_mpls_api.c
834 nobase_include_HEADERS += \
835 vnet/srmpls/sr_mpls.h \
836 vnet/srmpls/sr_mpls.api.h
838 API_FILES += vnet/srmpls/sr_mpls.api
840 ########################################
841 # IPFIX / netflow v10
842 ########################################
843 libvnet_la_SOURCES += \
844 vnet/ipfix-export/flow_report.c \
845 vnet/ipfix-export/flow_api.c
847 nobase_include_HEADERS += \
848 vnet/ipfix-export/flow_report.h \
849 vnet/ipfix-export/ipfix_info_elements.h \
850 vnet/ipfix-export/ipfix_packet.h \
851 vnet/ipfix-export/ipfix_export.api.h
853 API_FILES += vnet/ipfix-export/ipfix_export.api
855 ########################################
856 # IPFIX classify code
857 ########################################
859 libvnet_la_SOURCES += \
860 vnet/ipfix-export/flow_report_classify.c
862 nobase_include_HEADERS += \
863 vnet/ipfix-export/flow_report_classify.h
865 ########################################
867 ########################################
869 libvnet_la_SOURCES += \
870 vnet/lawful-intercept/lawful_intercept.c \
871 vnet/lawful-intercept/node.c
873 nobase_include_HEADERS += \
874 vnet/lawful-intercept/lawful_intercept.h
876 ########################################
877 # SPAN (port mirroring)
878 ########################################
880 libvnet_la_SOURCES += \
881 vnet/span/span_api.c \
885 nobase_include_HEADERS += \
886 vnet/span/span.api.h \
889 API_FILES += vnet/span/span.api
891 ########################################
893 ########################################
894 libvnet_la_SOURCES += \
897 vnet/dns/dns_packet.h \
898 vnet/dns/reply_node.c \
899 vnet/dns/request_node.c \
900 vnet/dns/resolver_process.c
902 nobase_include_HEADERS += \
906 API_FILES += vnet/dns/dns.api
908 ########################################
910 ########################################
912 libvnet_la_SOURCES += \
921 nobase_include_HEADERS += \
926 API_FILES += vnet/pg/pg.api
928 ########################################
930 ########################################
932 libvnet_la_SOURCES += \
933 vnet/devices/virtio/device.c \
934 vnet/devices/virtio/node.c \
935 vnet/devices/virtio/vhost-user.c \
936 vnet/devices/virtio/vhost_user_api.c \
937 vnet/devices/virtio/virtio.c
940 nobase_include_HEADERS += \
941 vnet/devices/virtio/virtio.h \
942 vnet/devices/virtio/vhost-user.h \
943 vnet/devices/virtio/vhost_user.api.h
945 API_FILES += vnet/devices/virtio/vhost_user.api
947 ########################################
948 # tap interface (with virtio backend)
949 ########################################
951 libvnet_la_SOURCES += \
952 vnet/devices/tap/cli.c \
953 vnet/devices/tap/tap.c \
954 vnet/devices/tap/tapv2_api.c
956 nobase_include_HEADERS += \
957 vnet/devices/tap/tap.h \
958 vnet/devices/tap/tapv2.api.h
960 API_FILES += vnet/devices/tap/tapv2.api
962 ########################################
964 ########################################
966 libvnet_la_SOURCES += \
967 vnet/session/session.c \
968 vnet/session/session_table.c \
969 vnet/session/session_rules_table.c \
970 vnet/session/session_lookup.c \
971 vnet/session/session_node.c \
972 vnet/session/transport.c \
973 vnet/session/application.c \
974 vnet/session/session_cli.c \
975 vnet/session/application_interface.c \
976 vnet/session/application_namespace.c \
977 vnet/session/segment_manager.c \
978 vnet/session/session_test.c \
979 vnet/session/session_api.c
981 nobase_include_HEADERS += \
982 vnet/session/session.h \
983 vnet/session/session_table.h \
984 vnet/session/session_rules_table.h \
985 vnet/session/stream_session.h \
986 vnet/session/session_lookup.h \
987 vnet/session/application.h \
988 vnet/session/transport.h \
989 vnet/session/transport_interface.h \
990 vnet/session/application_interface.h \
991 vnet/session/application_namespace.h \
992 vnet/session/session_debug.h \
993 vnet/session/segment_manager.h \
994 vnet/session/mma_template.h \
995 vnet/session/mma_template.c \
996 vnet/session/mma_16.h \
997 vnet/session/mma_40.h \
998 vnet/session/session.api.h
1000 API_FILES += vnet/session/session.api
1002 ########################################
1003 # session layer applications
1004 ########################################
1006 libvnet_la_SOURCES += \
1007 vnet/session-apps/echo_client.c \
1008 vnet/session-apps/echo_server.c \
1009 vnet/session-apps/http_server.c \
1010 vnet/session-apps/proxy.c
1012 nobase_include_HEADERS += \
1013 vnet/session-apps/echo_client.h \
1014 vnet/session-apps/proxy.h
1016 ########################################
1018 ########################################
1020 libvnet_la_SOURCES += vnet/tls/tls.c
1022 nobase_include_HEADERS += \
1025 ########################################
1026 # Linux packet interface
1027 ########################################
1029 libvnet_la_SOURCES += \
1030 vnet/devices/af_packet/af_packet.c \
1031 vnet/devices/af_packet/device.c \
1032 vnet/devices/af_packet/node.c \
1033 vnet/devices/af_packet/cli.c \
1034 vnet/devices/af_packet/af_packet_api.c
1036 nobase_include_HEADERS += \
1037 vnet/devices/af_packet/af_packet.h \
1038 vnet/devices/af_packet/af_packet.api.h
1040 API_FILES += vnet/devices/af_packet/af_packet.api
1042 ########################################
1044 ########################################
1046 libvnet_la_SOURCES += \
1047 vnet/devices/netmap/netmap.c \
1048 vnet/devices/netmap/device.c \
1049 vnet/devices/netmap/node.c \
1050 vnet/devices/netmap/cli.c \
1051 vnet/devices/netmap/netmap_api.c
1053 nobase_include_HEADERS += \
1054 vnet/devices/netmap/netmap.h \
1055 vnet/devices/netmap/netmap.api.h
1057 API_FILES += vnet/devices/netmap/netmap.api
1059 ########################################
1060 # Driver feature graph arc support
1061 ########################################
1063 libvnet_la_SOURCES += \
1064 vnet/feature/feature.c \
1065 vnet/feature/feature_api.c \
1066 vnet/feature/registration.c
1068 nobase_include_HEADERS += \
1069 vnet/feature/feature.h \
1070 vnet/feature/feature.api.h
1072 API_FILES += vnet/feature/feature.api
1074 ########################################
1075 # Unix kernel related
1076 ########################################
1078 # FIXME: vnet/unix/hgshm.c
1080 libvnet_la_SOURCES += \
1081 vnet/unix/gdb_funcs.c \
1083 vnet/unix/tap_api.c \
1084 vnet/unix/tapcli.c \
1087 nobase_include_HEADERS += \
1089 vnet/unix/tuntap.h \
1090 vnet/unix/tap.api.h \
1093 API_FILES += vnet/unix/tap.api
1095 ########################################
1097 ########################################
1099 libvnet_la_SOURCES += \
1101 vnet/fib/fib_test.c \
1102 vnet/fib/ip4_fib.c \
1103 vnet/fib/ip6_fib.c \
1104 vnet/fib/mpls_fib.c \
1105 vnet/fib/fib_table.c \
1106 vnet/fib/fib_walk.c \
1107 vnet/fib/fib_types.c \
1108 vnet/fib/fib_node.c \
1109 vnet/fib/fib_node_list.c \
1110 vnet/fib/fib_entry.c \
1111 vnet/fib/fib_entry_src.c \
1112 vnet/fib/fib_entry_src_rr.c \
1113 vnet/fib/fib_entry_src_interface.c \
1114 vnet/fib/fib_entry_src_interpose.c \
1115 vnet/fib/fib_entry_src_default_route.c \
1116 vnet/fib/fib_entry_src_special.c \
1117 vnet/fib/fib_entry_src_api.c \
1118 vnet/fib/fib_entry_src_adj.c \
1119 vnet/fib/fib_entry_src_mpls.c \
1120 vnet/fib/fib_entry_src_lisp.c \
1121 vnet/fib/fib_entry_cover.c \
1122 vnet/fib/fib_entry_delegate.c \
1123 vnet/fib/fib_path_list.c \
1124 vnet/fib/fib_path.c \
1125 vnet/fib/fib_path_ext.c \
1126 vnet/fib/fib_urpf_list.c \
1127 vnet/fib/fib_attached_export.c \
1128 vnet/fib/fib_api.c \
1131 nobase_include_HEADERS += \
1133 vnet/fib/fib_api.h \
1134 vnet/fib/ip4_fib.h \
1135 vnet/fib/ip6_fib.h \
1136 vnet/fib/fib_types.h \
1137 vnet/fib/fib_table.h \
1138 vnet/fib/fib_node.h \
1139 vnet/fib/fib_node_list.h \
1140 vnet/fib/fib_entry.h \
1141 vnet/fib/fib_entry_delegate.h
1143 ########################################
1145 ########################################
1147 libvnet_la_SOURCES += \
1148 vnet/adj/adj_nbr.c \
1149 vnet/adj/adj_glean.c \
1150 vnet/adj/adj_midchain.c \
1151 vnet/adj/adj_mcast.c \
1153 vnet/adj/adj_nsh.c \
1155 vnet/adj/rewrite.c \
1156 vnet/adj/adj_bfd.c \
1157 vnet/adj/adj_delegate.c
1159 nobase_include_HEADERS += \
1161 vnet/adj/adj_types.h \
1162 vnet/adj/adj_glean.h \
1163 vnet/adj/adj_nsh.h \
1164 vnet/adj/adj_nbr.h \
1167 ########################################
1168 # Data-Plane Objects
1169 ########################################
1171 libvnet_la_SOURCES += \
1173 vnet/dpo/drop_dpo.c \
1174 vnet/dpo/ip_null_dpo.c \
1175 vnet/dpo/ip6_ll_dpo.c \
1176 vnet/dpo/punt_dpo.c \
1177 vnet/dpo/receive_dpo.c \
1178 vnet/dpo/load_balance.c \
1179 vnet/dpo/load_balance_map.c \
1180 vnet/dpo/lookup_dpo.c \
1181 vnet/dpo/classify_dpo.c \
1182 vnet/dpo/replicate_dpo.c \
1183 vnet/dpo/interface_rx_dpo.c \
1184 vnet/dpo/interface_tx_dpo.c \
1185 vnet/dpo/mpls_disposition.c \
1186 vnet/dpo/mpls_label_dpo.c \
1187 vnet/dpo/l3_proxy_dpo.c \
1190 nobase_include_HEADERS += \
1191 vnet/dpo/load_balance.h \
1192 vnet/dpo/drop_dpo.h \
1193 vnet/dpo/lookup_dpo.h \
1194 vnet/dpo/punt_dpo.h \
1195 vnet/dpo/classify_dpo.h \
1196 vnet/dpo/receive_dpo.h \
1197 vnet/dpo/ip_null_dpo.h \
1198 vnet/dpo/replicate_dpo.h \
1201 ########################################
1203 ########################################
1205 libvnet_la_SOURCES += \
1206 vnet/mfib/mfib_test.c \
1207 vnet/mfib/mfib_forward.c \
1208 vnet/mfib/ip4_mfib.c \
1209 vnet/mfib/ip6_mfib.c \
1210 vnet/mfib/mfib_types.c \
1211 vnet/mfib/mfib_signal.c \
1212 vnet/mfib/mfib_itf.c \
1213 vnet/mfib/mfib_entry.c \
1214 vnet/mfib/mfib_table.c
1216 nobase_include_HEADERS += \
1217 vnet/mfib/ip4_mfib.h \
1218 vnet/mfib/mfib_types.h \
1219 vnet/mfib/mfib_table.h
1221 ########################################
1223 ########################################
1225 libvnet_la_SOURCES += \
1227 vnet/util/refcount.c \
1228 vnet/util/trajectory.c
1230 ########################################
1232 ########################################
1234 libvnet_la_SOURCES += \
1235 vnet/qos/qos_types.c \
1236 vnet/qos/qos_api.c \
1237 vnet/qos/qos_egress_map.c \
1238 vnet/qos/qos_record.c \
1241 API_FILES += vnet/qos/qos.api
1243 nobase_include_HEADERS += \
1246 ########################################
1248 ########################################
1250 libvnet_la_SOURCES += \
1251 vnet/bier/bier_bit_string.c \
1252 vnet/bier/bier_entry.c \
1253 vnet/bier/bier_fmask.c \
1254 vnet/bier/bier_fmask_db.c \
1255 vnet/bier/bier_input.c \
1256 vnet/bier/bier_lookup.c \
1257 vnet/bier/bier_output.c \
1258 vnet/bier/bier_table.c \
1259 vnet/bier/bier_types.c \
1260 vnet/bier/bier_test.c \
1261 vnet/bier/bier_api.c \
1262 vnet/bier/bier_drop.c \
1263 vnet/bier/bier_update.c \
1264 vnet/bier/bier_imp_node.c \
1265 vnet/bier/bier_imp.c \
1266 vnet/bier/bier_disp_entry.c \
1267 vnet/bier/bier_disp_lookup_node.c \
1268 vnet/bier/bier_disp_dispatch_node.c \
1269 vnet/bier/bier_disp_table.c \
1270 vnet/bier/bier_bift_table.c
1272 nobase_include_HEADERS += \
1273 vnet/bier/bier_types.h \
1274 vnet/bier/bier_entry.h \
1275 vnet/bier/bier_update.h \
1276 vnet/bier/bier.api.h \
1277 vnet/bier/bier_table.h
1279 API_FILES += vnet/bier/bier.api
1283 ###############################################################
1285 ###############################################################
1286 libvnet_avx2_la_SOURCES = $(libvnet_multiversioning_files)
1287 libvnet_avx2_la_CFLAGS = \
1288 $(AM_CFLAGS) @CPU_AVX2_FLAGS@ \
1289 -DCLIB_MULTIARCH_VARIANT=avx2
1290 noinst_LTLIBRARIES += libvnet_avx2.la
1291 libvnet_la_LIBADD += libvnet_avx2.la
1294 if CC_SUPPORTS_AVX512
1295 ###############################################################
1297 ###############################################################
1298 libvnet_avx512_la_SOURCES = $(libvnet_multiversioning_files)
1299 libvnet_avx512_la_CFLAGS = \
1300 $(AM_CFLAGS) @CPU_AVX512_FLAGS@ \
1301 -DCLIB_MULTIARCH_VARIANT=avx512
1302 noinst_LTLIBRARIES += libvnet_avx512.la
1303 libvnet_la_LIBADD += libvnet_avx512.la
1307 ########################################
1309 ########################################
1311 noinst_PROGRAMS += tcp_echo udp_echo
1313 TEST_APPS_LDADD = libvlibmemoryclient.la libsvm.la libvppinfra.la
1314 TEST_APPS_LDADD += -lpthread -lm -lrt
1316 tcp_echo_SOURCES = tests/vnet/session/tcp_echo.c
1317 tcp_echo_LDADD = $(TEST_APPS_LDADD)
1319 udp_echo_SOURCES = tests/vnet/session/udp_echo.c
1320 udp_echo_LDADD = $(TEST_APPS_LDADD)
1322 ########################################
1323 # Plugin client library
1324 ########################################
1326 nobase_include_HEADERS += \
1327 vnet/plugin/plugin.h
1330 vnet/unix/pcap2pg.c \
1333 pcap2pg_LDFLAGS = -static
1334 pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1336 pcap2cinit_SOURCES = \
1337 vnet/unix/pcap2cinit.c \
1340 pcap2cinit_LDFLAGS = -static
1341 pcap2cinit_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1343 noinst_PROGRAMS += pcap2pg pcap2cinit
1345 # vi:syntax=automake