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-Tag: v17.10-rc2~15 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F8653%2F3;p=vpp.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 60d9b4de51b..250f99064de 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