FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
esp_decrypt.c File Reference
+ Include dependency graph for esp_decrypt.c:

Go to the source code of this file.

Data Structures

struct  esp_decrypt_trace_t
 

Macros

#define foreach_esp_decrypt_next
 
#define foreach_esp_decrypt_post_next
 
#define foreach_esp_decrypt_error
 
#define ESP_ENCRYPT_PD_F_FD_TRANSPORT   (1 << 2)
 

Enumerations

enum  esp_decrypt_next_t { ESP_DECRYPT_N_NEXT, ESP_DECRYPT_N_NEXT }
 
enum  esp_decrypt_post_next_t { ESP_DECRYPT_POST_N_NEXT }
 
enum  esp_decrypt_error_t { ESP_DECRYPT_N_ERROR, ESP_DECRYPT_N_ERROR }
 

Functions

static u8format_esp_decrypt_trace (u8 *s, va_list *args)
 
static_always_inline void esp_process_ops (vlib_main_t *vm, vlib_node_runtime_t *node, vnet_crypto_op_t *ops, vlib_buffer_t *b[], u16 *nexts, int e)
 
static_always_inline void esp_process_chained_ops (vlib_main_t *vm, vlib_node_runtime_t *node, vnet_crypto_op_t *ops, vlib_buffer_t *b[], u16 *nexts, vnet_crypto_op_chunk_t *chunks, int e)
 
static void esp_remove_tail (vlib_main_t *vm, vlib_buffer_t *b, vlib_buffer_t *last, u16 tail)
 
static_always_inline u8esp_move_icv (vlib_main_t *vm, vlib_buffer_t *first, esp_decrypt_packet_data_t *pd, esp_decrypt_packet_data2_t *pd2, u16 icv_sz, u16 *dif)
 
static_always_inline i16 esp_insert_esn (vlib_main_t *vm, ipsec_sa_t *sa, esp_decrypt_packet_data2_t *pd2, u32 *data_len, u8 **digest, u16 *len, vlib_buffer_t *b, u8 *payload)
 
static_always_inline u8esp_move_icv_esn (vlib_main_t *vm, vlib_buffer_t *first, esp_decrypt_packet_data_t *pd, esp_decrypt_packet_data2_t *pd2, u16 icv_sz, ipsec_sa_t *sa, u8 *extra_esn, u32 *len)
 
static_always_inline int esp_decrypt_chain_integ (vlib_main_t *vm, ipsec_per_thread_data_t *ptd, esp_decrypt_packet_data2_t *pd2, ipsec_sa_t *sa0, vlib_buffer_t *b, u8 icv_sz, u8 *start_src, u32 start_len, u8 **digest, u16 *n_ch, u32 *integ_total_len)
 
static_always_inline u32 esp_decrypt_chain_crypto (vlib_main_t *vm, ipsec_per_thread_data_t *ptd, esp_decrypt_packet_data_t *pd, esp_decrypt_packet_data2_t *pd2, ipsec_sa_t *sa0, vlib_buffer_t *b, u8 icv_sz, u8 *start, u32 start_len, u8 **tag, u16 *n_ch)
 
static_always_inline void esp_decrypt_prepare_sync_op (vlib_main_t *vm, vlib_node_runtime_t *node, ipsec_per_thread_data_t *ptd, vnet_crypto_op_t ***crypto_ops, vnet_crypto_op_t ***integ_ops, vnet_crypto_op_t *op, ipsec_sa_t *sa0, u8 *payload, u16 len, u8 icv_sz, u8 iv_sz, esp_decrypt_packet_data_t *pd, esp_decrypt_packet_data2_t *pd2, vlib_buffer_t *b, u16 *next, u32 index)
 
static_always_inline esp_decrypt_error_t esp_decrypt_prepare_async_frame (vlib_main_t *vm, vlib_node_runtime_t *node, ipsec_per_thread_data_t *ptd, vnet_crypto_async_frame_t *f, ipsec_sa_t *sa0, u8 *payload, u16 len, u8 icv_sz, u8 iv_sz, esp_decrypt_packet_data_t *pd, esp_decrypt_packet_data2_t *pd2, u32 bi, vlib_buffer_t *b, u16 *next, u16 async_next)
 
