FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
ikev2_format.c File Reference
+ Include dependency graph for ikev2_format.c:

Go to the source code of this file.

Macros

#define MACRO_FORMAT(lc)
 
#define MACRO_UNFORMAT(lc)
 

Functions

u8format_ikev2_sa_transform (u8 *s, va_list *args)
 

Macro Definition Documentation

#define MACRO_FORMAT (   lc)
Value:
u8 * format_ikev2_##lc (u8 * s, va_list * args) \
{ \
u32 i = va_arg (*args, u32); \
char * t = 0; \
switch (i) { \
foreach_ikev2_##lc \
default: \
return format (s, "unknown (%u)", i); \
} \
s = format (s, "%s", t); \
return s; \
}
int i
u8 * format(u8 *s, const char *fmt,...)
Definition: format.c:419
unsigned int u32
Definition: types.h:88
unsigned char u8
Definition: types.h:56

Definition at line 71 of file ikev2_format.c.

#define MACRO_UNFORMAT (   lc)
Value:
uword \
unformat_ikev2_##lc (unformat_input_t * input, \
va_list * args) \
{ \
u32 * r = va_arg (*args, u32 *); \
if (0) ; \
foreach_ikev2_##lc \
else \
return 0; \
return 1; \
}
struct _unformat_input_t unformat_input_t
unsigned int u32
Definition: types.h:88

Definition at line 85 of file ikev2_format.c.

Function Documentation

u8* format_ikev2_sa_transform ( u8 s,
va_list *  args 
)

Definition at line 25 of file ikev2_format.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: