21 #include <vnet/tunnel/tunnel_types.api_enum.h> 22 #include <vnet/tunnel/tunnel_types.api_types.h> 27 "tunnel API and internal flags enum size differ");
35 return (VNET_API_ERROR_INVALID_VALUE_2);
41 vl_api_tunnel_encap_decap_flags_t
44 return ((vl_api_tunnel_encap_decap_flags_t) f);
53 case TUNNEL_API_MODE_##n: \ 54 *out = TUNNEL_MODE_##n; \ 60 return (VNET_API_ERROR_INVALID_VALUE_2);
71 case TUNNEL_MODE_##n: \ 72 out = TUNNEL_API_MODE_##n; \
vl_api_tunnel_encap_decap_flags_t tunnel_encap_decap_flags_encode(tunnel_encap_decap_flags_t f)
STATIC_ASSERT(sizeof(vl_api_tunnel_encap_decap_flags_t)==sizeof(tunnel_encap_decap_flags_t), "tunnel API and internal flags enum size differ")
int tunnel_mode_decode(vl_api_tunnel_mode_t in, tunnel_mode_t *out)
enum tunnel_encap_decap_flags_t_ tunnel_encap_decap_flags_t
vl_api_tunnel_mode_t tunnel_mode_encode(tunnel_mode_t in)
int tunnel_encap_decap_flags_decode(vl_api_tunnel_encap_decap_flags_t f, tunnel_encap_decap_flags_t *o)
Conversion functions to/from (decode/encode) API types to VPP internal types.
enum tunnel_mode_t_ tunnel_mode_t