tunnel: Fix API encoding of tunnel flags

Type: fix

API and internal flags do not match 1:1.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I0f4e53b2e071d1c9fffd1b97bf28b4789887b032
This commit is contained in:
Neale Ranns
2022-05-05 06:07:20 +00:00
parent 7e6ffba672
commit 9fac9c8fd5

View File

@@ -60,9 +60,14 @@ tunnel_flags_decode (vl_api_tunnel_flags_t f, tunnel_flags_t *o)
}
vl_api_tunnel_flags_t
tunnel_flags_encode (tunnel_flags_t f)
tunnel_flags_encode (tunnel_flags_t in)
{
return ((vl_api_tunnel_flags_t) f);
vl_api_tunnel_flags_t out = 0;
if (in & TUNNEL_FLAG_TRACK_MTU)
out |= TUNNEL_API_FLAG_TRACK_MTU;
return (out);
}
int