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
72 list(APPEND VNET_API_FILES
77 ##############################################################################
79 ##############################################################################
80 list(APPEND VNET_SOURCES
87 list(APPEND VNET_MULTIARCH_SOURCES
91 list(APPEND VNET_HEADERS
97 list(APPEND VNET_API_FILES policer/policer.api)
99 ##############################################################################
101 ##############################################################################
102 list(APPEND VNET_SOURCES
110 list(APPEND VNET_MULTIARCH_SOURCES
116 list(APPEND VNET_HEADERS
120 list(APPEND VNET_API_FILES cop/cop.api)
122 ##############################################################################
123 # Layer 2 protocols go here
124 ##############################################################################
126 ##############################################################################
127 # Layer 2 protocol: Ethernet
128 ##############################################################################
129 list(APPEND VNET_SOURCES
130 ethernet/ethernet_types_api.c
134 ethernet/mac_address.c
138 ethernet/p2p_ethernet.c
139 ethernet/p2p_ethernet_input.c
140 ethernet/p2p_ethernet_api.c
143 list(APPEND VNET_MULTIARCH_SOURCES
145 ethernet/p2p_ethernet_input.c
148 list(APPEND VNET_HEADERS
151 ethernet/mac_address.h
155 ethernet/p2p_ethernet.h
158 list(APPEND VNET_API_FILES ethernet/p2p_ethernet.api)
160 ##############################################################################
161 # Layer 2 protocol: Ethernet bridging
162 ##############################################################################
163 list(APPEND VNET_SOURCES
169 l2/l2_input_classify.c
170 l2/l2_output_classify.c
180 l2/l2_in_out_feat_arc.c
188 list(APPEND VNET_MULTIARCH_SOURCES
194 l2/l2_in_out_feat_arc.c
195 l2/l2_input_classify.c
197 l2/l2_output_classify.c
207 list(APPEND VNET_HEADERS
224 list(APPEND VNET_API_FILES l2/l2.api)
226 ##############################################################################
227 # Layer 2 protocol: SRP
228 ##############################################################################
229 list(APPEND VNET_SOURCES
236 list(APPEND VNET_HEADERS
241 ##############################################################################
242 # Layer 2 protocol: PPP
243 ##############################################################################
244 list(APPEND VNET_SOURCES
250 list(APPEND VNET_HEADERS
256 ##############################################################################
257 # Layer 2 protocol: HDLC
258 ##############################################################################
259 list(APPEND VNET_SOURCES
265 list(APPEND VNET_HEADERS
271 ##############################################################################
272 # Layer 2 protocol: LLC
273 ##############################################################################
274 list(APPEND VNET_SOURCES
280 list(APPEND VNET_HEADERS
284 ##############################################################################
285 # Layer 2 protocol: SNAP
286 ##############################################################################
287 list(APPEND VNET_SOURCES
293 list(APPEND VNET_HEADERS
297 ##############################################################################
299 ##############################################################################
300 list(APPEND VNET_SOURCES
307 list(APPEND VNET_MULTIARCH_SOURCES
311 list(APPEND VNET_HEADERS
314 vxlan/vxlan_error.def
317 list(APPEND VNET_MULTIARCH_SOURCES vxlan/decap.c)
319 list(APPEND VNET_API_FILES vxlan/vxlan.api)
321 ##############################################################################
323 ##############################################################################
324 list(APPEND VNET_SOURCES
331 list(APPEND VNET_MULTIARCH_SOURCES
336 list(APPEND VNET_HEADERS
338 geneve/geneve_packet.h
339 geneve/geneve_error.def
342 list(APPEND VNET_API_FILES geneve/geneve.api)
344 ##############################################################################
346 ##############################################################################
347 list(APPEND VNET_SOURCES
354 list(APPEND VNET_HEADERS
358 list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c bonding/device.c)
359 list(APPEND VNET_API_FILES bonding/bond.api)
361 ##############################################################################
363 ##############################################################################
364 list(APPEND VNET_SOURCES
372 list(APPEND VNET_HEADERS
377 list(APPEND VNET_API_FILES lldp/lldp.api)
379 ##############################################################################
380 # Layer 2/3 "classify"
381 ##############################################################################
382 list(APPEND VNET_SOURCES
383 classify/vnet_classify.c
384 classify/ip_classify.c
385 classify/in_out_acl.c
386 classify/policer_classify.c
387 classify/flow_classify.c
388 classify/flow_classify_node.c
389 classify/vnet_classify.h
390 classify/classify_api.c
393 list(APPEND VNET_MULTIARCH_SOURCES
394 classify/ip_classify.c
395 classify/flow_classify_node.c
398 list(APPEND VNET_HEADERS
399 classify/vnet_classify.h
400 classify/in_out_acl.h
401 classify/policer_classify.h
402 classify/flow_classify.h
405 list(APPEND VNET_API_FILES classify/classify.api)
407 ##############################################################################
408 # Layer 3 protocols go here
409 ##############################################################################
411 ##############################################################################
412 # Layer 3 protocol: IP v4/v6
413 ##############################################################################
414 list(APPEND VNET_SOURCES
427 ip/ip4_source_and_port_range_check.c
428 ip/ip4_source_check.c
456 list(APPEND VNET_MULTIARCH_SOURCES
457 ip/ip4_source_check.c
468 list(APPEND VNET_HEADERS
481 ip/ip6_hop_by_hop_packet.h
486 ip/ip_source_and_port_range_check.h
495 list(APPEND VNET_API_FILES
501 list(APPEND VNET_MULTIARCH_SOURCES
507 ##############################################################################
509 ##############################################################################
510 list(APPEND VNET_SOURCES
514 list(APPEND VNET_HEADERS
515 ethernet/arp_packet.h
519 ##############################################################################
520 # Bidirectional Forwarding Detection
521 ##############################################################################
523 list(APPEND VNET_HEADERS
530 list(APPEND VNET_SOURCES
539 list(APPEND VNET_API_FILES bfd/bfd.api)
541 ##############################################################################
543 ##############################################################################
545 list(APPEND VNET_SOURCES
551 list(APPEND VNET_HEADERS
555 ##############################################################################
556 # Layer 3 protocol: IPSec
557 ##############################################################################
558 list(APPEND VNET_SOURCES
568 ipsec/ipsec_spd_policy.c
577 list(APPEND VNET_MULTIARCH_SOURCES
587 list(APPEND VNET_API_FILES ipsec/ipsec.api)
589 list(APPEND VNET_SOURCES
593 list(APPEND VNET_HEADERS
596 ipsec/ipsec_spd_policy.h
604 ##############################################################################
605 # Layer 3 protocol: osi
606 ##############################################################################
607 list(APPEND VNET_SOURCES
613 list(APPEND VNET_HEADERS
617 ##############################################################################
618 # Layer 4 protocol: tcp
619 ##############################################################################
620 list(APPEND VNET_SOURCES
624 tcp/tcp_syn_filter4.c
632 list(APPEND VNET_MULTIARCH_SOURCES
635 tcp/tcp_syn_filter4.c
638 list(APPEND VNET_HEADERS
646 list(APPEND VNET_API_FILES tcp/tcp.api)
648 ##############################################################################
649 # Layer 4 protocol: udp
650 ##############################################################################
651 list(APPEND VNET_SOURCES
662 list(APPEND VNET_MULTIARCH_SOURCES
667 list(APPEND VNET_HEADERS
673 list(APPEND VNET_API_FILES udp/udp.api)
675 ##############################################################################
676 # Layer 4 protocol: sctp
677 ##############################################################################
678 list(APPEND VNET_SOURCES
684 sctp/sctp_output_node.c
688 list(APPEND VNET_MULTIARCH_SOURCES
689 sctp/sctp_output_node.c
693 list(APPEND VNET_HEADERS
700 list(APPEND VNET_API_FILES sctp/sctp.api)
702 ##############################################################################
703 # Tunnel protocol: gre
704 ##############################################################################
705 list(APPEND VNET_SOURCES
713 list(APPEND VNET_MULTIARCH_SOURCES
718 list(APPEND VNET_HEADERS
724 list(APPEND VNET_API_FILES gre/gre.api)
726 ##############################################################################
727 # Tunnel protocol: ipip
728 ##############################################################################
729 list(APPEND VNET_SOURCES
737 list(APPEND VNET_MULTIARCH_SOURCES
741 list(APPEND VNET_HEADERS
745 list(APPEND VNET_API_FILES ipip/ipip.api)
747 ##############################################################################
748 # Tunnel protocol: l2tpv3
749 ##############################################################################
750 list(APPEND VNET_SOURCES
758 list(APPEND VNET_MULTIARCH_SOURCES
763 list(APPEND VNET_HEADERS
768 list(APPEND VNET_API_FILES l2tp/l2tp.api)
770 ##############################################################################
771 # Tunnel protocol: gre+mpls
772 ##############################################################################
773 list(APPEND VNET_SOURCES
785 list(APPEND VNET_MULTIARCH_SOURCES
792 list(APPEND VNET_HEADERS
800 list(APPEND VNET_API_FILES mpls/mpls.api)
802 ##############################################################################
803 # Tunnel protocol: vxlan-gbp
804 ##############################################################################
805 list(APPEND VNET_SOURCES
808 vxlan-gbp/vxlan_gbp_api.c
809 vxlan-gbp/vxlan_gbp.c
810 vxlan-gbp/vxlan_gbp_packet.c
813 list (APPEND VNET_MULTIARCH_SOURCES
818 list(APPEND VNET_HEADERS
819 vxlan-gbp/vxlan_gbp.h
820 vxlan-gbp/vxlan_gbp_packet.h
821 vxlan-gbp/vxlan_gbp_error.def
824 list(APPEND VNET_API_FILES vxlan-gbp/vxlan_gbp.api)
826 ##############################################################################
827 # Tunnel protocol: vxlan-gpe
828 ##############################################################################
830 list(APPEND VNET_SOURCES
831 vxlan-gpe/vxlan_gpe.c
834 vxlan-gpe/vxlan_gpe_api.c
837 list (APPEND VNET_MULTIARCH_SOURCES
841 list(APPEND VNET_HEADERS
842 vxlan-gpe/vxlan_gpe.h
843 vxlan-gpe/vxlan_gpe_packet.h
844 vxlan-gpe/vxlan_gpe_error.def
847 list(APPEND VNET_API_FILES vxlan-gpe/vxlan_gpe.api)
849 ##############################################################################
850 # Tunnel protocol: ipsec+gre
851 ##############################################################################
852 list(APPEND VNET_SOURCES
853 ipsec-gre/ipsec_gre.c
855 ipsec-gre/interface.c
856 ipsec-gre/ipsec_gre_api.c
859 list(APPEND VNET_MULTIARCH_SOURCES
861 ipsec-gre/ipsec_gre.c
864 list(APPEND VNET_HEADERS
865 ipsec-gre/ipsec_gre.h
869 list(APPEND VNET_API_FILES ipsec-gre/ipsec_gre.api)
871 ##############################################################################
872 # LISP control plane: lisp-cp
873 ##############################################################################
875 list(APPEND VNET_SOURCES
877 lisp-cp/lisp_cp_dpo.c
879 lisp-cp/gid_dictionary.c
880 lisp-cp/lisp_msg_serdes.c
888 list(APPEND VNET_HEADERS
891 lisp-cp/gid_dictionary.h
892 lisp-cp/lisp_cp_messages.h
893 lisp-cp/lisp_msg_serdes.h
897 list(APPEND VNET_API_FILES lisp-cp/lisp.api)
898 list(APPEND VNET_API_FILES lisp-cp/one.api)
900 ##############################################################################
901 # Tunnel protocol: lisp-gpe
902 ##############################################################################
904 list(APPEND VNET_SOURCES
906 lisp-gpe/lisp_gpe_sub_interface.c
907 lisp-gpe/lisp_gpe_adjacency.c
908 lisp-gpe/lisp_gpe_tunnel.c
909 lisp-gpe/lisp_gpe_fwd_entry.c
910 lisp-gpe/lisp_gpe_tenant.c
913 lisp-gpe/lisp_gpe_api.c
916 list(APPEND VNET_HEADERS
918 lisp-gpe/lisp_gpe_fwd_entry.h
919 lisp-gpe/lisp_gpe_tenant.h
920 lisp-gpe/lisp_gpe_packet.h
921 lisp-gpe/lisp_gpe_error.def
924 list(APPEND VNET_API_FILES lisp-gpe/lisp_gpe.api)
926 ##############################################################################
928 ##############################################################################
929 list(APPEND VNET_SOURCES
931 dhcp/dhcp_client_detect.c
932 dhcp/dhcp6_client_common_dp.c
933 dhcp/dhcp6_pd_client_dp.c
934 dhcp/dhcp6_pd_client_cp.c
935 dhcp/dhcp6_ia_na_client_dp.c
936 dhcp/dhcp6_ia_na_client_cp.c
940 list(APPEND VNET_MULTIARCH_SOURCES
941 dhcp/dhcp_client_detect.c
944 list(APPEND VNET_HEADERS
946 dhcp/dhcp6_client_common_dp.h
947 dhcp/dhcp6_pd_client_dp.h
948 dhcp/dhcp6_ia_na_client_dp.h
951 list(APPEND VNET_API_FILES
953 dhcp/dhcp6_pd_client_cp.api
954 dhcp/dhcp6_ia_na_client_cp.api
957 ##############################################################################
959 ##############################################################################
960 list(APPEND VNET_SOURCES
961 dhcp/dhcp6_proxy_node.c
962 dhcp/dhcp4_proxy_node.c
966 list(APPEND VNET_HEADERS
970 dhcp/dhcp6_proxy_error.def
971 dhcp/dhcp4_proxy_error.def
974 ##############################################################################
975 # ipv6 segment routing
976 ##############################################################################
978 list(APPEND VNET_SOURCES
981 srv6/sr_policy_rewrite.c
986 list(APPEND VNET_HEADERS
991 list(APPEND VNET_API_FILES srv6/sr.api)
993 ##############################################################################
994 # mpls segment routing
995 ##############################################################################
997 list(APPEND VNET_SOURCES
998 srmpls/sr_mpls_policy.c
999 srmpls/sr_mpls_steering.c
1000 srmpls/sr_mpls_api.c
1003 list(APPEND VNET_HEADERS
1007 list(APPEND VNET_API_FILES srmpls/sr_mpls.api)
1009 ##############################################################################
1010 # IPFIX / netflow v10
1011 ##############################################################################
1012 list(APPEND VNET_SOURCES
1013 ipfix-export/flow_report.c
1014 ipfix-export/flow_api.c
1017 list(APPEND VNET_HEADERS
1018 ipfix-export/flow_report.h
1019 ipfix-export/ipfix_info_elements.h
1020 ipfix-export/ipfix_packet.h
1023 list(APPEND VNET_API_FILES ipfix-export/ipfix_export.api)
1025 ##############################################################################
1026 # IPFIX classify code
1027 ##############################################################################
1029 list(APPEND VNET_SOURCES
1030 ipfix-export/flow_report_classify.c
1033 list(APPEND VNET_HEADERS
1034 ipfix-export/flow_report_classify.h
1037 ##############################################################################
1039 ##############################################################################
1041 list(APPEND VNET_SOURCES
1042 lawful-intercept/lawful_intercept.c
1043 lawful-intercept/node.c
1046 list(APPEND VNET_MULTIARCH_SOURCES
1047 lawful-intercept/node.c
1050 list(APPEND VNET_HEADERS
1051 lawful-intercept/lawful_intercept.h
1054 ##############################################################################
1055 # SPAN (port mirroring)
1056 ##############################################################################
1058 list(APPEND VNET_SOURCES
1064 list(APPEND VNET_MULTIARCH_SOURCES
1068 list(APPEND VNET_HEADERS
1072 list(APPEND VNET_API_FILES span/span.api)
1074 ##############################################################################
1076 ##############################################################################
1077 list(APPEND VNET_SOURCES
1083 dns/resolver_process.c
1086 list(APPEND VNET_HEADERS
1090 list(APPEND VNET_API_FILES dns/dns.api)
1092 ##############################################################################
1094 ##############################################################################
1096 list(APPEND VNET_SOURCES
1106 list(APPEND VNET_HEADERS
1111 list(APPEND VNET_API_FILES pg/pg.api)
1113 ##############################################################################
1115 ##############################################################################
1117 list(APPEND VNET_SOURCES
1118 devices/virtio/device.c
1119 devices/virtio/node.c
1120 devices/virtio/vhost_user.c
1121 devices/virtio/vhost_user_input.c
1122 devices/virtio/vhost_user_output.c
1123 devices/virtio/vhost_user_api.c
1124 devices/virtio/virtio.c
1125 devices/virtio/virtio_api.c
1126 devices/virtio/cli.c
1127 devices/virtio/pci.c
1130 list(APPEND VNET_HEADERS
1131 devices/virtio/pci.h
1132 devices/virtio/virtio.h
1133 devices/virtio/vhost_user.h
1136 list(APPEND VNET_MULTIARCH_SOURCES
1137 devices/virtio/vhost_user_input.c
1138 devices/virtio/vhost_user_output.c
1139 devices/netmap/node.c
1140 devices/virtio/node.c
1141 devices/af_packet/node.c
1142 devices/virtio/device.c
1145 list(APPEND VNET_API_FILES
1146 devices/virtio/vhost_user.api
1147 devices/virtio/virtio.api
1150 ##############################################################################
1151 # tap interface (with virtio backend)
1152 ##############################################################################
1154 list(APPEND VNET_SOURCES
1157 devices/tap/tapv2_api.c
1160 list(APPEND VNET_HEADERS
1164 list(APPEND VNET_API_FILES devices/tap/tapv2.api)
1166 ##############################################################################
1167 # tap interface (with virtio backend)
1168 ##############################################################################
1170 list(APPEND VNET_SOURCES
1171 devices/pipe/pipe_api.c
1175 list(APPEND VNET_HEADERS
1179 list(APPEND VNET_API_FILES devices/pipe/pipe.api)
1181 ##############################################################################
1182 # session managmeent
1183 ##############################################################################
1185 list(APPEND VNET_SOURCES
1187 session/session_table.c
1188 session/session_rules_table.c
1189 session/session_lookup.c
1190 session/session_node.c
1192 session/application.c
1193 session/application_worker.c
1194 session/session_cli.c
1195 session/application_interface.c
1196 session/application_local.c
1197 session/application_namespace.c
1198 session/segment_manager.c
1199 session/session_api.c
1202 list(APPEND VNET_HEADERS
1204 session/session_table.h
1205 session/session_rules_table.h
1206 session/session_types.h
1207 session/session_lookup.h
1208 session/application.h
1210 session/transport_types.h
1211 session/application_interface.h
1212 session/application_local.h
1213 session/application_namespace.h
1214 session/session_debug.h
1215 session/segment_manager.h
1216 session/mma_template.h
1217 session/mma_template.c
1222 list(APPEND VNET_API_FILES session/session.api)
1224 ##############################################################################
1225 # session layer applications
1226 ##############################################################################
1228 list(APPEND VNET_SOURCES
1229 session-apps/echo_client.c
1230 session-apps/echo_server.c
1231 session-apps/http_server.c
1232 session-apps/proxy.c
1235 list(APPEND VNET_HEADERS
1236 session-apps/echo_client.h
1237 session-apps/proxy.h
1240 ##############################################################################
1242 ##############################################################################
1244 list(APPEND VNET_SOURCES
1248 list(APPEND VNET_HEADERS
1253 ##############################################################################
1254 # Linux packet interface
1255 ##############################################################################
1257 list(APPEND VNET_SOURCES
1258 devices/af_packet/af_packet.c
1259 devices/af_packet/device.c
1260 devices/af_packet/node.c
1261 devices/af_packet/cli.c
1262 devices/af_packet/af_packet_api.c
1265 list(APPEND VNET_MULTIARCH_SOURCES
1266 devices/netmap/device.c
1267 devices/af_packet/device.c
1270 list(APPEND VNET_HEADERS
1271 devices/af_packet/af_packet.h
1274 list(APPEND VNET_API_FILES devices/af_packet/af_packet.api)
1276 ##############################################################################
1278 ##############################################################################
1280 list(APPEND VNET_SOURCES
1281 devices/netmap/netmap.c
1282 devices/netmap/device.c
1283 devices/netmap/node.c
1284 devices/netmap/cli.c
1285 devices/netmap/netmap_api.c
1288 list(APPEND VNET_HEADERS
1289 devices/netmap/netmap.h
1292 list(APPEND VNET_API_FILES devices/netmap/netmap.api)
1294 ##############################################################################
1295 # Driver feature graph arc support
1296 ##############################################################################
1298 list(APPEND VNET_SOURCES
1300 feature/feature_api.c
1301 feature/registration.c
1304 list(APPEND VNET_HEADERS
1308 list(APPEND VNET_API_FILES feature/feature.api)
1310 ##############################################################################
1311 # Unix kernel related
1312 ##############################################################################
1314 # FIXME: unix/hgshm.c
1316 list(APPEND VNET_SOURCES
1321 list(APPEND VNET_HEADERS
1325 ##############################################################################
1327 ##############################################################################
1329 list(APPEND VNET_SOURCES
1341 fib/fib_entry_src_rr.c
1342 fib/fib_entry_src_interface.c
1343 fib/fib_entry_src_interpose.c
1344 fib/fib_entry_src_default_route.c
1345 fib/fib_entry_src_special.c
1346 fib/fib_entry_src_api.c
1347 fib/fib_entry_src_adj.c
1348 fib/fib_entry_src_mpls.c
1349 fib/fib_entry_src_lisp.c
1350 fib/fib_entry_cover.c
1351 fib/fib_entry_delegate.c
1356 fib/fib_attached_export.c
1361 list(APPEND VNET_HEADERS
1371 fib/fib_entry_delegate.h
1374 ##############################################################################
1376 ##############################################################################
1378 list(APPEND VNET_SOURCES
1382 adj/adj_midchain_delegate.c
1392 list(APPEND VNET_MULTIARCH_SOURCES
1397 list(APPEND VNET_HEADERS
1406 ##############################################################################
1407 # Data-Plane Objects
1408 ##############################################################################
1410 list(APPEND VNET_SOURCES
1418 dpo/load_balance_map.c
1422 dpo/interface_rx_dpo.c
1423 dpo/interface_tx_dpo.c
1424 dpo/mpls_disposition.c
1425 dpo/mpls_label_dpo.c
1430 list(APPEND VNET_MULTIARCH_SOURCES
1432 dpo/mpls_disposition.c
1434 dpo/mpls_label_dpo.c
1435 dpo/interface_rx_dpo.c
1438 list(APPEND VNET_HEADERS
1450 ##############################################################################
1452 ##############################################################################
1454 list(APPEND VNET_SOURCES
1464 mfib/mfib_entry_cover.c
1465 mfib/mfib_entry_delegate.c
1466 mfib/mfib_entry_src.c
1467 mfib/mfib_entry_src_rr.c
1471 list(APPEND VNET_MULTIARCH_SOURCES
1475 list(APPEND VNET_HEADERS
1481 ##############################################################################
1483 ##############################################################################
1485 list(APPEND VNET_SOURCES
1492 list(APPEND VNET_HEADERS
1496 ##############################################################################
1498 ##############################################################################
1500 list(APPEND VNET_SOURCES
1503 qos/qos_egress_map.c
1505 qos/qos_record_node.c
1510 list(APPEND VNET_MULTIARCH_SOURCES
1511 qos/qos_record_node.c
1515 list(APPEND VNET_API_FILES qos/qos.api)
1517 ##############################################################################
1519 ##############################################################################
1521 list(APPEND VNET_SOURCES
1522 bier/bier_bit_string.c
1525 bier/bier_fmask_db.c
1534 bier/bier_imp_node.c
1536 bier/bier_disp_entry.c
1537 bier/bier_disp_lookup_node.c
1538 bier/bier_disp_dispatch_node.c
1539 bier/bier_disp_table.c
1540 bier/bier_bift_table.c
1543 list(APPEND VNET_MULTIARCH_SOURCES
1544 bier/bier_disp_dispatch_node.c
1545 bier/bier_disp_lookup_node.c
1546 bier/bier_imp_node.c
1549 list(APPEND VNET_HEADERS
1556 list(APPEND VNET_API_FILES bier/bier.api)
1558 ##############################################################################
1560 ##############################################################################
1562 list (APPEND VNET_SOURCES
1568 list(APPEND VNET_HEADERS
1573 list(APPEND VNET_API_FILES syslog/syslog.api)
1575 ##############################################################################
1577 ##############################################################################
1579 add_vpp_library(vnet
1580 SOURCES ${VNET_SOURCES}
1581 MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES}
1582 INSTALL_HEADERS ${VNET_HEADERS}
1583 API_FILES ${VNET_API_FILES}
1584 LINK_LIBRARIES vppinfra svm vlib ${OPENSSL_LIBRARIES}
1588 ##############################################################################
1590 ##############################################################################
1592 option(VPP_BUILD_SESSION_ECHO_APPS "Build session echo apps." ON)
1593 if(VPP_BUILD_SESSION_ECHO_APPS)
1594 add_vpp_executable(tcp_echo
1595 SOURCES ../tests/vnet/session/tcp_echo.c
1596 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1600 add_vpp_executable(quic_echo
1601 SOURCES ../tests/vnet/session/quic_echo.c
1602 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1606 add_vpp_executable(udp_echo
1607 SOURCES ../tests/vnet/session/udp_echo.c
1608 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1612 endif(VPP_BUILD_SESSION_ECHO_APPS)
1614 ##############################################################################