FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
ip4_sv_reass.c File Reference

IPv4 Shallow Virtual Reassembly. More...

+ Include dependency graph for ip4_sv_reass.c:

Go to the source code of this file.

Data Structures

struct  ip4_sv_reass_key_t
 
union  ip4_sv_reass_val_t
 
union  ip4_sv_reass_kv_t
 
struct  ip4_sv_reass_t
 
struct  ip4_sv_reass_per_thread_t
 
struct  ip4_sv_reass_main_t
 
struct  ip4_sv_reass_trace_t
 
struct  ip4_rehash_cb_ctx
 
struct  ip4_sv_reass_handoff_trace_t
 

Macros

#define MSEC_PER_SEC   1000
 
#define IP4_SV_REASS_TIMEOUT_DEFAULT_MS   100
 
#define IP4_SV_REASS_EXPIRE_WALK_INTERVAL_DEFAULT_MS   10000
 
#define IP4_SV_REASS_MAX_REASSEMBLIES_DEFAULT   1024
 
#define IP4_SV_REASS_MAX_REASSEMBLY_LENGTH_DEFAULT   3
 
#define IP4_SV_REASS_HT_LOAD_FACTOR   (0.75)
 
#define foreach_ip4_sv_reass_handoff_error   _(CONGESTION_DROP, "congestion drop")
 

Enumerations

enum  ip4_sv_reass_rc_t { IP4_SV_REASS_RC_OK, IP4_SV_REASS_RC_TOO_MANY_FRAGMENTS, IP4_SV_REASS_RC_UNSUPP_IP_PROTO }
 
enum  ip4_sv_reass_next_t { IP4_SV_REASSEMBLY_NEXT_INPUT, IP4_SV_REASSEMBLY_NEXT_DROP, IP4_SV_REASSEMBLY_NEXT_HANDOFF, IP4_SV_REASSEMBLY_N_NEXT }
 
enum  ip4_sv_reass_trace_operation_e { REASS_FRAGMENT_CACHE, REASS_FINISH, REASS_FRAGMENT_FORWARD, REASS_PASSTHROUGH }
 
enum  ip4_sv_reass_event_t { IP4_EVENT_CONFIG_CHANGED = 1 }
 
enum  ip4_sv_reass_handoff_error_t { IP4_SV_REASSEMBLY_HANDOFF_N_ERROR }
 

Functions

static u8format_ip4_sv_reass_trace (u8 *s, va_list *args)
 
static void ip4_sv_reass_add_trace (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_sv_reass_main_t *rm, ip4_sv_reass_t *reass, u32 bi, ip4_sv_reass_trace_operation_e action, u32 ip_proto, u16 l4_src_port, u16 l4_dst_port)
 
static void ip4_sv_reass_free (vlib_main_t *vm, ip4_sv_reass_main_t *rm, ip4_sv_reass_per_thread_t *rt, ip4_sv_reass_t *reass)
 
static void ip4_sv_reass_init (ip4_sv_reass_t *reass)
 
static ip4_sv_reass_tip4_sv_reass_find_or_create (vlib_main_t *vm, ip4_sv_reass_main_t *rm, ip4_sv_reass_per_thread_t *rt, ip4_sv_reass_kv_t *kv, u8 *do_handoff)
 
static ip4_sv_reass_rc_t ip4_sv_reass_update (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_sv_reass_main_t *rm, ip4_sv_reass_per_thread_t *rt, ip4_header_t *ip0, ip4_sv_reass_t *reass, u32 bi0)
 
static uword ip4_sv_reass_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, bool is_feature, bool is_output_feature, bool is_custom)
 
VLIB_NODE_FN() ip4_sv_reass_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_sv_reass_node_feature (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip4_sv_reass_feature)
 
VLIB_NODE_FN() ip4_sv_reass_node_output_feature (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip4_sv_reass_output_feature)
 
VLIB_NODE_FN() ip4_sv_reass_custom_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u32 ip4_sv_reass_get_nbuckets ()
 
static int ip4_rehash_cb (clib_bihash_kv_16_8_t *kv, void *_ctx)
 
static void ip4_sv_reass_set_params (u32 timeout_ms, u32 max_reassemblies, u32 max_reassembly_length, u32 expire_walk_interval_ms)
 
vnet_api_error_t ip4_sv_reass_set (u32 timeout_ms, u32 max_reassemblies, u32 max_reassembly_length, u32 expire_walk_interval_ms)
 set ip4 reassembly configuration More...
 
