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
This commit is contained in:

committed by
Damjan Marion

parent
40dc4b35e3
commit
bd0a00a456
@@ -105,13 +105,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);
|
||||
|
Reference in New Issue
Block a user