diff options
author | Florin Coras <fcoras@cisco.com> | 2017-10-04 05:07:46 -0400 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2017-10-04 22:03:14 +0000 |
commit | f3d627dd3c8130146429d3a884e0865b98d6a98d (patch) | |
tree | 6d1ebb93119c0a44ae67c9c507bf7cb88621359d | |
parent | de6c03c0f104114d43a53776839600ce792731de (diff) |
session: fill in bind handle for sock flavored api (VPP-1005)
Change-Id: I492bea060ba5c219ea75e19ebfdad79b1074e04b
Signed-off-by: Florin Coras <fcoras@cisco.com>
-rwxr-xr-x | src/vnet/session/session_api.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 |