static_always_inline void esp_decrypt_post_crypto (vlib_main_t *vm, vlib_node_runtime_t *node, esp_decrypt_packet_data_t *pd, esp_decrypt_packet_data2_t *pd2, vlib_buffer_t *b, u16 *next, int is_ip6, int is_tun, int is_async)
 
static uword esp_decrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int is_ip6, int is_tun, u16 async_next_node)
 
static uword esp_decrypt_post_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int is_ip6, int is_tun)
 
VLIB_NODE_FN() esp4_decrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() esp4_decrypt_post_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() esp4_decrypt_tun_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() esp4_decrypt_tun_post_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() esp6_decrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() esp6_decrypt_post_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() esp6_decrypt_tun_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() esp6_decrypt_tun_post_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tesp_decrypt_init (vlib_main_t *vm)
 

Variables

static char * esp_decrypt_error_strings []
 
vlib_node_registration_t esp4_decrypt_node
 (constructor) VLIB_REGISTER_NODE (esp4_decrypt_node) More...
 
vlib_node_registration_t esp4_decrypt_post_node
 (constructor) VLIB_REGISTER_NODE (esp4_decrypt_post_node) More...
 
vlib_node_registration_t esp6_decrypt_node
 (constructor) VLIB_REGISTER_NODE (esp6_decrypt_node) More...
 
vlib_node_registration_t esp6_decrypt_post_node
 (constructor) VLIB_REGISTER_NODE (esp6_decrypt_post_node) More...
 
vlib_node_registration_t esp4_decrypt_tun_node
 (constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_node) More...
 
vlib_node_registration_t esp4_decrypt_tun_post_node
 (constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_post_node) More...
 
vlib_node_registration_t esp6_decrypt_tun_node
 (constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_node) More...
 
vlib_node_registration_t esp6_decrypt_tun_post_node
 (constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_post_node) More...
 

Macro Definition Documentation

◆ ESP_ENCRYPT_PD_F_FD_TRANSPORT

#define ESP_ENCRYPT_PD_F_FD_TRANSPORT   (1 << 2)

Definition at line 115 of file esp_decrypt.c.

◆ foreach_esp_decrypt_error

#define foreach_esp_decrypt_error
Value:
_ (RX_PKTS, "ESP pkts received") \
_ (RX_POST_PKTS, "ESP-POST pkts received") \
_ (HANDOFF, "hand-off") \
_ (DECRYPTION_FAILED, "ESP decryption failed") \
_ (INTEG_ERROR, "Integrity check failed") \
_ (CRYPTO_ENGINE_ERROR, "crypto engine error (packet dropped)") \
_ (REPLAY, "SA replayed packet") \
_ (RUNT, "undersized packet") \
_ (NO_BUFFERS, "no buffers (packet dropped)") \
_ (OVERSIZED_HEADER, "buffer with oversized header (dropped)") \
_ (NO_TAIL_SPACE, "no enough buffer tail space (dropped)") \
_ (TUN_NO_PROTO, "no tunnel protocol") \
_ (UNSUP_PAYLOAD, "unsupported payload")

Definition at line 61 of file esp_decrypt.c.

◆ foreach_esp_decrypt_next

#define foreach_esp_decrypt_next
Value:
_ (DROP, "error-drop") \
_ (IP4_INPUT, "ip4-input-no-checksum") \
_ (IP6_INPUT, "ip6-input") \
_ (L2_INPUT, "l2-input") \
_ (MPLS_INPUT, "mpls-input") \
_ (HANDOFF, "handoff")

Definition at line 30 of file esp_decrypt.c.

◆ foreach_esp_decrypt_post_next

#define foreach_esp_decrypt_post_next
Value:
_ (DROP, "error-drop") \
_ (IP4_INPUT, "ip4-input-no-checksum") \
_ (IP6_INPUT, "ip6-input") \
_ (MPLS_INPUT, "mpls-input") \
_ (L2_INPUT, "l2-input")

Definition at line 46 of file esp_decrypt.c.

Enumeration Type Documentation

◆ esp_decrypt_error_t

