39 case IKEV2_TRANSFORM_TYPE_ENCR:
42 case IKEV2_TRANSFORM_TYPE_PRF:
45 case IKEV2_TRANSFORM_TYPE_INTEG:
48 case IKEV2_TRANSFORM_TYPE_DH:
51 case IKEV2_TRANSFORM_TYPE_ESN:
58 if (tr->
type == IKEV2_TRANSFORM_TYPE_ENCR &&
62 && tr->
attrs[1] == 0x0e)
71 #define MACRO_FORMAT(lc) \ 72 u8 * format_ikev2_##lc (u8 * s, va_list * args) \ 74 u32 i = va_arg (*args, u32); \ 79 return format (s, "unknown (%u)", i); \ 81 s = format (s, "%s", t); \ 85 #define MACRO_UNFORMAT(lc) \ 87 unformat_ikev2_##lc (unformat_input_t * input, \ 90 u32 * r = va_arg (*args, u32 *); \ 98 #define _(v,f,str) case IKEV2_AUTH_METHOD_##f: t = str; break; 101 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_AUTH_METHOD_##f; 104 #define _(v,f,str) case IKEV2_TRANSFORM_TYPE_##f: t = str; break; 107 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_TYPE_##f; 110 #define _(v,f) case IKEV2_NOTIFY_MSG_##f: t = #f; break; 113 #define _(v,f,str) case IKEV2_ID_TYPE_##f: t = str; break; 116 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_ID_TYPE_##f; 119 #define _(v,f,str) case IKEV2_TRANSFORM_ENCR_TYPE_##f: t = str; break; 122 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_ENCR_TYPE_##f; 125 #define _(v,f,str) case IKEV2_TRANSFORM_PRF_TYPE_##f: t = str; break; 128 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_PRF_TYPE_##f; 131 #define _(v,f,str) case IKEV2_TRANSFORM_INTEG_TYPE_##f: t = str; break; 134 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_INTEG_TYPE_##f; 137 #define _(v,f,str) case IKEV2_TRANSFORM_DH_TYPE_##f: t = str; break; 140 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_DH_TYPE_##f; 143 #define _(v,f,str) case IKEV2_TRANSFORM_ESN_TYPE_##f: t = str; break; 146 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_ESN_TYPE_##f;
description fragment has unexpected format
u8 * format_ikev2_transform_prf_type(u8 *s, va_list *args)
u8 * format_ikev2_transform_encr_type(u8 *s, va_list *args)
u8 * format_ikev2_transform_type(u8 *s, va_list *args)
u8 * format_ikev2_transform_dh_type(u8 *s, va_list *args)
u8 * format_ikev2_transform_integ_type(u8 *s, va_list *args)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
u8 * format_ikev2_transform_esn_type(u8 *s, va_list *args)