X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fvnet%2FCMakeLists.txt;h=a45f921fb0831014128c3dd4a8d1c1622dedb71b;hb=871bca9aa7a850c66228ce7124d459a6e6f21e72;hp=29f5fef86265e2fb4dd4e37b1873b9b1872c56e8;hpb=5beecec0766f49196bc1097c38e4ed2bed80dbd3;p=vpp.git diff --git a/src/vnet/CMakeLists.txt b/src/vnet/CMakeLists.txt index 29f5fef8626..a45f921fb08 100644 --- a/src/vnet/CMakeLists.txt +++ b/src/vnet/CMakeLists.txt @@ -120,7 +120,7 @@ list(APPEND VNET_SOURCES ethernet/p2p_ethernet_api.c ) -list(APPEND VNET_MULTIARCH_SOURCES ethernet/node.c l2/l2_output.c) +list(APPEND VNET_MULTIARCH_SOURCES ethernet/node.c) list(APPEND VNET_HEADERS ethernet/error.def @@ -152,12 +152,20 @@ list(APPEND VNET_SOURCES l2/l2_learn.c l2/l2_output.c l2/l2_in_out_acl.c + l2/l2_in_out_feat_arc.c l2/l2_patch.c l2/l2_rw.c + l2/l2_uu_fwd.c l2/l2_vtr.c l2/l2_xcrw.c ) +list(APPEND VNET_MULTIARCH_SOURCES + l2/l2_fwd.c + l2/l2_learn.c + l2/l2_output.c +) + list(APPEND VNET_HEADERS l2/feat_bitmap.h l2/l2_input.h @@ -300,7 +308,7 @@ list(APPEND VNET_HEADERS bonding/node.h ) -list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c) +list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c bonding/device.c) list(APPEND VNET_API_FILES bonding/bond.api) ############################################################################## @@ -483,6 +491,13 @@ list(APPEND VNET_SOURCES ipsec/ipsec_api.c ) +list(APPEND VNET_MULTIARCH_SOURCES + ipsec/esp_encrypt.c + ipsec/esp_decrypt.c + ipsec/ah_decrypt.c + ipsec/ah_encrypt.c +) + list(APPEND VNET_API_FILES ipsec/ipsec.api) list(APPEND VNET_SOURCES @@ -1013,7 +1028,6 @@ list(APPEND VNET_SOURCES session/application_interface.c session/application_namespace.c session/segment_manager.c - session/session_test.c session/session_api.c ) @@ -1339,6 +1353,10 @@ list(APPEND VNET_HEADERS list(APPEND VNET_API_FILES bier/bier.api) +############################################################################## +# VNET Library +############################################################################## + add_vpp_library(vnet SOURCES ${VNET_SOURCES} MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES} @@ -1347,3 +1365,25 @@ add_vpp_library(vnet LINK_LIBRARIES vppinfra svm vlib ${OPENSSL_LIBRARIES} DEPENDS api_headers ) + +############################################################################## +# Session echo apps +############################################################################## + +option(VPP_BUILD_SESSION_ECHO_APPS "Build session echo apps." ON) +if(VPP_BUILD_SESSION_ECHO_APPS) + add_vpp_executable(tcp_echo + SOURCES ../tests/vnet/session/tcp_echo.c + LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt + DEPENDS api_headers + NO_INSTALL + ) + add_vpp_executable(udp_echo + SOURCES ../tests/vnet/session/udp_echo.c + LINK_LIBRARIES vlibmemoryclient svm vppinfra pthread m rt + DEPENDS api_headers + NO_INSTALL + ) +endif(VPP_BUILD_SESSION_ECHO_APPS) + +##############################################################################