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
164 l2/l2_input_classify.c
165 l2/l2_output_classify.c
175 l2/l2_in_out_feat_arc.c
183 list(APPEND VNET_MULTIARCH_SOURCES
188 l2/l2_in_out_feat_arc.c
189 l2/l2_input_classify.c
191 l2/l2_output_classify.c
201 list(APPEND VNET_HEADERS
218 list(APPEND VNET_API_FILES l2/l2.api)
220 ##############################################################################
221 # Layer 2 protocol: SRP
222 ##############################################################################
223 list(APPEND VNET_SOURCES
230 list(APPEND VNET_HEADERS
235 ##############################################################################
236 # Layer 2 protocol: PPP
237 ##############################################################################
238 list(APPEND VNET_SOURCES
244 list(APPEND VNET_HEADERS
250 ##############################################################################
251 # Layer 2 protocol: HDLC
252 ##############################################################################
253 list(APPEND VNET_SOURCES
259 list(APPEND VNET_HEADERS
265 ##############################################################################
266 # Layer 2 protocol: LLC
267 ##############################################################################
268 list(APPEND VNET_SOURCES
274 list(APPEND VNET_HEADERS
278 ##############################################################################
279 # Layer 2 protocol: SNAP
280 ##############################################################################
281 list(APPEND VNET_SOURCES
287 list(APPEND VNET_HEADERS
291 ##############################################################################
293 ##############################################################################
294 list(APPEND VNET_SOURCES
301 list(APPEND VNET_MULTIARCH_SOURCES
305 list(APPEND VNET_HEADERS
308 vxlan/vxlan_error.def
311 list(APPEND VNET_MULTIARCH_SOURCES vxlan/decap.c)
313 list(APPEND VNET_API_FILES vxlan/vxlan.api)
315 ##############################################################################
317 ##############################################################################
318 list(APPEND VNET_SOURCES
325 list(APPEND VNET_MULTIARCH_SOURCES
330 list(APPEND VNET_HEADERS
332 geneve/geneve_packet.h
333 geneve/geneve_error.def
336 list(APPEND VNET_API_FILES geneve/geneve.api)
338 ##############################################################################
340 ##############################################################################
341 list(APPEND VNET_SOURCES
348 list(APPEND VNET_HEADERS
352 list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c bonding/device.c)
353 list(APPEND VNET_API_FILES bonding/bond.api)
355 ##############################################################################
357 ##############################################################################
358 list(APPEND VNET_SOURCES
366 list(APPEND VNET_HEADERS
371 list(APPEND VNET_API_FILES lldp/lldp.api)
373 ##############################################################################
374 # Layer 2/3 "classify"
375 ##############################################################################
376 list(APPEND VNET_SOURCES
377 classify/vnet_classify.c
378 classify/ip_classify.c
379 classify/in_out_acl.c
380 classify/policer_classify.c
381 classify/flow_classify.c
382 classify/flow_classify_node.c
383 classify/vnet_classify.h
384 classify/classify_api.c
387 list(APPEND VNET_MULTIARCH_SOURCES
388 classify/ip_classify.c
389 classify/flow_classify_node.c
392 list(APPEND VNET_HEADERS
393 classify/vnet_classify.h
394 classify/in_out_acl.h
395 classify/policer_classify.h
396 classify/flow_classify.h
399 list(APPEND VNET_API_FILES classify/classify.api)
401 ##############################################################################
402 # Layer 3 protocols go here
403 ##############################################################################
405 ##############################################################################
406 # Layer 3 protocol: IP v4/v6
407 ##############################################################################
408 list(APPEND VNET_SOURCES
421 ip/ip4_source_and_port_range_check.c
422 ip/ip4_source_check.c
448 list(APPEND VNET_MULTIARCH_SOURCES
449 ip/ip4_source_check.c
460 list(APPEND VNET_HEADERS
473 ip/ip6_hop_by_hop_packet.h
478 ip/ip_source_and_port_range_check.h
487 list(APPEND VNET_API_FILES
493 list(APPEND VNET_MULTIARCH_SOURCES
499 ##############################################################################
501 ##############################################################################
502 list(APPEND VNET_SOURCES
506 list(APPEND VNET_HEADERS
507 ethernet/arp_packet.h
511 ##############################################################################
512 # Bidirectional Forwarding Detection
513 ##############################################################################
515 list(APPEND VNET_HEADERS
522 list(APPEND VNET_SOURCES
531 list(APPEND VNET_API_FILES bfd/bfd.api)
533 ##############################################################################
534 # Layer 3 protocol: IPSec
535 ##############################################################################
536 list(APPEND VNET_SOURCES
545 ipsec/ipsec_spd_policy.c
554 list(APPEND VNET_MULTIARCH_SOURCES
564 list(APPEND VNET_API_FILES ipsec/ipsec.api)
566 list(APPEND VNET_SOURCES
570 list(APPEND VNET_HEADERS
573 ipsec/ipsec_spd_policy.h
580 ##############################################################################
581 # Layer 3 protocol: osi
582 ##############################################################################
583 list(APPEND VNET_SOURCES
589 list(APPEND VNET_HEADERS
593 ##############################################################################
594 # Layer 4 protocol: tcp
595 ##############################################################################
596 list(APPEND VNET_SOURCES
600 tcp/tcp_syn_filter4.c
608 list(APPEND VNET_MULTIARCH_SOURCES
611 tcp/tcp_syn_filter4.c
614 list(APPEND VNET_HEADERS
622 list(APPEND VNET_API_FILES tcp/tcp.api)
624 ##############################################################################
625 # Layer 4 protocol: udp
626 ##############################################################################
627 list(APPEND VNET_SOURCES
638 list(APPEND VNET_MULTIARCH_SOURCES
643 list(APPEND VNET_HEADERS
649 list(APPEND VNET_API_FILES udp/udp.api)
651 ##############################################################################
652 # Layer 4 protocol: sctp
653 ##############################################################################
654 list(APPEND VNET_SOURCES
660 sctp/sctp_output_node.c
664 list(APPEND VNET_MULTIARCH_SOURCES
665 sctp/sctp_output_node.c
669 list(APPEND VNET_HEADERS
676 list(APPEND VNET_API_FILES sctp/sctp.api)
678 ##############################################################################
679 # Tunnel protocol: gre
680 ##############################################################################
681 list(APPEND VNET_SOURCES
689 list(APPEND VNET_MULTIARCH_SOURCES
694 list(APPEND VNET_HEADERS
700 list(APPEND VNET_API_FILES gre/gre.api)
702 ##############################################################################
703 # Tunnel protocol: ipip
704 ##############################################################################
705 list(APPEND VNET_SOURCES
713 list(APPEND VNET_MULTIARCH_SOURCES
717 list(APPEND VNET_HEADERS
721 list(APPEND VNET_API_FILES ipip/ipip.api)
723 ##############################################################################
724 # Tunnel protocol: l2tpv3
725 ##############################################################################
726 list(APPEND VNET_SOURCES
734 list(APPEND VNET_MULTIARCH_SOURCES
739 list(APPEND VNET_HEADERS
744 list(APPEND VNET_API_FILES l2tp/l2tp.api)
746 ##############################################################################
747 # Tunnel protocol: gre+mpls
748 ##############################################################################
749 list(APPEND VNET_SOURCES
761 list(APPEND VNET_MULTIARCH_SOURCES
768 list(APPEND VNET_HEADERS
776 list(APPEND VNET_API_FILES mpls/mpls.api)
778 ##############################################################################
779 # Tunnel protocol: vxlan-gbp
780 ##############################################################################
781 list(APPEND VNET_SOURCES
784 vxlan-gbp/vxlan_gbp_api.c
785 vxlan-gbp/vxlan_gbp.c
786 vxlan-gbp/vxlan_gbp_packet.c
789 list (APPEND VNET_MULTIARCH_SOURCES
794 list(APPEND VNET_HEADERS
795 vxlan-gbp/vxlan_gbp.h
796 vxlan-gbp/vxlan_gbp_packet.h
797 vxlan-gbp/vxlan_gbp_error.def
800 list(APPEND VNET_API_FILES vxlan-gbp/vxlan_gbp.api)
802 ##############################################################################
803 # Tunnel protocol: vxlan-gpe
804 ##############################################################################
806 list(APPEND VNET_SOURCES
807 vxlan-gpe/vxlan_gpe.c
810 vxlan-gpe/vxlan_gpe_api.c
813 list (APPEND VNET_MULTIARCH_SOURCES
817 list(APPEND VNET_HEADERS
818 vxlan-gpe/vxlan_gpe.h
819 vxlan-gpe/vxlan_gpe_packet.h
820 vxlan-gpe/vxlan_gpe_error.def
823 list(APPEND VNET_API_FILES vxlan-gpe/vxlan_gpe.api)
825 ##############################################################################
826 # Tunnel protocol: ipsec+gre
827 ##############################################################################
828 list(APPEND VNET_SOURCES
829 ipsec-gre/ipsec_gre.c
831 ipsec-gre/interface.c
832 ipsec-gre/ipsec_gre_api.c
835 list(APPEND VNET_MULTIARCH_SOURCES
839 list(APPEND VNET_HEADERS
840 ipsec-gre/ipsec_gre.h
844 list(APPEND VNET_API_FILES ipsec-gre/ipsec_gre.api)
846 ##############################################################################
847 # LISP control plane: lisp-cp
848 ##############################################################################
850 list(APPEND VNET_SOURCES
852 lisp-cp/lisp_cp_dpo.c
854 lisp-cp/gid_dictionary.c
855 lisp-cp/lisp_msg_serdes.c
863 list(APPEND VNET_HEADERS
866 lisp-cp/gid_dictionary.h
867 lisp-cp/lisp_cp_messages.h
868 lisp-cp/lisp_msg_serdes.h
872 list(APPEND VNET_API_FILES lisp-cp/lisp.api)
873 list(APPEND VNET_API_FILES lisp-cp/one.api)
875 ##############################################################################
876 # Tunnel protocol: lisp-gpe
877 ##############################################################################
879 list(APPEND VNET_SOURCES
881 lisp-gpe/lisp_gpe_sub_interface.c
882 lisp-gpe/lisp_gpe_adjacency.c
883 lisp-gpe/lisp_gpe_tunnel.c
884 lisp-gpe/lisp_gpe_fwd_entry.c
885 lisp-gpe/lisp_gpe_tenant.c
888 lisp-gpe/lisp_gpe_api.c
891 list(APPEND VNET_HEADERS
893 lisp-gpe/lisp_gpe_fwd_entry.h
894 lisp-gpe/lisp_gpe_tenant.h
895 lisp-gpe/lisp_gpe_packet.h
896 lisp-gpe/lisp_gpe_error.def
899 list(APPEND VNET_API_FILES lisp-gpe/lisp_gpe.api)
901 ##############################################################################
903 ##############################################################################
904 list(APPEND VNET_SOURCES
906 dhcp/dhcp_client_detect.c
907 dhcp/dhcp6_client_common_dp.c
908 dhcp/dhcp6_pd_client_dp.c
909 dhcp/dhcp6_pd_client_cp.c
910 dhcp/dhcp6_ia_na_client_dp.c
911 dhcp/dhcp6_ia_na_client_cp.c
915 list(APPEND VNET_MULTIARCH_SOURCES
916 dhcp/dhcp_client_detect.c
919 list(APPEND VNET_HEADERS
921 dhcp/dhcp6_client_common_dp.h
922 dhcp/dhcp6_pd_client_dp.h
923 dhcp/dhcp6_ia_na_client_dp.h
926 list(APPEND VNET_API_FILES
928 dhcp/dhcp6_pd_client_cp.api
929 dhcp/dhcp6_ia_na_client_cp.api
932 ##############################################################################
934 ##############################################################################
935 list(APPEND VNET_SOURCES
936 dhcp/dhcp6_proxy_node.c
937 dhcp/dhcp4_proxy_node.c
941 list(APPEND VNET_HEADERS
945 dhcp/dhcp6_proxy_error.def
946 dhcp/dhcp4_proxy_error.def
949 ##############################################################################
950 # ipv6 segment routing
951 ##############################################################################
953 list(APPEND VNET_SOURCES
956 srv6/sr_policy_rewrite.c
961 list(APPEND VNET_HEADERS
966 list(APPEND VNET_API_FILES srv6/sr.api)
968 ##############################################################################
969 # mpls segment routing
970 ##############################################################################
972 list(APPEND VNET_SOURCES
973 srmpls/sr_mpls_policy.c
974 srmpls/sr_mpls_steering.c
978 list(APPEND VNET_HEADERS
982 list(APPEND VNET_API_FILES srmpls/sr_mpls.api)
984 ##############################################################################
985 # IPFIX / netflow v10
986 ##############################################################################
987 list(APPEND VNET_SOURCES
988 ipfix-export/flow_report.c
989 ipfix-export/flow_api.c
992 list(APPEND VNET_HEADERS
993 ipfix-export/flow_report.h
994 ipfix-export/ipfix_info_elements.h
995 ipfix-export/ipfix_packet.h
998 list(APPEND VNET_API_FILES ipfix-export/ipfix_export.api)
1000 ##############################################################################
1001 # IPFIX classify code
1002 ##############################################################################
1004 list(APPEND VNET_SOURCES
1005 ipfix-export/flow_report_classify.c
1008 list(APPEND VNET_HEADERS
1009 ipfix-export/flow_report_classify.h
1012 ##############################################################################
1014 ##############################################################################
1016 list(APPEND VNET_SOURCES
1017 lawful-intercept/lawful_intercept.c
1018 lawful-intercept/node.c
1021 list(APPEND VNET_MULTIARCH_SOURCES
1022 lawful-intercept/node.c
1025 list(APPEND VNET_HEADERS
1026 lawful-intercept/lawful_intercept.h
1029 ##############################################################################
1030 # SPAN (port mirroring)
1031 ##############################################################################
1033 list(APPEND VNET_SOURCES
1039 list(APPEND VNET_MULTIARCH_SOURCES
1043 list(APPEND VNET_HEADERS
1047 list(APPEND VNET_API_FILES span/span.api)
1049 ##############################################################################
1051 ##############################################################################
1052 list(APPEND VNET_SOURCES
1058 dns/resolver_process.c
1061 list(APPEND VNET_HEADERS
1065 list(APPEND VNET_API_FILES dns/dns.api)
1067 ##############################################################################
1069 ##############################################################################
1071 list(APPEND VNET_SOURCES
1081 list(APPEND VNET_HEADERS
1086 list(APPEND VNET_API_FILES pg/pg.api)
1088 ##############################################################################
1090 ##############################################################################
1092 list(APPEND VNET_SOURCES
1093 devices/virtio/device.c
1094 devices/virtio/node.c
1095 devices/virtio/vhost_user.c
1096 devices/virtio/vhost_user_input.c
1097 devices/virtio/vhost_user_output.c
1098 devices/virtio/vhost_user_api.c
1099 devices/virtio/virtio.c
1100 devices/virtio/virtio_api.c
1101 devices/virtio/cli.c
1102 devices/virtio/pci.c
1105 list(APPEND VNET_HEADERS
1106 devices/virtio/pci.h
1107 devices/virtio/virtio.h
1108 devices/virtio/vhost_user.h
1111 list(APPEND VNET_MULTIARCH_SOURCES
1112 devices/virtio/vhost_user_input.c
1113 devices/virtio/vhost_user_output.c
1114 devices/netmap/node.c
1115 devices/virtio/node.c
1116 devices/af_packet/node.c
1119 list(APPEND VNET_API_FILES
1120 devices/virtio/vhost_user.api
1121 devices/virtio/virtio.api
1124 ##############################################################################
1125 # tap interface (with virtio backend)
1126 ##############################################################################
1128 list(APPEND VNET_SOURCES
1131 devices/tap/tapv2_api.c
1134 list(APPEND VNET_HEADERS
1138 list(APPEND VNET_API_FILES devices/tap/tapv2.api)
1140 ##############################################################################
1141 # tap interface (with virtio backend)
1142 ##############################################################################
1144 list(APPEND VNET_SOURCES
1145 devices/pipe/pipe_api.c
1149 list(APPEND VNET_HEADERS
1153 list(APPEND VNET_API_FILES devices/pipe/pipe.api)
1155 ##############################################################################
1156 # session managmeent
1157 ##############################################################################
1159 list(APPEND VNET_SOURCES
1161 session/session_table.c
1162 session/session_rules_table.c
1163 session/session_lookup.c
1164 session/session_node.c
1166 session/application.c
1167 session/application_worker.c
1168 session/session_cli.c
1169 session/application_interface.c
1170 session/application_local.c
1171 session/application_namespace.c
1172 session/segment_manager.c
1173 session/session_api.c
1176 list(APPEND VNET_HEADERS
1178 session/session_table.h
1179 session/session_rules_table.h
1180 session/session_types.h
1181 session/session_lookup.h
1182 session/application.h
1184 session/transport_types.h
1185 session/application_interface.h
1186 session/application_local.h
1187 session/application_namespace.h
1188 session/session_debug.h
1189 session/segment_manager.h
1190 session/mma_template.h
1191 session/mma_template.c
1196 list(APPEND VNET_API_FILES session/session.api)
1198 ##############################################################################
1199 # session layer applications
1200 ##############################################################################
1202 list(APPEND VNET_SOURCES
1203 session-apps/echo_client.c
1204 session-apps/echo_server.c
1205 session-apps/http_server.c
1206 session-apps/proxy.c
1209 list(APPEND VNET_HEADERS
1210 session-apps/echo_client.h
1211 session-apps/proxy.h
1214 ##############################################################################
1216 ##############################################################################
1218 list(APPEND VNET_SOURCES
1222 list(APPEND VNET_HEADERS
1227 ##############################################################################
1228 # Linux packet interface
1229 ##############################################################################
1231 list(APPEND VNET_SOURCES
1232 devices/af_packet/af_packet.c
1233 devices/af_packet/device.c
1234 devices/af_packet/node.c
1235 devices/af_packet/cli.c
1236 devices/af_packet/af_packet_api.c
1239 list(APPEND VNET_HEADERS
1240 devices/af_packet/af_packet.h
1243 list(APPEND VNET_API_FILES devices/af_packet/af_packet.api)
1245 ##############################################################################
1247 ##############################################################################
1249 list(APPEND VNET_SOURCES
1250 devices/netmap/netmap.c
1251 devices/netmap/device.c
1252 devices/netmap/node.c
1253 devices/netmap/cli.c
1254 devices/netmap/netmap_api.c
1257 list(APPEND VNET_HEADERS
1258 devices/netmap/netmap.h
1261 list(APPEND VNET_API_FILES devices/netmap/netmap.api)
1263 ##############################################################################
1264 # Driver feature graph arc support
1265 ##############################################################################
1267 list(APPEND VNET_SOURCES
1269 feature/feature_api.c
1270 feature/registration.c
1273 list(APPEND VNET_HEADERS
1277 list(APPEND VNET_API_FILES feature/feature.api)
1279 ##############################################################################
1280 # Unix kernel related
1281 ##############################################################################
1283 # FIXME: unix/hgshm.c
1285 list(APPEND VNET_SOURCES
1290 list(APPEND VNET_HEADERS
1294 ##############################################################################
1296 ##############################################################################
1298 list(APPEND VNET_SOURCES
1310 fib/fib_entry_src_rr.c
1311 fib/fib_entry_src_interface.c
1312 fib/fib_entry_src_interpose.c
1313 fib/fib_entry_src_default_route.c
1314 fib/fib_entry_src_special.c
1315 fib/fib_entry_src_api.c
1316 fib/fib_entry_src_adj.c
1317 fib/fib_entry_src_mpls.c
1318 fib/fib_entry_src_lisp.c
1319 fib/fib_entry_cover.c
1320 fib/fib_entry_delegate.c
1325 fib/fib_attached_export.c
1330 list(APPEND VNET_HEADERS
1340 fib/fib_entry_delegate.h
1343 ##############################################################################
1345 ##############################################################################
1347 list(APPEND VNET_SOURCES
1360 list(APPEND VNET_MULTIARCH_SOURCES
1365 list(APPEND VNET_HEADERS
1374 ##############################################################################
1375 # Data-Plane Objects
1376 ##############################################################################
1378 list(APPEND VNET_SOURCES
1386 dpo/load_balance_map.c
1390 dpo/interface_rx_dpo.c
1391 dpo/interface_tx_dpo.c
1392 dpo/mpls_disposition.c
1393 dpo/mpls_label_dpo.c
1398 list(APPEND VNET_MULTIARCH_SOURCES
1400 dpo/mpls_disposition.c
1402 dpo/mpls_label_dpo.c
1403 dpo/interface_rx_dpo.c
1406 list(APPEND VNET_HEADERS
1418 ##############################################################################
1420 ##############################################################################
1422 list(APPEND VNET_SOURCES
1431 mfib/mfib_entry_cover.c
1432 mfib/mfib_entry_delegate.c
1433 mfib/mfib_entry_src.c
1434 mfib/mfib_entry_src_rr.c
1438 list(APPEND VNET_MULTIARCH_SOURCES
1442 list(APPEND VNET_HEADERS
1448 ##############################################################################
1450 ##############################################################################
1452 list(APPEND VNET_SOURCES
1459 list(APPEND VNET_HEADERS
1463 ##############################################################################
1465 ##############################################################################
1467 list(APPEND VNET_SOURCES
1470 qos/qos_egress_map.c
1472 qos/qos_record_node.c
1477 list(APPEND VNET_MULTIARCH_SOURCES
1478 qos/qos_record_node.c
1482 list(APPEND VNET_API_FILES qos/qos.api)
1484 ##############################################################################
1486 ##############################################################################
1488 list(APPEND VNET_SOURCES
1489 bier/bier_bit_string.c
1492 bier/bier_fmask_db.c
1501 bier/bier_imp_node.c
1503 bier/bier_disp_entry.c
1504 bier/bier_disp_lookup_node.c
1505 bier/bier_disp_dispatch_node.c
1506 bier/bier_disp_table.c
1507 bier/bier_bift_table.c
1510 list(APPEND VNET_MULTIARCH_SOURCES
1511 bier/bier_disp_dispatch_node.c
1512 bier/bier_disp_lookup_node.c
1513 bier/bier_imp_node.c
1516 list(APPEND VNET_HEADERS
1523 list(APPEND VNET_API_FILES bier/bier.api)
1525 ##############################################################################
1527 ##############################################################################
1529 list (APPEND VNET_SOURCES
1535 list(APPEND VNET_HEADERS
1540 list(APPEND VNET_API_FILES syslog/syslog.api)
1542 ##############################################################################
1544 ##############################################################################
1546 add_vpp_library(vnet
1547 SOURCES ${VNET_SOURCES}
1548 MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES}
1549 INSTALL_HEADERS ${VNET_HEADERS}
1550 API_FILES ${VNET_API_FILES}
1551 LINK_LIBRARIES vppinfra svm vlib ${OPENSSL_LIBRARIES}
1555 ##############################################################################
1557 ##############################################################################
1559 option(VPP_BUILD_SESSION_ECHO_APPS "Build session echo apps." ON)
1560 if(VPP_BUILD_SESSION_ECHO_APPS)
1561 add_vpp_executable(tcp_echo
1562 SOURCES ../tests/vnet/session/tcp_echo.c
1563 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1567 add_vpp_executable(udp_echo
1568 SOURCES ../tests/vnet/session/udp_echo.c
1569 LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt
1573 endif(VPP_BUILD_SESSION_ECHO_APPS)
1575 ##############################################################################