session: fill in bind handle for sock flavored api (VPP-1005) 53/8653/3
authorFlorin Coras <fcoras@cisco.com>
Wed, 4 Oct 2017 09:07:46 +0000 (05:07 -0400)
committerChris Luke <chris_luke@comcast.com>
Wed, 4 Oct 2017 22:03:14 +0000 (22:03 +0000)
Change-Id: I492bea060ba5c219ea75e19ebfdad79b1074e04b
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/session_api.c

index 60d9b4d..250f990 100755 (executable)
@@ -605,7 +605,12 @@ vl_api_bind_sock_t_handler (vl_api_bind_sock_t * mp)
       rv = vnet_bind (a);
     }
 done:
-  REPLY_MACRO (VL_API_BIND_SOCK_REPLY);
+  /* *INDENT-OFF* */
+  REPLY_MACRO2 (VL_API_BIND_SOCK_REPLY,({
+    if (!rv)
+      rmp->handle = a->handle;
+  }));
+  /* *INDENT-ONF* */
 }
 
 static void