aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-01-25 06:34:42 -0800
committerDave Barach <openvpp@barachs.net>2018-01-26 16:15:13 +0000
commit4399c2eb848b79762ff52a95fa5d9fab222c73bd (patch)
tree88ad4c903eb516bccb97b8c2fe101cb9e15398f7 /src/vnet/session/application.c
parent87233b51bc4d088ff566cef09a7c96f1f0dac078 (diff)
session: move builtin apps to their own folder
This consolidates builtin apps under session-apps folder. It also removes duplicate builtin echo server/client implementations. Change-Id: I75ed879399c5aa9b75b1eb38b33aedf69dd8df3f Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r--src/vnet/session/application.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 13ccdd7cbc8..bd708fc864e 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -272,7 +272,9 @@ application_init (application_t * app, u32 api_client_index, u64 * options,
if (!reg)
return VNET_API_ERROR_APP_UNSUPPORTED_CFG;
- if (vl_api_registration_file_index (reg) == ~0)
+ if (options[APP_OPTIONS_FLAGS] & APP_OPTIONS_FLAGS_IS_BUILTIN)
+ st = SSVM_N_SEGMENT_TYPES;
+ else if (vl_api_registration_file_index (reg) == VL_API_INVALID_FI)
st = SSVM_SEGMENT_SHM;
if (!application_verify_cfg (st))