vnet_api_error_t ip4_sv_reass_get (u32 *timeout_ms, u32 *max_reassemblies, u32 *max_reassembly_length, u32 *expire_walk_interval_ms)
 get ip4 reassembly configuration More...
 
static clib_error_tip4_sv_reass_init_function (vlib_main_t *vm)
 
static uword ip4_sv_reass_walk_expired (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
 
static u8format_ip4_sv_reass_key (u8 *s, va_list *args)
 
static u8format_ip4_sv_reass (u8 *s, va_list *args)
 
static clib_error_tshow_ip4_reass (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
vnet_api_error_t ip4_sv_reass_enable_disable (u32 sw_if_index, u8 enable_disable)
 
static u8format_ip4_sv_reass_handoff_trace (u8 *s, va_list *args)
 
static uword ip4_sv_reass_handoff_node_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, bool is_feature)
 
VLIB_NODE_FN() ip4_sv_reass_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_sv_reass_feature_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
int ip4_sv_reass_enable_disable_with_refcnt (u32 sw_if_index, int is_enable)
 
uword ip4_sv_reass_custom_register_next_node (uword node_index)
 
int ip4_sv_reass_output_enable_disable_with_refcnt (u32 sw_if_index, int is_enable)
 

Variables

ip4_sv_reass_main_t ip4_sv_reass_main
 
vlib_node_registration_t ip4_sv_reass_node
 (constructor) VLIB_REGISTER_NODE (ip4_sv_reass_node) More...
 
vlib_node_registration_t ip4_sv_reass_node_feature
 (constructor) VLIB_REGISTER_NODE (ip4_sv_reass_node_feature) More...
 
static char * ip4_sv_reass_error_strings []
 
vlib_node_registration_t ip4_sv_reass_node_output_feature
 (constructor) VLIB_REGISTER_NODE (ip4_sv_reass_node_output_feature) More...
 
vlib_node_registration_t ip4_sv_reass_custom_node
 (constructor) VLIB_REGISTER_NODE (ip4_sv_reass_custom_node) More...
 
vlib_node_registration_t ip4_sv_reass_expire_node
 (constructor) VLIB_REGISTER_NODE (ip4_sv_reass_expire_node) More...
 
static vlib_cli_command_t show_ip4_sv_reass_cmd
 (constructor) VLIB_CLI_COMMAND (show_ip4_sv_reass_cmd) More...
 
static char * ip4_sv_reass_handoff_error_strings []
 
vlib_node_registration_t ip4_sv_reass_handoff_node
 (constructor) VLIB_REGISTER_NODE (ip4_sv_reass_handoff_node) More...
 
vlib_node_registration_t ip4_sv_reass_feature_handoff_node
 (constructor) VLIB_REGISTER_NODE (ip4_sv_reass_feature_handoff_node) More...
 

Detailed Description

IPv4 Shallow Virtual Reassembly.

This file contains the source code for IPv4 Shallow Virtual reassembly.

Definition in file ip4_sv_reass.c.

Macro Definition Documentation

◆ foreach_ip4_sv_reass_handoff_error

#define foreach_ip4_sv_reass_handoff_error   _(CONGESTION_DROP, "congestion drop")

Definition at line 1356 of file ip4_sv_reass.c.

◆ IP4_SV_REASS_EXPIRE_WALK_INTERVAL_DEFAULT_MS

#define IP4_SV_REASS_EXPIRE_WALK_INTERVAL_DEFAULT_MS   10000

Definition at line 33 of file ip4_sv_reass.c.

◆ IP4_SV_REASS_HT_LOAD_FACTOR

#define IP4_SV_REASS_HT_LOAD_FACTOR   (0.75)

Definition at line 36 of file ip4_sv_reass.c.

◆ IP4_SV_REASS_MAX_REASSEMBLIES_DEFAULT

#define IP4_SV_REASS_MAX_REASSEMBLIES_DEFAULT   1024

Definition at line 34 of file ip4_sv_reass.c.

◆ IP4_SV_REASS_MAX_REASSEMBLY_LENGTH_DEFAULT

#define IP4_SV_REASS_MAX_REASSEMBLY_LENGTH_DEFAULT   3

Definition at line 35 of file ip4_sv_reass.c.

◆ IP4_SV_REASS_TIMEOUT_DEFAULT_MS

#define IP4_SV_REASS_TIMEOUT_DEFAULT_MS   100

Definition at line 32 of file ip4_sv_reass.c.

◆ MSEC_PER_SEC

#define MSEC_PER_SEC   1000

Definition at line 31 of file ip4_sv_reass.c.

Enumeration Type Documentation

◆ ip4_sv_reass_event_t

Enumerator
IP4_EVENT_CONFIG_CHANGED 

Definition at line 1032 of file ip4_sv_reass.c.

◆ ip4_sv_reass_handoff_error_t

Enumerator
IP4_SV_REASSEMBLY_HANDOFF_N_ERROR 

Definition at line 1360 of file ip4_sv_reass.c.

◆ ip4_sv_reass_next_t

Enumerator
IP4_SV_REASSEMBLY_NEXT_INPUT 
IP4_SV_REASSEMBLY_NEXT_DROP 
IP4_SV_REASSEMBLY_NEXT_HANDOFF 
IP4_SV_REASSEMBLY_N_NEXT 

Definition at line 168 of file ip4_sv_reass.c.

◆ ip4_sv_reass_rc_t

Enumerator
IP4_SV_REASS_RC_OK 
IP4_SV_REASS_RC_TOO_MANY_FRAGMENTS 
IP4_SV_REASS_RC_UNSUPP_IP_PROTO 

Definition at line 38 of file ip4_sv_reass.c.

◆ ip4_sv_reass_trace_operation_e

Enumerator
REASS_FRAGMENT_CACHE 
REASS_FINISH 
REASS_FRAGMENT_FORWARD 
REASS_PASSTHROUGH 

Definition at line 176 of file ip4_sv_reass.c.

Function Documentation

◆ format_ip4_sv_reass()

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

Definition at line 1261 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ format_ip4_sv_reass_handoff_trace()

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

Definition at line 1380 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ format_ip4_sv_reass_key()

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

Definition at line 1249 of file ip4_sv_reass.c.

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

◆ format_ip4_sv_reass_trace()

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

Definition at line 198 of file ip4_sv_reass.c.

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

◆ ip4_rehash_cb()

static int ip4_rehash_cb ( clib_bihash_kv_16_8_t kv,
void *  _ctx 
)
static

Definition at line 1045 of file ip4_sv_reass.c.

+ Here is the caller graph for this function:

◆ ip4_sv_reass_add_trace()

static void ip4_sv_reass_add_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_sv_reass_main_t rm,
ip4_sv_reass_t reass,
u32  bi,
ip4_sv_reass_trace_operation_e  action,
u32  ip_proto,
u16  l4_src_port,
u16  l4_dst_port 
)
static

