23 #define foreach_tunnel_mode \ 24 _(P2P, "point-to-point") \ 25 _(MP, "multi-point") \ 29 #define _(n, s) TUNNEL_MODE_##n, 40 #define forech_tunnel_encap_decap_flag \ 41 _(NONE, "none", 0x0) \ 42 _(ENCAP_COPY_DF, "encap-copy-df", 0x1) \ 43 _(ENCAP_SET_DF, "encap-set-df", 0x2) \ 44 _(ENCAP_COPY_DSCP, "encap-copy-dscp", 0x4) \ 45 _(ENCAP_COPY_ECN, "encap-copy-ecn", 0x8) \ 46 _(DECAP_COPY_ECN, "decap-copy-ecn", 0x10) \ 47 _(ENCAP_INNER_HASH, "encap-inner-hash", 0x20) 51 #define _(a,b,c) TUNNEL_ENCAP_DECAP_FLAG_##a = c, 56 #define TUNNEL_FLAG_MASK (0x1f)
uword unformat_tunnel_mode(unformat_input_t *input, va_list *args)
tunnel_encap_decap_flags_t_
#define foreach_tunnel_mode
enum tunnel_encap_decap_flags_t_ tunnel_encap_decap_flags_t
u8 * format_tunnel_mode(u8 *s, va_list *args)
uword unformat_tunnel_encap_decap_flags(unformat_input_t *input, va_list *args)
#define forech_tunnel_encap_decap_flag
Keep these idenitical to those in ipip.api.
u8 * format_tunnel_encap_decap_flags(u8 *s, va_list *args)
enum tunnel_mode_t_ tunnel_mode_t