aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-06-07 14:18:48 -0700
committerFlorin Coras <fcoras@cisco.com>2017-06-07 14:23:19 -0700
commit2fcc49d9c6a66c49148d5790f6af38ab2f3b4be6 (patch)
treedccabfee3a8e253a9b3b0a30786f96b15bf1a74d
parent3658adcadcc2e568abc985255a6cddcc4871aa87 (diff)
Small update to session API
Change-Id: I6a566d1dc9531b790bdcb00edc73516f86daeb72 Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--src/vnet/session/session.api4
-rwxr-xr-xsrc/vnet/session/session_api.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/session/session.api b/src/vnet/session/session.api
index 4aef09da2a8..e01cc75e28b 100644
--- a/src/vnet/session/session.api
+++ b/src/vnet/session/session.api
@@ -263,6 +263,7 @@ autoreply define unbind_sock {
/** \brief Connect to a remote peer
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
+ @param app_connect - application connection id to be returned in reply
@param vrf - connection namespace
@param is_ip4 - flag that is 1 if ip address family is IPv4
@param ip - ip address
@@ -275,6 +276,7 @@ autoreply define unbind_sock {
define connect_sock {
u32 client_index;
u32 context;
+ u32 app_connect;
u32 vrf;
u8 is_ip4;
u8 ip[16];
@@ -307,6 +309,7 @@ define bind_sock_reply {
@param context - sender context, to match reply w/ request
@param retval - return code for the request
@param handle - connection handle
+ @param app_connect - application connection id from connect msg
@param server_rx_fifo - rx (vpp -> vpp-client) fifo address
@param server_tx_fifo - tx (vpp-client -> vpp) fifo address
@param vpp_event_queue_address - vpp's event queue address
@@ -319,6 +322,7 @@ define connect_sock_reply {
u32 context;
i32 retval;
u64 handle;
+ u32 app_connect;
u64 server_rx_fifo;
u64 server_tx_fifo;
u64 vpp_event_queue_address;
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index 98d6946af85..095cc118fc8 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -677,7 +677,7 @@ vl_api_connect_sock_t_handler (vl_api_connect_sock_t * mp)
/* Got some error, relay it */
done:
- REPLY_MACRO (VL_API_CONNECT_URI_REPLY);
+ REPLY_MACRO (VL_API_CONNECT_SOCK_REPLY);
}
static clib_error_t *