Definition at line 232 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_custom_node()

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

Definition at line 1004 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ ip4_sv_reass_custom_register_next_node()

uword ip4_sv_reass_custom_register_next_node ( uword  node_index)

Definition at line 1527 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_enable_disable()

vnet_api_error_t ip4_sv_reass_enable_disable ( u32  sw_if_index,
u8  enable_disable 
)

Definition at line 1348 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_enable_disable_with_refcnt()

int ip4_sv_reass_enable_disable_with_refcnt ( u32  sw_if_index,
int  is_enable 
)

Definition at line 1499 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_feature_handoff_node()

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

Definition at line 1470 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ ip4_sv_reass_find_or_create()

static ip4_sv_reass_t* ip4_sv_reass_find_or_create ( vlib_main_t vm,
ip4_sv_reass_main_t rm,
ip4_sv_reass_per_thread_t rt,
ip4_sv_reass_kv_t kv,
u8 do_handoff 
)
inlinestatic

Definition at line 303 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_free()

static void ip4_sv_reass_free ( vlib_main_t vm,
ip4_sv_reass_main_t rm,
ip4_sv_reass_per_thread_t rt,
ip4_sv_reass_t reass 
)
inlinestatic

Definition at line 260 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_get()

vnet_api_error_t ip4_sv_reass_get ( u32 timeout_ms,
u32 max_reassemblies,
u32 max_reassembly_length,
u32 expire_walk_interval_ms 
)

get ip4 reassembly configuration

Definition at line 1106 of file ip4_sv_reass.c.

+ Here is the caller graph for this function:

◆ ip4_sv_reass_get_nbuckets()

static u32 ip4_sv_reass_get_nbuckets ( )
inlinestatic

Definition at line 1015 of file ip4_sv_reass.c.

+ Here is the caller graph for this function:

◆ ip4_sv_reass_handoff_node()

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

Definition at line 1443 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ ip4_sv_reass_handoff_node_inline()

static uword ip4_sv_reass_handoff_node_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
bool  is_feature 
)
inlinestatic

