From: Florin Coras Date: Wed, 4 Oct 2017 09:07:46 +0000 (-0400) Subject: session: fill in bind handle for sock flavored api (VPP-1005) X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=f3d627dd3c8130146429d3a884e0865b98d6a98d;p=odp4vpp.git session: fill in bind handle for sock flavored api (VPP-1005) Change-Id: I492bea060ba5c219ea75e19ebfdad79b1074e04b Signed-off-by: Florin Coras --- diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index 60d9b4de..250f9906 100755 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -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