diff options
author | Miklos Tirpak <miklos.tirpak@gmail.com> | 2019-10-22 11:01:42 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-31 12:16:45 +0000 |
commit | f3ecd4c02938145cd5d072d47df0750a518e7581 (patch) | |
tree | 8394b8eb985ac15469ceef4da61f3754632eea44 /src/plugins | |
parent | cd0c5d8373d04f9e49b2ad630632e7940d841986 (diff) |
gtpu: msg id fix in send_gtpu_tunnel_details api
Type: fix
_vl_msg_id must start at msg_id_base.
Signed-off-by: Miklos Tirpak <miklos.tirpak@gmail.com>
Change-Id: Id3f05683c873fcac47667a9736e45e85849b740c
(cherry picked from commit bd0a00a45637c1dde533ef6c3798418c2ab15009)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gtpu/gtpu_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/gtpu/gtpu_api.c b/src/plugins/gtpu/gtpu_api.c index f2f1c297850..e5e4e33caa5 100644 --- a/src/plugins/gtpu/gtpu_api.c +++ b/src/plugins/gtpu/gtpu_api.c @@ -151,13 +151,14 @@ static void send_gtpu_tunnel_details (gtpu_tunnel_t * t, vl_api_registration_t * reg, u32 context) { vl_api_gtpu_tunnel_details_t *rmp; + gtpu_main_t *gtm = >pu_main; ip4_main_t *im4 = &ip4_main; ip6_main_t *im6 = &ip6_main; u8 is_ipv6 = !ip46_address_is_ip4 (&t->dst); rmp = vl_msg_api_alloc (sizeof (*rmp)); clib_memset (rmp, 0, sizeof (*rmp)); - rmp->_vl_msg_id = ntohs (VL_API_GTPU_TUNNEL_DETAILS); + rmp->_vl_msg_id = ntohs (VL_API_GTPU_TUNNEL_DETAILS + gtm->msg_id_base); if (is_ipv6) { memcpy (rmp->src_address, t->src.ip6.as_u8, 16); |