Definition at line 1395 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_init()

static void ip4_sv_reass_init ( ip4_sv_reass_t reass)
inlinestatic

Definition at line 296 of file ip4_sv_reass.c.

+ Here is the caller graph for this function:

◆ ip4_sv_reass_init_function()

static clib_error_t* ip4_sv_reass_init_function ( vlib_main_t vm)
static

Definition at line 1117 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ ip4_sv_reass_inline()

static uword ip4_sv_reass_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
bool  is_feature,
bool  is_output_feature,
bool  is_custom 
)
inlinestatic

Definition at line 425 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_node()

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

Definition at line 888 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ ip4_sv_reass_node_feature()

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

Definition at line 915 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ ip4_sv_reass_node_output_feature()

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

Definition at line 950 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ ip4_sv_reass_output_enable_disable_with_refcnt()

int ip4_sv_reass_output_enable_disable_with_refcnt ( u32  sw_if_index,
int  is_enable 
)

Definition at line 1534 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_set()

vnet_api_error_t ip4_sv_reass_set ( u32  timeout_ms,
u32  max_reassemblies,
u32  max_reassembly_length,
u32  expire_walk_interval_ms 
)

set ip4 reassembly configuration

Definition at line 1068 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_set_params()

static void ip4_sv_reass_set_params ( u32  timeout_ms,
u32  max_reassemblies,
u32  max_reassembly_length,
u32  expire_walk_interval_ms 
)
static

Definition at line 1056 of file ip4_sv_reass.c.

+ Here is the caller graph for this function:

◆ ip4_sv_reass_update()

static ip4_sv_reass_rc_t ip4_sv_reass_update ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_sv_reass_main_t rm,
ip4_sv_reass_per_thread_t rt,
ip4_header_t ip0,
ip4_sv_reass_t reass,
u32  bi0 
)
inlinestatic

Definition at line 374 of file ip4_sv_reass.c.

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

◆ ip4_sv_reass_walk_expired()

static uword ip4_sv_reass_walk_expired ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t f 
)
static

Definition at line 1166 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ show_ip4_reass()

static clib_error_t* show_ip4_reass ( vlib_main_t vm,
unformat_input_t input,
CLIB_UNUSED(vlib_cli_command_t *lmd)   
)
static

Definition at line 1289 of file ip4_sv_reass.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT() [1/2]

VNET_FEATURE_INIT ( ip4_sv_reass_feature  )

◆ VNET_FEATURE_INIT() [2/2]

VNET_FEATURE_INIT ( ip4_sv_reass_output_feature  )

Variable Documentation

◆ ip4_sv_reass_custom_node

vlib_node_registration_t ip4_sv_reass_custom_node
Initial value:
= {
.name = "ip4-sv-reassembly-custom-next",
.vector_size = sizeof (u32),
.format_trace = format_ip4_sv_reass_trace,
.error_strings = ip4_sv_reass_error_strings,
.n_next_nodes = IP4_SV_REASSEMBLY_N_NEXT,
.next_nodes =
{
[IP4_SV_REASSEMBLY_NEXT_HANDOFF] = "ip4-sv-reassembly-handoff",
},
}
static u8 * format_ip4_sv_reass_trace(u8 *s, va_list *args)
Definition: ip4_sv_reass.c:198
unsigned int u32
Definition: types.h:88
static char * ip4_sv_reass_error_strings[]
Definition: ip4_sv_reass.c:882
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (ip4_sv_reass_custom_node)

Definition at line 987 of file ip4_sv_reass.c.

◆ ip4_sv_reass_error_strings

char* ip4_sv_reass_error_strings[]
static
Initial value:
= {
#define _(sym, string)
}
#define foreach_ip4_error
Definition: ip4_error.h:43

Definition at line 882 of file ip4_sv_reass.c.

◆ ip4_sv_reass_expire_node

vlib_node_registration_t ip4_sv_reass_expire_node
Initial value:
= {
.name = "ip4-sv-reassembly-expire-walk",
.format_trace = format_ip4_sv_reass_trace,
.error_strings = ip4_sv_reass_error_strings,
}
static u8 * format_ip4_sv_reass_trace(u8 *s, va_list *args)
Definition: ip4_sv_reass.c:198
static char * ip4_sv_reass_error_strings[]
Definition: ip4_sv_reass.c:882
#define ARRAY_LEN(x)
Definition: clib.h:67
static uword ip4_sv_reass_walk_expired(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)

(constructor) VLIB_REGISTER_NODE (ip4_sv_reass_expire_node)