Enumerator
ESP_DECRYPT_N_ERROR 
ESP_DECRYPT_N_ERROR 

Definition at line 76 of file esp_decrypt.c.

◆ esp_decrypt_next_t

Enumerator
ESP_DECRYPT_N_NEXT 
ESP_DECRYPT_N_NEXT 

Definition at line 39 of file esp_decrypt.c.

◆ esp_decrypt_post_next_t

Enumerator
ESP_DECRYPT_POST_N_NEXT 

Definition at line 54 of file esp_decrypt.c.

Function Documentation

◆ esp4_decrypt_node()

VLIB_NODE_FN() esp4_decrypt_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1398 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp4_decrypt_post_node()

VLIB_NODE_FN() esp4_decrypt_post_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1406 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp4_decrypt_tun_node()

VLIB_NODE_FN() esp4_decrypt_tun_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1413 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp4_decrypt_tun_post_node()

VLIB_NODE_FN() esp4_decrypt_tun_post_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1421 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp6_decrypt_node()

VLIB_NODE_FN() esp6_decrypt_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1428 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp6_decrypt_post_node()

VLIB_NODE_FN() esp6_decrypt_post_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1436 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp6_decrypt_tun_node()

VLIB_NODE_FN() esp6_decrypt_tun_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1443 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp6_decrypt_tun_post_node()

VLIB_NODE_FN() esp6_decrypt_tun_post_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 1451 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp_decrypt_chain_crypto()

static_always_inline u32 esp_decrypt_chain_crypto ( vlib_main_t vm,
ipsec_per_thread_data_t ptd,
esp_decrypt_packet_data_t pd,
esp_decrypt_packet_data2_t pd2,
ipsec_sa_t sa0,
vlib_buffer_t b,
u8  icv_sz,
u8 start,
u32  start_len,
u8 **  tag,
u16 n_ch 
)

Definition at line 406 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_decrypt_chain_integ()

static_always_inline int esp_decrypt_chain_integ ( vlib_main_t vm,
ipsec_per_thread_data_t ptd,
esp_decrypt_packet_data2_t pd2,
ipsec_sa_t sa0,
vlib_buffer_t b,
u8  icv_sz,
u8 start_src,
u32  start_len,
u8 **  digest,
u16 n_ch,
u32 integ_total_len 
)

Definition at line 310 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_decrypt_init()

static clib_error_t* esp_decrypt_init ( vlib_main_t vm)
static

Definition at line 1587 of file esp_decrypt.c.

+ Here is the call graph for this function:

◆ esp_decrypt_inline()

static uword esp_decrypt_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
int  is_ip6,
int  is_tun,
u16  async_next_node 
)
inlinestatic

Definition at line 1014 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_decrypt_post_crypto()

static_always_inline void esp_decrypt_post_crypto ( vlib_main_t vm,
vlib_node_runtime_t node,
esp_decrypt_packet_data_t pd,
esp_decrypt_packet_data2_t pd2,
vlib_buffer_t b,
u16 next,
int  is_ip6,
int  is_tun,
int  is_async 
)

Definition at line 745 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_decrypt_post_inline()

static uword esp_decrypt_post_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
int  is_ip6,
int  is_tun 
)
inlinestatic

Definition at line 1337 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_decrypt_prepare_async_frame()

static_always_inline esp_decrypt_error_t esp_decrypt_prepare_async_frame ( vlib_main_t vm,
vlib_node_runtime_t node,
ipsec_per_thread_data_t ptd,
vnet_crypto_async_frame_t f,
ipsec_sa_t sa0,
u8 payload,
u16  len,
u8  icv_sz,
u8  iv_sz,
esp_decrypt_packet_data_t pd,
esp_decrypt_packet_data2_t pd2,
u32  bi,
vlib_buffer_t b,
u16 next,
u16  async_next 
)

Definition at line 611 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_decrypt_prepare_sync_op()

static_always_inline void esp_decrypt_prepare_sync_op ( vlib_main_t vm,
vlib_node_runtime_t node,
ipsec_per_thread_data_t ptd,
vnet_crypto_op_t ***  crypto_ops,
vnet_crypto_op_t ***  integ_ops,
vnet_crypto_op_t op,
ipsec_sa_t sa0,
u8 payload,
u16  len,
u8  icv_sz,
u8  iv_sz,
esp_decrypt_packet_data_t pd,
esp_decrypt_packet_data2_t pd2,
vlib_buffer_t b,
u16 next,
u32  index 
)

Definition at line 479 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_insert_esn()

static_always_inline i16 esp_insert_esn ( vlib_main_t vm,
ipsec_sa_t sa,
esp_decrypt_packet_data2_t pd2,
u32 data_len,
u8 **  digest,
u16 len,
vlib_buffer_t b,
u8 payload 
)

Definition at line 239 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_move_icv()

static_always_inline u8* esp_move_icv ( vlib_main_t vm,
vlib_buffer_t first,
esp_decrypt_packet_data_t pd,
esp_decrypt_packet_data2_t pd2,
u16  icv_sz,
u16 dif 
)

Definition at line 206 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_move_icv_esn()

static_always_inline u8* esp_move_icv_esn ( vlib_main_t vm,
vlib_buffer_t first,
esp_decrypt_packet_data_t pd,
esp_decrypt_packet_data2_t pd2,
u16  icv_sz,
ipsec_sa_t sa,
u8 extra_esn,
u32 len 
)

Definition at line 275 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_process_chained_ops()

static_always_inline void esp_process_chained_ops ( vlib_main_t vm,
vlib_node_runtime_t node,
vnet_crypto_op_t ops,
vlib_buffer_t b[],
u16 nexts,
vnet_crypto_op_chunk_t chunks,
int  e 
)

Definition at line 149 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_process_ops()

static_always_inline void esp_process_ops ( vlib_main_t vm,
vlib_node_runtime_t node,
vnet_crypto_op_t ops,
vlib_buffer_t b[],
u16 nexts,
int  e 
)

Definition at line 118 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ esp_remove_tail()

static void esp_remove_tail ( vlib_main_t vm,
vlib_buffer_t b,
vlib_buffer_t last,
u16  tail 
)
inlinestatic

Definition at line 181 of file esp_decrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_esp_decrypt_trace()

static u8* format_esp_decrypt_trace ( u8 s,
va_list *  args 
)
static

Definition at line 101 of file esp_decrypt.c.

+ Here is the call graph for this function:

Variable Documentation

◆ esp4_decrypt_node

vlib_node_registration_t esp4_decrypt_node
Initial value:
= {
.name = "esp4-decrypt",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.n_next_nodes = ESP_DECRYPT_N_NEXT,
.next_nodes = {
[ESP_DECRYPT_NEXT_DROP] = "ip4-drop",
[ESP_DECRYPT_NEXT_IP4_INPUT] = "ip4-input-no-checksum",
[ESP_DECRYPT_NEXT_IP6_INPUT] = "ip6-input",
[ESP_DECRYPT_NEXT_MPLS_INPUT] = "mpls-drop",
[ESP_DECRYPT_NEXT_L2_INPUT] = "l2-input",
[ESP_DECRYPT_NEXT_HANDOFF] = "esp4-decrypt-handoff",
},
}

(constructor) VLIB_REGISTER_NODE (esp4_decrypt_node)

Definition at line 1459 of file esp_decrypt.c.

◆ esp4_decrypt_post_node

vlib_node_registration_t esp4_decrypt_post_node
Initial value:
= {
.name = "esp4-decrypt-post",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.sibling_of = "esp4-decrypt",
}

(constructor) VLIB_REGISTER_NODE (esp4_decrypt_post_node)

Definition at line 1479 of file esp_decrypt.c.

◆ esp4_decrypt_tun_node

vlib_node_registration_t esp4_decrypt_tun_node
Initial value:
= {
.name = "esp4-decrypt-tun",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.n_next_nodes = ESP_DECRYPT_N_NEXT,
.next_nodes = {
[ESP_DECRYPT_NEXT_DROP] = "ip4-drop",
[ESP_DECRYPT_NEXT_IP4_INPUT] = "ip4-input-no-checksum",
[ESP_DECRYPT_NEXT_IP6_INPUT] = "ip6-input",
[ESP_DECRYPT_NEXT_MPLS_INPUT] = "mpls-input",
[ESP_DECRYPT_NEXT_L2_INPUT] = "l2-input",
[ESP_DECRYPT_NEXT_HANDOFF] = "esp4-decrypt-tun-handoff",
},
}

(constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_node)

Definition at line 1523 of file esp_decrypt.c.

◆ esp4_decrypt_tun_post_node

vlib_node_registration_t esp4_decrypt_tun_post_node
Initial value:
= {
.name = "esp4-decrypt-tun-post",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.sibling_of = "esp4-decrypt-tun",
}

(constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_post_node)

Definition at line 1541 of file esp_decrypt.c.

◆ esp6_decrypt_node

vlib_node_registration_t esp6_decrypt_node
Initial value:
= {
.name = "esp6-decrypt",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.n_next_nodes = ESP_DECRYPT_N_NEXT,
.next_nodes = {
[ESP_DECRYPT_NEXT_DROP] = "ip6-drop",
[ESP_DECRYPT_NEXT_IP4_INPUT] = "ip4-input-no-checksum",
[ESP_DECRYPT_NEXT_IP6_INPUT] = "ip6-input",
[ESP_DECRYPT_NEXT_MPLS_INPUT] = "mpls-drop",
[ESP_DECRYPT_NEXT_L2_INPUT] = "l2-input",
[ESP_DECRYPT_NEXT_HANDOFF]= "esp6-decrypt-handoff",
},
}

(constructor) VLIB_REGISTER_NODE (esp6_decrypt_node)

Definition at line 1491 of file esp_decrypt.c.

◆ esp6_decrypt_post_node

vlib_node_registration_t esp6_decrypt_post_node
Initial value:
= {
.name = "esp6-decrypt-post",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.sibling_of = "esp6-decrypt",
}

(constructor) VLIB_REGISTER_NODE (esp6_decrypt_post_node)

Definition at line 1511 of file esp_decrypt.c.

◆ esp6_decrypt_tun_node

vlib_node_registration_t esp6_decrypt_tun_node
Initial value:
= {
.name = "esp6-decrypt-tun",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.n_next_nodes = ESP_DECRYPT_N_NEXT,
.next_nodes = {
[ESP_DECRYPT_NEXT_DROP] = "ip6-drop",
[ESP_DECRYPT_NEXT_IP4_INPUT] = "ip4-input-no-checksum",
[ESP_DECRYPT_NEXT_IP6_INPUT] = "ip6-input",
[ESP_DECRYPT_NEXT_MPLS_INPUT] = "mpls-input",
[ESP_DECRYPT_NEXT_L2_INPUT] = "l2-input",
[ESP_DECRYPT_NEXT_HANDOFF]= "esp6-decrypt-tun-handoff",
},
}

(constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_node)

Definition at line 1553 of file esp_decrypt.c.

◆ esp6_decrypt_tun_post_node

vlib_node_registration_t esp6_decrypt_tun_post_node
Initial value:
= {
.name = "esp6-decrypt-tun-post",
.vector_size = sizeof (u32),
.format_trace = format_esp_decrypt_trace,
.error_strings = esp_decrypt_error_strings,
.sibling_of = "esp6-decrypt-tun",
}

(constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_post_node)

Definition at line 1571 of file esp_decrypt.c.

◆ esp_decrypt_error_strings

char* esp_decrypt_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 84 of file esp_decrypt.c.

foreach_esp_decrypt_error
#define foreach_esp_decrypt_error
Definition: esp_decrypt.c:61
HANDOFF
@ HANDOFF
Definition: ip4_full_reass.c:221
DROP
DROP
Definition: error.def:41
format_esp_decrypt_trace
static u8 * format_esp_decrypt_trace(u8 *s, va_list *args)
Definition: esp_decrypt.c:101
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
REPLAY
@ REPLAY
Definition: vlib_api_cli.c:348
ESP_DECRYPT_N_NEXT
@ ESP_DECRYPT_N_NEXT
Definition: esp_decrypt.c:43
esp_decrypt_error_strings
static char * esp_decrypt_error_strings[]
Definition: esp_decrypt.c:84
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123