FD.io VPP  v21.10.1-2-g0a485f517
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; \
}

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; \
}

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:
unformat_input_t
struct _unformat_input_t unformat_input_t
r
vnet_hw_if_output_node_runtime_t * r
Definition: interface_output.c:1089
format
description fragment has unexpected format
Definition: map.api:433
u32
unsigned int u32
Definition: types.h:88
u8
unsigned char u8
Definition: types.h:56
i
int i
Definition: flowhash_template.h:376