Definition at line 1237 of file ip4_sv_reass.c.

◆ ip4_sv_reass_feature_handoff_node

vlib_node_registration_t ip4_sv_reass_feature_handoff_node
Initial value:
= {
.name = "ip4-sv-reass-feature-hoff",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static char * ip4_sv_reass_handoff_error_strings[]
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_ip4_sv_reass_handoff_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (ip4_sv_reass_feature_handoff_node)

Definition at line 1482 of file ip4_sv_reass.c.

◆ ip4_sv_reass_handoff_error_strings

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

Definition at line 1368 of file ip4_sv_reass.c.

◆ ip4_sv_reass_handoff_node

vlib_node_registration_t ip4_sv_reass_handoff_node
Initial value:
= {
.name = "ip4-sv-reassembly-handoff",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static char * ip4_sv_reass_handoff_error_strings[]
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_ip4_sv_reass_handoff_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (ip4_sv_reass_handoff_node)

Definition at line 1453 of file ip4_sv_reass.c.

◆ ip4_sv_reass_main

ip4_sv_reass_main_t ip4_sv_reass_main

Definition at line 165 of file ip4_sv_reass.c.

◆ ip4_sv_reass_node

vlib_node_registration_t ip4_sv_reass_node
Initial value:
= {
.name = "ip4-sv-reassembly",
.vector_size = sizeof (u32),
.format_trace = format_ip4_sv_reass_trace,
.error_strings = ip4_sv_reass_error_strings,
.n_next_nodes = IP4_SV_REASSEMBLY_N_NEXT,
.next_nodes =
{
[IP4_SV_REASSEMBLY_NEXT_HANDOFF] = "ip4-sv-reassembly-handoff",
},
}
static u8 * format_ip4_sv_reass_trace(u8 *s, va_list *args)
Definition: ip4_sv_reass.c:198
unsigned int u32
Definition: types.h:88
static char * ip4_sv_reass_error_strings[]
Definition: ip4_sv_reass.c:882
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (ip4_sv_reass_node)

Definition at line 898 of file ip4_sv_reass.c.

◆ ip4_sv_reass_node_feature

vlib_node_registration_t ip4_sv_reass_node_feature
Initial value:
= {
.name = "ip4-sv-reassembly-feature",
.vector_size = sizeof (u32),
.format_trace = format_ip4_sv_reass_trace,
.error_strings = ip4_sv_reass_error_strings,
.n_next_nodes = IP4_SV_REASSEMBLY_N_NEXT,
.next_nodes =
{
[IP4_SV_REASSEMBLY_NEXT_HANDOFF] = "ip4-sv-reass-feature-hoff",
},
}
static u8 * format_ip4_sv_reass_trace(u8 *s, va_list *args)
Definition: ip4_sv_reass.c:198
unsigned int u32
Definition: types.h:88
static char * ip4_sv_reass_error_strings[]
Definition: ip4_sv_reass.c:882
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (ip4_sv_reass_node_feature)

Definition at line 925 of file ip4_sv_reass.c.

◆ ip4_sv_reass_node_output_feature

vlib_node_registration_t ip4_sv_reass_node_output_feature
Initial value:
= {
.name = "ip4-sv-reassembly-output-feature",
.vector_size = sizeof (u32),
.format_trace = format_ip4_sv_reass_trace,
.error_strings = ip4_sv_reass_error_strings,
.n_next_nodes = IP4_SV_REASSEMBLY_N_NEXT,
.next_nodes =
{
[IP4_SV_REASSEMBLY_NEXT_HANDOFF] = "ip4-sv-reass-feature-hoff",
},
}
static u8 * format_ip4_sv_reass_trace(u8 *s, va_list *args)
Definition: ip4_sv_reass.c:198
unsigned int u32
Definition: types.h:88
static char * ip4_sv_reass_error_strings[]
Definition: ip4_sv_reass.c:882
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (ip4_sv_reass_node_output_feature)

Definition at line 961 of file ip4_sv_reass.c.

◆ show_ip4_sv_reass_cmd

vlib_cli_command_t show_ip4_sv_reass_cmd
static
Initial value:
= {
.path = "show ip4-sv-reassembly",
.short_help = "show ip4-sv-reassembly [details]",
.function = show_ip4_reass,
}
static clib_error_t * show_ip4_reass(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))

(constructor) VLIB_CLI_COMMAND (show_ip4_sv_reass_cmd)

Definition at line 1339 of file ip4_sv_reass.c.