diff options
author | Florin Coras <fcoras@cisco.com> | 2018-03-22 21:24:31 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-03-23 14:20:10 +0000 |
commit | 0bee9ce4af04322c56f7511f24bda4874e78a4b4 (patch) | |
tree | bbe65c79d108741d64321492f436c94b2ba68871 /src/vnet/tls/tls.c | |
parent | beca26622983018255d87b8031e39e517e4e4242 (diff) |
session: allow builtin apps to register names
Change-Id: I4b428e170436671b329657283cf7653befc85c9f
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tls/tls.c')
-rw-r--r-- | src/vnet/tls/tls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index d4c40f715d4..23ba70aa4f0 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -726,8 +726,9 @@ tls_init (vlib_main_t * vm) memset (options, 0, sizeof (options)); a->session_cb_vft = &tls_app_cb_vft; - a->api_client_index = (1 << 24) + 1; + a->api_client_index = APP_INVALID_INDEX; a->options = options; + a->name = format (0, "tls"); a->options[APP_OPTIONS_SEGMENT_SIZE] = segment_size; a->options[APP_OPTIONS_RX_FIFO_SIZE] = fifo_size; a->options[APP_OPTIONS_TX_FIFO_SIZE] = fifo_size; @@ -753,7 +754,7 @@ tls_init (vlib_main_t * vm) FIB_PROTOCOL_IP4, ~0); transport_register_protocol (TRANSPORT_PROTO_TLS, &tls_proto, FIB_PROTOCOL_IP6, ~0); - + vec_free (a->name); return 0; } |