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

Go to the source code of this file.

Functions

VLIB_NODE_FN() ip4_rx_urpf_loose (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_rx_urpf_strict (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_tx_urpf_loose (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_tx_urpf_strict (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip4_rx_urpf_loose_feat, static)
 
 VNET_FEATURE_INIT (ip4_rx_urpf_strict_feat, static)
 
 VNET_FEATURE_INIT (ip4_tx_urpf_loose_feat, static)
 
 VNET_FEATURE_INIT (ip4_tx_urpf_strict_feat, static)
 

Variables

static char * ip4_urpf_error_strings []
 
vlib_node_registration_t ip4_rx_urpf_loose
 (constructor) VLIB_REGISTER_NODE (ip4_rx_urpf_loose) More...
 
vlib_node_registration_t ip4_rx_urpf_strict
 (constructor) VLIB_REGISTER_NODE (ip4_rx_urpf_strict) More...
 
vlib_node_registration_t ip4_tx_urpf_loose
 (constructor) VLIB_REGISTER_NODE (ip4_tx_urpf_loose) More...
 
vlib_node_registration_t ip4_tx_urpf_strict
 (constructor) VLIB_REGISTER_NODE (ip4_tx_urpf_strict) More...
 

Function Documentation

◆ ip4_rx_urpf_loose()

VLIB_NODE_FN() ip4_rx_urpf_loose ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 49 of file ip4_urpf.c.

+ Here is the call graph for this function:

◆ ip4_rx_urpf_strict()

VLIB_NODE_FN() ip4_rx_urpf_strict ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 56 of file ip4_urpf.c.

+ Here is the call graph for this function:

◆ ip4_tx_urpf_loose()

VLIB_NODE_FN() ip4_tx_urpf_loose ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 63 of file ip4_urpf.c.

+ Here is the call graph for this function:

◆ ip4_tx_urpf_strict()

VLIB_NODE_FN() ip4_tx_urpf_strict ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 70 of file ip4_urpf.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT() [1/4]

VNET_FEATURE_INIT ( ip4_rx_urpf_loose_feat  ,
static   
)

◆ VNET_FEATURE_INIT() [2/4]

VNET_FEATURE_INIT ( ip4_rx_urpf_strict_feat  ,
static   
)

◆ VNET_FEATURE_INIT() [3/4]

VNET_FEATURE_INIT ( ip4_tx_urpf_loose_feat  ,
static   
)

◆ VNET_FEATURE_INIT() [4/4]

VNET_FEATURE_INIT ( ip4_tx_urpf_strict_feat  ,
static   
)

Variable Documentation

◆ ip4_rx_urpf_loose

vlib_node_registration_t ip4_rx_urpf_loose
Initial value:
= {
.name = "ip4-rx-urpf-loose",
.vector_size = sizeof (u32),
.n_next_nodes = URPF_N_NEXT,
.next_nodes = {
[URPF_NEXT_DROP] = "ip4-drop",
},
.error_strings = ip4_urpf_error_strings,
.format_buffer = format_ip4_header,
.format_trace = format_urpf_trace,
}

(constructor) VLIB_REGISTER_NODE (ip4_rx_urpf_loose)

Definition at line 78 of file ip4_urpf.c.

◆ ip4_rx_urpf_strict

vlib_node_registration_t ip4_rx_urpf_strict
Initial value:
= {
.name = "ip4-rx-urpf-strict",
.vector_size = sizeof (u32),
.n_next_nodes = URPF_N_NEXT,
.next_nodes = {
[URPF_NEXT_DROP] = "ip4-drop",
},
.error_strings = ip4_urpf_error_strings,
.format_buffer = format_ip4_header,
.format_trace = format_urpf_trace,
}

(constructor) VLIB_REGISTER_NODE (ip4_rx_urpf_strict)

Definition at line 93 of file ip4_urpf.c.

◆ ip4_tx_urpf_loose

vlib_node_registration_t ip4_tx_urpf_loose
Initial value:
= {
.name = "ip4-tx-urpf-loose",
.vector_size = sizeof (u32),
.n_next_nodes = URPF_N_NEXT,
.next_nodes = {
[URPF_NEXT_DROP] = "ip4-drop",
},
.error_strings = ip4_urpf_error_strings,
.format_buffer = format_ip4_header,
.format_trace = format_urpf_trace,
}

(constructor) VLIB_REGISTER_NODE (ip4_tx_urpf_loose)

Definition at line 108 of file ip4_urpf.c.

◆ ip4_tx_urpf_strict

vlib_node_registration_t ip4_tx_urpf_strict
Initial value:
= {
.name = "ip4-tx-urpf-strict",
.vector_size = sizeof (u32),
.n_next_nodes = URPF_N_NEXT,
.next_nodes = {
[URPF_NEXT_DROP] = "ip4-drop",
},
.error_strings = ip4_urpf_error_strings,
.format_buffer = format_ip4_header,
.format_trace = format_urpf_trace,
}

(constructor) VLIB_REGISTER_NODE (ip4_tx_urpf_strict)

Definition at line 123 of file ip4_urpf.c.

◆ ip4_urpf_error_strings

char* ip4_urpf_error_strings[]
static
Initial value:
= {
#define _(a, b)
}

Definition at line 43 of file ip4_urpf.c.

ip4_urpf_error_strings
static char * ip4_urpf_error_strings[]
Definition: ip4_urpf.c:43
format_urpf_trace
static u8 * format_urpf_trace(u8 *s, va_list *va)
Definition: urpf_dp.h:62
URPF_N_NEXT
@ URPF_N_NEXT
Definition: urpf_dp.h:87
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
foreach_urpf_error
#define foreach_urpf_error
Definition: urpf_dp.h:73
u32
unsigned int u32
Definition: types.h:88
format_ip4_header
format_function_t format_ip4_header
Definition: format.h:81
URPF_NEXT_DROP
@ URPF_NEXT_DROP
Definition: urpf_dp.h:86