FD.io VPP  v20.09-64-g4f7b92f0a
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

◆ MACRO_FORMAT

#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; \
}
u8 * format(u8 *s, const char *fmt,...)
Definition: format.c:424
unsigned char u8
Definition: types.h:56
unsigned int u32
Definition: types.h:88
sll srl srl sll sra u16x4 i
Definition: vector_sse42.h:317

Definition at line 71 of file ikev2_format.c.

◆ MACRO_UNFORMAT

#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; \
}
unsigned int u32
Definition: types.h:88
struct _unformat_input_t unformat_input_t

Definition at line 85 of file ikev2_format.c.

Function Documentation

◆ format_ikev2_sa_transform()

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: