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:
@@ -60,9 +60,14 @@ tunnel_flags_decode (vl_api_tunnel_flags_t f, tunnel_flags_t *o)
|
|||||||
}
|
}
|
||||||
|
|
||||||
vl_api_tunnel_flags_t
|
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
|
int
|
||||||
|
Reference in New Issue
Block a user