1 # Copyright (c) 2018 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 add_definitions (-DWITH_LIBSSL=1)
15 include_directories(${OPENSSL_INCLUDE_DIR})
20 unset(VNET_MULTIARCH_SOURCES)
22 ##############################################################################
24 ##############################################################################
25 list(APPEND VNET_SOURCES
42 list(APPEND VNET_MULTIARCH_SOURCES
48 list(APPEND VNET_HEADERS
71 list(APPEND VNET_API_FILES interface.api)
73 ##############################################################################
75 ##############################################################################
76 list(APPEND VNET_SOURCES
83 list(APPEND VNET_MULTIARCH_SOURCES
87 list(APPEND VNET_HEADERS
93 list(APPEND VNET_API_FILES policer/policer.api)
95 ##############################################################################
97 ##############################################################################
98 list(APPEND VNET_SOURCES
106 list(APPEND VNET_MULTIARCH_SOURCES
112 list(APPEND VNET_HEADERS
116 list(APPEND VNET_API_FILES cop/cop.api)
118 ##############################################################################
119 # Layer 2 protocols go here
120 ##############################################################################
122 ##############################################################################
123 # Layer 2 protocol: Ethernet
124 ##############################################################################
125 list(APPEND VNET_SOURCES
126 ethernet/ethernet_types_api.c
130 ethernet/mac_address.c
134 ethernet/p2p_ethernet.c
135 ethernet/p2p_ethernet_input.c
136 ethernet/p2p_ethernet_api.c
139 list(APPEND VNET_MULTIARCH_SOURCES
141 ethernet/p2p_ethernet_input.c
144 list(APPEND VNET_HEADERS
147 ethernet/mac_address.h
151 ethernet/p2p_ethernet.h
154 list(APPEND VNET_API_FILES ethernet/p2p_ethernet.api)
156 ##############################################################################
157 # Layer 2 protocol: Ethernet bridging
158 ##############################################################################
159 list(APPEND VNET_SOURCES
165 l2/l2_input_classify.c
166 l2/l2_output_classify.c
176 l2/l2_in_out_feat_arc.c
184 list(APPEND VNET_MULTIARCH_SOURCES
190 l2/l2_in_out_feat_arc.c
191 l2/l2_input_classify.c
193 l2/l2_output_classify.c
203 list(APPEND VNET_HEADERS
220 list(APPEND VNET_API_FILES l2/l2.api)
222 ##############################################################################
223 # Layer 2 protocol: SRP
224 ##############################################################################
225 list(APPEND VNET_SOURCES
232 list(APPEND VNET_HEADERS
237 ##############################################################################
238 # Layer 2 protocol: PPP
239 ##############################################################################
240 list(APPEND VNET_SOURCES
246 list(APPEND VNET_HEADERS
252 ##############################################################################
253 # Layer 2 protocol: HDLC
254 ##############################################################################
255 list(APPEND VNET_SOURCES
261 list(APPEND VNET_HEADERS
267 ##############################################################################
268 # Layer 2 protocol: LLC
269 ##############################################################################
270 list(APPEND VNET_SOURCES
276 list(APPEND VNET_HEADERS
280 ##############################################################################
281 # Layer 2 protocol: SNAP
282 ##############################################################################
283 list(APPEND VNET_SOURCES
289 list(APPEND VNET_HEADERS
293 ##############################################################################
295 ##############################################################################
296 list(APPEND VNET_SOURCES
303 list(APPEND VNET_MULTIARCH_SOURCES
307 list(APPEND VNET_HEADERS
310 vxlan/vxlan_error.def
313 list(APPEND VNET_MULTIARCH_SOURCES vxlan/decap.c)
315 list(APPEND VNET_API_FILES vxlan/vxlan.api)
317 ##############################################################################
319 ##############################################################################
320 list(APPEND VNET_SOURCES
327 list(APPEND VNET_MULTIARCH_SOURCES
332 list(APPEND VNET_HEADERS
334 geneve/geneve_packet.h
335 geneve/geneve_error.def
338 list(APPEND VNET_API_FILES geneve/geneve.api)
340 ##############################################################################
342 ##############################################################################
343 list(APPEND VNET_SOURCES
350 list(APPEND VNET_HEADERS
354 list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c bonding/device.c)
355 list(APPEND VNET_API_FILES bonding/bond.api)
357 ##############################################################################
359 ##############################################################################
360 list(APPEND VNET_SOURCES
368 list(APPEND VNET_HEADERS
373 list(APPEND VNET_API_FILES lldp/lldp.api)
375 ##############################################################################
376 # Layer 2/3 "classify"
377 ##############################################################################
378 list(APPEND VNET_SOURCES
379 classify/vnet_classify.c
380 classify/ip_classify.c
381 classify/in_out_acl.c
382 classify/policer_classify.c
383 classify/flow_classify.c
384 classify/flow_classify_node.c
385 classify/vnet_classify.h
386 classify/classify_api.c
389 list(APPEND VNET_MULTIARCH_SOURCES
390 classify/ip_classify.c
391 classify/flow_classify_node.c
394 list(APPEND VNET_HEADERS
395 classify/vnet_classify.h
396 classify/in_out_acl.h
397 classify/policer_classify.h
398 classify/flow_classify.h
401 list(APPEND VNET_API_FILES classify/classify.api)
403 ##############################################################################
404 # Layer 3 protocols go here
405 ##############################################################################
407 ##############################################################################
408 # Layer 3 protocol: IP v4/v6
409 ##############################################################################
410 list(APPEND VNET_SOURCES
423 ip/ip4_source_and_port_range_check.c
424 ip/ip4_source_check.c
450 list(APPEND VNET_MULTIARCH_SOURCES
451 ip/ip4_source_check.c
462 list(APPEND VNET_HEADERS
475 ip/ip6_hop_by_hop_packet.h
480 ip/ip_source_and_port_range_check.h
489 list(APPEND VNET_API_FILES
495 list(APPEND VNET_MULTIARCH_SOURCES
501 ##############################################################################
503 ##############################################################################
504 list(APPEND VNET_SOURCES
508 list(APPEND VNET_HEADERS
509 ethernet/arp_packet.h
513 ##############################################################################
514 # Bidirectional Forwarding Detection
515 ##############################################################################
517 list(APPEND VNET_HEADERS
524 list(APPEND VNET_SOURCES
533 list(APPEND VNET_API_FILES bfd/bfd.api)
535 ##############################################################################
537 ##############################################################################
539 list(APPEND VNET_SOURCES
545 list(APPEND VNET_HEADERS
549 ##############################################################################
550 # Layer 3 protocol: IPSec
551 ##############################################################################
552 list(APPEND VNET_SOURCES
562 ipsec/ipsec_spd_policy.c
571 list(APPEND VNET_MULTIARCH_SOURCES
581 list(APPEND VNET_API_FILES ipsec/ipsec.api)
583 list(APPEND VNET_SOURCES
587 list(APPEND VNET_HEADERS
590 ipsec/ipsec_spd_policy.h
597 ##############################################################################
598 # Layer 3 protocol: osi
599 ##############################################################################
600 list(APPEND VNET_SOURCES
606 list(APPEND VNET_HEADERS
610 ##############################################################################
611 # Layer 4 protocol: tcp
612 ##############################################################################
613 list(APPEND VNET_SOURCES
617 tcp/tcp_syn_filter4.c
625 list(APPEND VNET_MULTIARCH_SOURCES
628 tcp/tcp_syn_filter4.c
631 list(APPEND VNET_HEADERS
639 list(APPEND VNET_API_FILES tcp/tcp.api)
641 ##############################################################################
642 # Layer 4 protocol: udp
643 ##############################################################################
644 list(APPEND VNET_SOURCES
655 list(APPEND VNET_MULTIARCH_SOURCES
660 list(APPEND VNET_HEADERS
666 list(APPEND VNET_API_FILES udp/udp.api)
668 ##############################################################################
669 # Layer 4 protocol: sctp
670 ##############################################################################
671 list(APPEND VNET_SOURCES
677 sctp/sctp_output_node.c
681 list(APPEND VNET_MULTIARCH_SOURCES
682 sctp/sctp_output_node.c
686 list(APPEND VNET_HEADERS
693 list(APPEND VNET_API_FILES sctp/sctp.api)
695 ##############################################################################
696 # Tunnel protocol: gre
697 ##############################################################################
698 list(APPEND VNET_SOURCES
706 list(APPEND VNET_MULTIARCH_SOURCES
711 list(APPEND VNET_HEADERS
717 list(APPEND VNET_API_FILES gre/gre.api)
719 ##############################################################################
720 # Tunnel protocol: ipip
721 ##############################################################################
722 list(APPEND VNET_SOURCES
730 list(APPEND VNET_MULTIARCH_SOURCES
734 list(APPEND VNET_HEADERS
738 list(APPEND VNET_API_FILES ipip/ipip.api)
740 ##############################################################################
741 # Tunnel protocol: l2tpv3
742 ##############################################################################
743 list(APPEND VNET_SOURCES
751 list(APPEND VNET_MULTIARCH_SOURCES
756 list(APPEND VNET_HEADERS
761 list(APPEND VNET_API_FILES l2tp/l2tp.api)
763 ##############################################################################
764 # Tunnel protocol: gre+mpls
765 ##############################################################################
766 list(APPEND VNET_SOURCES
778 list(APPEND VNET_MULTIARCH_SOURCES
785 list(APPEND VNET_HEADERS
793 list(APPEND VNET_API_FILES mpls/mpls.api)
795 ##############################################################################
796 # Tunnel protocol: vxlan-gbp
797 ##############################################################################
798 list(APPEND VNET_SOURCES
801 vxlan-gbp/vxlan_gbp_api.c
802 vxlan-gbp/vxlan_gbp.c
803 vxlan-gbp/vxlan_gbp_packet.c
806 list (APPEND VNET_MULTIARCH_SOURCES
811 list(APPEND VNET_HEADERS
812 vxlan-gbp/vxlan_gbp.h
813 vxlan-gbp/vxlan_gbp_packet.h
814 vxlan-gbp/vxlan_gbp_error.def
817 list(APPEND VNET_API_FILES vxlan-gbp/vxlan_gbp.api)
819 ##############################################################################
820 # Tunnel protocol: vxlan-gpe
821 ##############################################################################
823 list(APPEND VNET_SOURCES
824 vxlan-gpe/vxlan_gpe.c
827 vxlan-gpe/vxlan_gpe_api.c
830 list (APPEND VNET_MULTIARCH_SOURCES
834 list(APPEND VNET_HEADERS
835 vxlan-gpe/vxlan_gpe.h
836 vxlan-gpe/vxlan_gpe_packet.h
837 vxlan-gpe/vxlan_gpe_error.def
840 list(APPEND VNET_API_FILES vxlan-gpe/vxlan_gpe.api)
842 ##############################################################################
843 # Tunnel protocol: ipsec+gre
844 ##############################################################################
845 list(APPEND VNET_SOURCES
846 ipsec-gre/ipsec_gre.c
848 ipsec-gre/interface.c
849 ipsec-gre/ipsec_gre_api.c
852 list(APPEND VNET_MULTIARCH_SOURCES
854 ipsec-gre/ipsec_gre.c
857 list(APPEND VNET_HEADERS
858 ipsec-gre/ipsec_gre.h
862 list(APPEND VNET_API_FILES ipsec-gre/ipsec_gre.api)
864 ##############################################################################
865 # LISP control plane: lisp-cp
866 ##############################################################################
868 list(APPEND VNET_SOURCES
870 lisp-cp/lisp_cp_dpo.c
872 lisp-cp/gid_dictionary.c
873 lisp-cp/lisp_msg_serdes.c
881 list(APPEND VNET_HEADERS
884 lisp-cp/gid_dictionary.h
885 lisp-cp/lisp_cp_messages.h
886 lisp-cp/lisp_msg_serdes.h
890 list(APPEND VNET_API_FILES lisp-cp/lisp.api)
891 list(APPEND VNET_API_FILES lisp-cp/one.api)
893 ##############################################################################
894 # Tunnel protocol: lisp-gpe
895 ##############################################################################
897 list(APPEND VNET_SOURCES
899 lisp-gpe/lisp_gpe_sub_interface.c
900 lisp-gpe/lisp_gpe_adjacency.c
901 lisp-gpe/lisp_gpe_tunnel.c
902 lisp-gpe/lisp_gpe_fwd_entry.c
903 lisp-gpe/lisp_gpe_tenant.c
906 lisp-gpe/lisp_gpe_api.c
909 list(APPEND VNET_HEADERS
911 lisp-gpe/lisp_gpe_fwd_entry.h
912 lisp-gpe/lisp_gpe_tenant.h
913 lisp-gpe/lisp_gpe_packet.h
914 lisp-gpe/lisp_gpe_error.def
917 list(APPEND VNET_API_FILES lisp-gpe/lisp_gpe.api)
919 ##############################################################################
921 ##############################################################################
922 list(APPEND VNET_SOURCES
924 dhcp/dhcp_client_detect.c
925 dhcp/dhcp6_client_common_dp.c
926 dhcp/dhcp6_pd_client_dp.c
927 dhcp/dhcp6_pd_client_cp.c
928 dhcp/dhcp6_ia_na_client_dp.c
929 dhcp/dhcp6_ia_na_client_cp.c
933 list(APPEND VNET_MULTIARCH_SOURCES
934 dhcp/dhcp_client_detect.c
937 list(APPEND VNET_HEADERS
939 dhcp/dhcp6_client_common_dp.h
940 dhcp/dhcp6_pd_client_dp.h
941 dhcp/dhcp6_ia_na_client_dp.h
944 list(APPEND VNET_API_FILES
946 dhcp/dhcp6_pd_client_cp.api
947 dhcp/dhcp6_ia_na_client_cp.api
950 ##############################################################################
952 ##############################################################################
953 list(APPEND VNET_SOURCES
954 dhcp/dhcp6_proxy_node.c
955 dhcp/dhcp4_proxy_node.c
959 list(APPEND VNET_HEADERS
963 dhcp/dhcp6_proxy_error.def
964 dhcp/dhcp4_proxy_error.def
967 ##############################################################################
968 # ipv6 segment routing
969 ##############################################################################
971 list(APPEND VNET_SOURCES
974 srv6/sr_policy_rewrite.c
979 list(APPEND VNET_HEADERS
984 list(APPEND VNET_API_FILES srv6/sr.api)
986 ##############################################################################
987 # mpls segment routing
988 ##############################################################################
990 list(APPEND VNET_SOURCES
991 srmpls/sr_mpls_policy.c
992 srmpls/sr_mpls_steering.c
996 list(APPEND VNET_HEADERS
1000 list(APPEND VNET_API_FILES srmpls/sr_mpls.api)
1002 ##############################################################################
1003 # IPFIX / netflow v10
1004 ##############################################################################
1005 list(APPEND VNET_SOURCES
1006 ipfix-export/flow_report.c
1007 ipfix-export/flow_api.c
1010 list(APPEND VNET_HEADERS
1011 ipfix-export/flow_report.h
1012 ipfix-export/ipfix_info_elements.h
1013 ipfix-export/ipfix_packet.h
1016 list(APPEND VNET_API_FILES ipfix-export/ipfix_export.api)
1018 ##############################################################################
1019 # IPFIX classify code
1020 ##############################################################################
1022 list(APPEND VNET_SOURCES
1023 ipfix-export/flow_report_classify.c
1026 list(APPEND VNET_HEADERS
1027 ipfix-export/flow_report_classify.h
1030 ##############################################################################
1032 ##############################################################################
1034 list(APPEND VNET_SOURCES
1035 lawful-intercept/lawful_intercept.c
1036 lawful-intercept/node.c
1039 list(APPEND VNET_MULTIARCH_SOURCES
1040 lawful-intercept/node.c
1043 list(APPEND VNET_HEADERS
1044 lawful-intercept/lawful_intercept.h
1047 ##############################################################################
1048 # SPAN (port mirroring)
1049 ##############################################################################
1051 list(APPEND VNET_SOURCES
1057 list(APPEND VNET_MULTIARCH_SOURCES
1061 list(APPEND VNET_HEADERS
1065 list(APPEND VNET_API_FILES span/span.api)
1067 ##############################################################################
1069 ##############################################################################
1070 list(APPEND VNET_SOURCES
1076 dns/resolver_process.c
1079 list(APPEND VNET_HEADERS
1083 list(APPEND VNET_API_FILES dns/dns.api)
1085 ##############################################################################
1087 ##############################################################################
1089 list(APPEND VNET_SOURCES
1099 list(APPEND VNET_HEADERS
1104 list(APPEND VNET_API_FILES pg/pg.api)
1106 ##############################################################################
1108 ##############################################################################
1110 list(APPEND VNET_SOURCES
1111 devices/virtio/device.c
1112 devices/virtio/node.c
1113 devices/virtio/vhost_user.c
1114 devices/virtio/vhost_user_input.c
1115 devices/virtio/vhost_user_output.c
1116 devices/virtio/vhost_user_api.c
1117 devices/virtio/virtio.c
1118 devices/virtio/virtio_api.c
1119 devices/virtio/cli.c
1120 devices/virtio/pci.c
1123 list(APPEND VNET_HEADERS
1124 devices/virtio/pci.h
1125 devices/virtio/virtio.h
1126 devices/virtio/vhost_user.h
1129 list(APPEND VNET_MULTIARCH_SOURCES
1130 devices/virtio/vhost_user_input.c
1131 devices/virtio/vhost_user_output.c
1132 devices/netmap/node.c
1133 devices/virtio/node.c
1134 devices/af_packet/node.c
1135 devices/virtio/device.c
1138 list(APPEND VNET_API_FILES
1139 devices/virtio/vhost_user.api
1140 devices/virtio/virtio.api
1143 ##############################################################################
1144 # tap interface (with virtio backend)
1145 ##############################################################################
1147 list(APPEND VNET_SOURCES
1150 devices/tap/tapv2_api.c
1153 list(APPEND VNET_HEADERS
1157 list(APPEND VNET_API_FILES devices/tap/tapv2.api)
1159 ##############################################################################
1160 # tap interface (with virtio backend)
1161 ##############################################################################
1163 list(APPEND VNET_SOURCES
1164 devices/pipe/pipe_api.c
1168 list(APPEND VNET_HEADERS
1172 list(APPEND VNET_API_FILES devices/pipe/pipe.api)
1174 ##############################################################################
1175 # session managmeent
1176 ##############################################################################
1178 list(APPEND VNET_SOURCES
1180 session/session_table.c
1181 session/session_rules_table.c
1182 session/session_lookup.c
1183 session/session_node.c
1185 session/application.c
1186 session/application_worker.c
1187 session/session_cli.c
1188 session/application_interface.c
1189 session/application_local.c
1190 session/application_namespace.c
1191 session/segment_manager.c
1192 session/session_api.c
1195 list(APPEND VNET_HEADERS
1197 session/session_table.h
1198 session/session_rules_table.h
1199 session/session_types.h
1200 session/session_lookup.h
1201 session/application.h
1203 session/transport_types.h
1204 session/application_interface.h
1205 session/application_local.h
1206 session/application_namespace.h
1207 session/session_debug.h
1208 session/segment_manager.h
1209 session/mma_template.h
1210 session/mma_template.c
1215 list(APPEND VNET_API_FILES session/session.api)
1217 ##############################################################################
1218 # session layer applications
1219 ##############################################################################
1221 list(APPEND VNET_SOURCES
1222 session-apps/echo_client.c
1223 session-apps/echo_server.c
1224 session-apps/http_server.c
1225 session-apps/proxy.c
1228 list(APPEND VNET_HEADERS
1229 session-apps/echo_client.h
1230 session-apps/proxy.h
1233 ##############################################################################
1235 ##############################################################################
1237 list(APPEND VNET_SOURCES
1241 list(APPEND VNET_HEADERS
1246 ##############################################################################
1247 # Linux packet interface
1248 ##############################################################################
1250 list(APPEND VNET_SOURCES
1251 devices/af_packet/af_packet.c
1252 devices/af_packet/device.c
1253 devices/af_packet/node.c
1254 devices/af_packet/cli.c
1255 devices/af_packet/af_packet_api.c
1258 list(APPEND VNET_MULTIARCH_SOURCES
1259 devices/netmap/device.c
1260 devices/af_packet/device.c
1263 list(APPEND VNET_HEADERS
1264 devices/af_packet/af_packet.h
1267 list(APPEND VNET_API_FILES devices/af_packet/af_packet.api)
1269 ##############################################################################
1271 ##############################################################################
1273 list(APPEND VNET_SOURCES
1274 devices/netmap/netmap.c
1275 devices/netmap/device.c
1276 devices/netmap/node.c
1277 devices/netmap/cli.c
1278 devices/netmap/netmap_api.c
1281 list(APPEND VNET_HEADERS
1282 devices/netmap/netmap.h
1285 list(APPEND VNET_API_FILES devices/netmap/netmap.api)
1287 ##############################################################################
1288 # Driver feature graph arc support
1289 ##############################################################################
1291 list(APPEND VNET_SOURCES
1293 feature/feature_api.c
1294 feature/registration.c
1297 list(APPEND VNET_HEADERS
1301 list(APPEND VNET_API_FILES feature/feature.api)
1303 ##############################################################################
1304 # Unix kernel related
1305 ##############################################################################
1307 # FIXME: unix/hgshm.c
1309 list(APPEND VNET_SOURCES
1314 list(APPEND VNET_HEADERS
1318 ##############################################################################
1320 ##############################################################################
1322 list(APPEND VNET_SOURCES
1334 fib/fib_entry_src_rr.c
1335 fib/fib_entry_src_interface.c
1336 fib/fib_entry_src_interpose.c
1337 fib/fib_entry_src_default_route.c
1338 fib/fib_entry_src_special.c
1339 fib/fib_entry_src_api.c
1340 fib/fib_entry_src_adj.c
1341 fib/fib_entry_src_mpls.c
1342 fib/fib_entry_src_lisp.c
1343 fib/fib_entry_cover.c
1344 fib/fib_entry_delegate.c
1349 fib/fib_attached_export.c
1354 list(APPEND VNET_HEADERS
1364 fib/fib_entry_delegate.h
1367 ##############################################################################
1369 ##############################################################################
1371 list(APPEND VNET_SOURCES
1375 adj/adj_midchain_delegate.c
1385 list(APPEND VNET_MULTIARCH_SOURCES
1390 list(APPEND VNET_HEADERS
1399 ##############################################################################
1400 # Data-Plane Objects
1401 ##############################################################################
1403 list(APPEND VNET_SOURCES
1411 dpo/load_balance_map.c
1415 dpo/interface_rx_dpo.c
1416 dpo/interface_tx_dpo.c
1417 dpo/mpls_disposition.c
1418 dpo/mpls_label_dpo.c
1423 list(APPEND VNET_MULTIARCH_SOURCES
1425 dpo/mpls_disposition.c
1427 dpo/mpls_label_dpo.c
1428 dpo/interface_rx_dpo.c
1431 list(APPEND VNET_HEADERS
1443 ##############################################################################
1445 ##############################################################################
1447 list(APPEND VNET_SOURCES
1456 mfib/mfib_entry_cover.c
1457 mfib/mfib_entry_delegate.c
1458 mfib/mfib_entry_src.c
1459 mfib/mfib_entry_src_rr.c
1463 list(APPEND VNET_MULTIARCH_SOURCES
1467 list(APPEND VNET_HEADERS
1473 ##############################################################################
1475 ##############################################################################
1477 list(APPEND VNET_SOURCES
1484 list(APPEND VNET_HEADERS
1488 ##############################################################################
1490 ##############################################################################
1492 list(APPEND VNET_SOURCES
1495 qos/qos_egress_map.c
1497 qos/qos_record_node.c
1502 list(APPEND VNET_MULTIARCH_SOURCES
1503 qos/qos_record_node.c
1507 list(APPEND VNET_API_FILES qos/qos.api)
1509 ##############################################################################
1511 ##############################################################################
1513 list(APPEND VNET_SOURCES
1514 bier/bier_bit_string.c
1517 bier/bier_fmask_db.c
1526 bier/bier_imp_node.c
1528 bier/bier_disp_entry.c
1529 bier/bier_disp_lookup_node.c
1530 bier/bier_disp_dispatch_node.c
1531 bier/bier_disp_table.c
1532 bier/bier_bift_table.c
1535 list(APPEND VNET_MULTIARCH_SOURCES
1536 bier/bier_disp_dispatch_node.c
1537 bier/bier_disp_lookup_node.c
1538 bier/bier_imp_node.c
1541 list(APPEND VNET_HEADERS
1548 list(APPEND VNET_API_FILES bier/bier.api)
1550 ##############################################################################
1552 ##############################################################################
1554 list (APPEND VNET_SOURCES
1560 list(APPEND VNET_HEADERS
1565 list(APPEND VNET_API_FILES syslog/syslog.api)
1567 ##############################################################################
1569 ##############################################################################
1571 add_vpp_library(vnet
1572 SOURCES ${VNET_SOURCES}
1573 MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES}
1574 INSTALL_HEADERS ${VNET_HEADERS}
1575 API_FILES ${VNET_API_FILES}
1576 LINK_LIBRARIES vppinfra svm vlib ${OPENSSL_LIBRARIES}
1580 ##############################################################################
1582 ##############################################################################
1584 option(VPP_BUILD_SESSION_ECHO_APPS "Build session echo apps." ON)
1585 if(VPP_BUILD_SESSION_ECHO_APPS)
1586 add_vpp_executable(tcp_echo
1587 SOURCES ../tests/vnet/session/tcp_echo.c
1588 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1592 add_vpp_executable(quic_echo
1593 SOURCES ../tests/vnet/session/quic_echo.c
1594 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1598 add_vpp_executable(udp_echo
1599 SOURCES ../tests/vnet/session/udp_echo.c
1600 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1604 endif(VPP_BUILD_SESSION_ECHO_APPS)
1606 ##############################################################################