diff options
author | Jon Loeliger <jdl@netgate.com> | 2018-02-16 09:55:30 -0600 |
---|---|---|
committer | Jon Loeliger <jdl@netgate.com> | 2018-02-16 09:57:23 -0600 |
commit | a250882b8fbc3f75d919bffaea10809a37205204 (patch) | |
tree | 0ea100e5ad707acf2f4a31a2da746dd9ee8b3f3a /src/plugins | |
parent | 793c7fe5fcb224c8bf8f9a051be82eef5fd62ca1 (diff) |
memif: VPP-1172: Ensure memif_create reply contains sw_if_index
Change-Id: If5cd2e913770adac4e7320f54584da63012f925d
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/memif/memif_api.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/memif/memif_api.c b/src/plugins/memif/memif_api.c index a48cd188f04..6cb48a8f72d 100644 --- a/src/plugins/memif/memif_api.c +++ b/src/plugins/memif/memif_api.c @@ -224,7 +224,12 @@ vl_api_memif_create_t_handler (vl_api_memif_create_t * mp) vec_free (args.secret); reply: - REPLY_MACRO (VL_API_MEMIF_CREATE_REPLY); + /* *INDENT-OFF* */ + REPLY_MACRO2 (VL_API_MEMIF_CREATE_REPLY, + ({ + rmp->sw_if_index = htonl (args.sw_if_index); + })); + /* *INDENT-ON* */ } /** |