Small update to session API 47/7047/1
authorFlorin Coras <fcoras@cisco.com>
Wed, 7 Jun 2017 21:18:48 +0000 (14:18 -0700)
committerFlorin Coras <fcoras@cisco.com>
Wed, 7 Jun 2017 21:23:19 +0000 (14:23 -0700)
Change-Id: I6a566d1dc9531b790bdcb00edc73516f86daeb72
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/session.api
src/vnet/session/session_api.c

index 4aef09d..e01cc75 100644 (file)
@@ -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;
index 98d6946..095cc11 100755 (executable)
@@ -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 *