38 case IKEV2_TRANSFORM_TYPE_ENCR:
41 case IKEV2_TRANSFORM_TYPE_PRF:
44 case IKEV2_TRANSFORM_TYPE_INTEG:
47 case IKEV2_TRANSFORM_TYPE_DH:
50 case IKEV2_TRANSFORM_TYPE_ESN:
57 if (tr->
type == IKEV2_TRANSFORM_TYPE_ENCR &&
69 #define MACRO_FORMAT(lc) \ 70 u8 * format_ikev2_##lc (u8 * s, va_list * args) \ 72 u32 i = va_arg (*args, u32); \ 77 return format (s, "unknown (%u)", i); \ 79 s = format (s, "%s", t); \ 83 #define MACRO_UNFORMAT(lc) \ 85 unformat_ikev2_##lc (unformat_input_t * input, \ 88 u32 * r = va_arg (*args, u32 *); \ 96 #define _(v,f,str) case IKEV2_AUTH_METHOD_##f: t = str; break; 99 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_AUTH_METHOD_##f; 103 #define _(v,f,str) case IKEV2_TRANSFORM_TYPE_##f: t = str; break; 106 #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; 114 #define _(v,f,str) case IKEV2_ID_TYPE_##f: t = str; break; 117 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_ID_TYPE_##f; 121 #define _(v,f,str) case IKEV2_TRANSFORM_ENCR_TYPE_##f: t = str; break; 124 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_ENCR_TYPE_##f; 128 #define _(v,f,str) case IKEV2_TRANSFORM_PRF_TYPE_##f: t = str; break; 131 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_PRF_TYPE_##f; 135 #define _(v,f,str) case IKEV2_TRANSFORM_INTEG_TYPE_##f: t = str; break; 138 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_INTEG_TYPE_##f; 142 #define _(v,f,str) case IKEV2_TRANSFORM_DH_TYPE_##f: t = str; break; 145 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_DH_TYPE_##f; 149 #define _(v,f,str) case IKEV2_TRANSFORM_ESN_TYPE_##f: t = str; break; 152 #define _(v,f,str) else if (unformat (input, str)) *r = IKEV2_TRANSFORM_ESN_TYPE_##f;
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)