FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ip4_full_reass.c File Reference

IPv4 Full Reassembly. More...

+ Include dependency graph for ip4_full_reass.c:

Go to the source code of this file.

Data Structures

struct  ip4_full_reass_key_t
 
union  ip4_full_reass_val_t
 
union  ip4_full_reass_kv_t
 
struct  ip4_full_reass_t
 
struct  ip4_full_reass_per_thread_t
 
struct  ip4_full_reass_main_t
 
struct  ip4_full_reass_range_trace_t
 
struct  ip4_full_reass_trace_t
 
struct  ip4_rehash_cb_ctx
 
struct  ip4_full_reass_handoff_trace_t
 

Macros

#define MSEC_PER_SEC   1000
 
#define IP4_REASS_TIMEOUT_DEFAULT_MS   100
 
#define IP4_REASS_EXPIRE_WALK_INTERVAL_DEFAULT_MS   10000
 
#define IP4_REASS_MAX_REASSEMBLIES_DEFAULT   1024
 
#define IP4_REASS_MAX_REASSEMBLY_LENGTH_DEFAULT   3
 
#define IP4_REASS_HT_LOAD_FACTOR   (0.75)
 
#define IP4_REASS_DEBUG_BUFFERS   0
 
#define IP4_REASS_DEBUG_BUFFER(...)
 
#define foreach_ip4_full_reass_handoff_error   _(CONGESTION_DROP, "congestion drop")
 

Enumerations

enum  ip4_full_reass_rc_t {
  IP4_REASS_RC_OK, IP4_REASS_RC_TOO_MANY_FRAGMENTS, IP4_REASS_RC_INTERNAL_ERROR, IP4_REASS_RC_NO_BUF,
  IP4_REASS_RC_HANDOFF
}
 
enum  ip4_full_reass_next_t { IP4_FULL_REASS_NEXT_INPUT, IP4_FULL_REASS_NEXT_DROP, IP4_FULL_REASS_NEXT_HANDOFF, IP4_FULL_REASS_N_NEXT }
 
enum  ip4_full_reass_node_type_t { NORMAL, FEATURE, CUSTOM }
 
enum  ip4_full_reass_trace_operation_e {
  RANGE_NEW, RANGE_SHRINK, RANGE_DISCARD, RANGE_OVERLAP,
  FINALIZE, HANDOFF
}
 
enum  ip4_full_reass_event_t { IP4_EVENT_CONFIG_CHANGED = 1 }
 
enum  ip4_full_reass_handoff_error_t { IP4_FULL_REASS_HANDOFF_N_ERROR }
 

Functions

static u32 ip4_full_reass_buffer_get_data_offset (vlib_buffer_t *b)
 
static u16 ip4_full_reass_buffer_get_data_len (vlib_buffer_t *b)
 
static void ip4_full_reass_trace_details (vlib_main_t *vm, u32 bi, ip4_full_reass_range_trace_t *trace)
 
static u8format_ip4_full_reass_range_trace (u8 *s, va_list *args)
 
static u8format_ip4_full_reass_trace (u8 *s, va_list *args)
 
static void ip4_full_reass_add_trace (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_full_reass_main_t *rm, ip4_full_reass_t *reass, u32 bi, ip4_full_reass_trace_operation_e action, u32 size_diff, u32 thread_id_to)
 
static void ip4_full_reass_free_ctx (ip4_full_reass_per_thread_t *rt, ip4_full_reass_t *reass)
 
static void ip4_full_reass_free (ip4_full_reass_main_t *rm, ip4_full_reass_per_thread_t *rt, ip4_full_reass_t *reass)
 
static void ip4_full_reass_drop_all (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_full_reass_main_t *rm, ip4_full_reass_t *reass)
 
static void ip4_full_reass_init (ip4_full_reass_t *reass)
 
static ip4_full_reass_tip4_full_reass_find_or_create (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_full_reass_main_t *rm, ip4_full_reass_per_thread_t *rt, ip4_full_reass_kv_t *kv, u8 *do_handoff)
 
static ip4_full_reass_rc_t ip4_full_reass_finalize (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_full_reass_main_t *rm, ip4_full_reass_per_thread_t *rt, ip4_full_reass_t *reass, u32 *bi0, u32 *next0, u32 *error0, bool is_custom)
 
static ip4_full_reass_rc_t ip4_full_reass_insert_range_in_chain (vlib_main_t *vm, ip4_full_reass_main_t *rm, ip4_full_reass_per_thread_t *rt, ip4_full_reass_t *reass, u32 prev_range_bi, u32 new_next_bi)
 
static ip4_full_reass_rc_t ip4_full_reass_remove_range_from_chain (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_full_reass_main_t *rm, ip4_full_reass_t *reass, u32 prev_range_bi, u32 discard_bi)
 
static ip4_full_reass_rc_t ip4_full_reass_update (vlib_main_t *vm, vlib_node_runtime_t *node, ip4_full_reass_main_t *rm, ip4_full_reass_per_thread_t *rt, ip4_full_reass_t *reass, u32 *bi0, u32 *next0, u32 *error0, bool is_custom, u32 *handoff_thread_idx)
 
static uword ip4_full_reass_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, ip4_full_reass_node_type_t type)
 
VLIB_NODE_FN() ip4_full_reass_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_full_reass_node_feature (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip4_full_reass_feature, static)
 
VLIB_NODE_FN() ip4_full_reass_node_custom (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip4_full_reass_custom, static)
 
uword ip4_full_reass_custom_register_next_node (uword node_index)
 
static u32 ip4_full_reass_get_nbuckets ()
 
static int ip4_rehash_cb (clib_bihash_kv_16_8_t *kv, void *_ctx)
 
static void ip4_full_reass_set_params (u32 timeout_ms, u32 max_reassemblies, u32 max_reassembly_length, u32 expire_walk_interval_ms)
 
vnet_api_error_t ip4_full_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_full_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_full_reass_init_function (vlib_main_t *vm)
 
static uword ip4_full_reass_walk_expired (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
 
static u8format_ip4_full_reass_key (u8 *s, va_list *args)
 
static u8format_ip4_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_full_reass_enable_disable (u32 sw_if_index, u8 enable_disable)
 
static u8format_ip4_full_reass_handoff_trace (u8 *s, va_list *args)
 
static uword ip4_full_reass_handoff_node_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, ip4_full_reass_node_type_t type)
 
VLIB_NODE_FN() ip4_full_reass_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_full_reass_feature_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_full_reass_custom_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
int ip4_full_reass_enable_disable_with_refcnt (u32 sw_if_index, int is_enable)
 

Variables

ip4_full_reass_main_t ip4_full_reass_main
 
vlib_node_registration_t ip4_full_reass_node
 (constructor) VLIB_REGISTER_NODE (ip4_full_reass_node) More...
 
vlib_node_registration_t ip4_full_reass_node_feature
 (constructor) VLIB_REGISTER_NODE (ip4_full_reass_node_feature) More...
 
vlib_node_registration_t ip4_full_reass_node_custom
 (constructor) VLIB_REGISTER_NODE (ip4_full_reass_node_custom) More...
 
static char * ip4_full_reass_error_strings []
 
vlib_node_registration_t ip4_full_reass_expire_node
 (constructor) VLIB_REGISTER_NODE (ip4_full_reass_expire_node) More...
 
static vlib_cli_command_t show_ip4_full_reass_cmd
 (constructor) VLIB_CLI_COMMAND (show_ip4_full_reass_cmd) More...
 
static char * ip4_full_reass_handoff_error_strings []
 
vlib_node_registration_t ip4_full_reass_handoff_node
 (constructor) VLIB_REGISTER_NODE (ip4_full_reass_handoff_node) More...
 
vlib_node_registration_t ip4_full_reass_feature_handoff_node
 (constructor) VLIB_REGISTER_NODE (ip4_full_reass_feature_handoff_node) More...
 
vlib_node_registration_t ip4_full_reass_custom_handoff_node
 (constructor) VLIB_REGISTER_NODE (ip4_full_reass_custom_handoff_node) More...
 

Detailed Description

IPv4 Full Reassembly.

This file contains the source code for IPv4 full reassembly.

Definition in file ip4_full_reass.c.

Macro Definition Documentation

◆ foreach_ip4_full_reass_handoff_error

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

Definition at line 1752 of file ip4_full_reass.c.

◆ IP4_REASS_DEBUG_BUFFER

#define IP4_REASS_DEBUG_BUFFER (   ...)

Definition at line 57 of file ip4_full_reass.c.

◆ IP4_REASS_DEBUG_BUFFERS

#define IP4_REASS_DEBUG_BUFFERS   0

Definition at line 38 of file ip4_full_reass.c.

◆ IP4_REASS_EXPIRE_WALK_INTERVAL_DEFAULT_MS

#define IP4_REASS_EXPIRE_WALK_INTERVAL_DEFAULT_MS   10000

Definition at line 33 of file ip4_full_reass.c.

◆ IP4_REASS_HT_LOAD_FACTOR

#define IP4_REASS_HT_LOAD_FACTOR   (0.75)

Definition at line 36 of file ip4_full_reass.c.

◆ IP4_REASS_MAX_REASSEMBLIES_DEFAULT

#define IP4_REASS_MAX_REASSEMBLIES_DEFAULT   1024

Definition at line 34 of file ip4_full_reass.c.

◆ IP4_REASS_MAX_REASSEMBLY_LENGTH_DEFAULT

#define IP4_REASS_MAX_REASSEMBLY_LENGTH_DEFAULT   3

Definition at line 35 of file ip4_full_reass.c.

◆ IP4_REASS_TIMEOUT_DEFAULT_MS

#define IP4_REASS_TIMEOUT_DEFAULT_MS   100

Definition at line 32 of file ip4_full_reass.c.

◆ MSEC_PER_SEC

#define MSEC_PER_SEC   1000

Definition at line 31 of file ip4_full_reass.c.

Enumeration Type Documentation

◆ ip4_full_reass_event_t

Enumerator
IP4_EVENT_CONFIG_CHANGED 

Definition at line 1412 of file ip4_full_reass.c.

◆ ip4_full_reass_handoff_error_t

Enumerator
IP4_FULL_REASS_HANDOFF_N_ERROR 

Definition at line 1756 of file ip4_full_reass.c.

◆ ip4_full_reass_next_t

Enumerator
IP4_FULL_REASS_NEXT_INPUT 
IP4_FULL_REASS_NEXT_DROP 
IP4_FULL_REASS_NEXT_HANDOFF 
IP4_FULL_REASS_N_NEXT 

Definition at line 199 of file ip4_full_reass.c.

◆ ip4_full_reass_node_type_t

Enumerator
NORMAL 
FEATURE 
CUSTOM 

Definition at line 207 of file ip4_full_reass.c.

◆ ip4_full_reass_rc_t

Enumerator
IP4_REASS_RC_OK 
IP4_REASS_RC_TOO_MANY_FRAGMENTS 
IP4_REASS_RC_INTERNAL_ERROR 
IP4_REASS_RC_NO_BUF 
IP4_REASS_RC_HANDOFF 

Definition at line 60 of file ip4_full_reass.c.

◆ ip4_full_reass_trace_operation_e

Enumerator
RANGE_NEW 
RANGE_SHRINK 
RANGE_DISCARD 
RANGE_OVERLAP 
FINALIZE 
HANDOFF 

Definition at line 214 of file ip4_full_reass.c.

Function Documentation

◆ format_ip4_full_reass_handoff_trace()

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

Definition at line 1776 of file ip4_full_reass.c.

◆ format_ip4_full_reass_key()

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

Definition at line 1630 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ format_ip4_full_reass_range_trace()

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

Definition at line 268 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ format_ip4_full_reass_trace()

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

Definition at line 280 of file ip4_full_reass.c.

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

◆ format_ip4_reass()

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

Definition at line 1642 of file ip4_full_reass.c.

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

◆ ip4_full_reass_add_trace()

static void ip4_full_reass_add_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_full_reass_main_t rm,
ip4_full_reass_t reass,
u32  bi,
ip4_full_reass_trace_operation_e  action,
u32  size_diff,
u32  thread_id_to 
)
static

Definition at line 337 of file ip4_full_reass.c.

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

◆ ip4_full_reass_buffer_get_data_len()

static u16 ip4_full_reass_buffer_get_data_len ( vlib_buffer_t b)
inlinestatic

Definition at line 114 of file ip4_full_reass.c.

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

◆ ip4_full_reass_buffer_get_data_offset()

static u32 ip4_full_reass_buffer_get_data_offset ( vlib_buffer_t b)
inlinestatic

Definition at line 107 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ ip4_full_reass_custom_handoff_node()

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

Definition at line 1906 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_custom_register_next_node()

uword ip4_full_reass_custom_register_next_node ( uword  node_index)

Definition at line 1388 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_drop_all()

static void ip4_full_reass_drop_all ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_full_reass_main_t rm,
ip4_full_reass_t reass 
)
inlinestatic

Definition at line 416 of file ip4_full_reass.c.

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

◆ ip4_full_reass_enable_disable()

vnet_api_error_t ip4_full_reass_enable_disable ( u32  sw_if_index,
u8  enable_disable 
)

Definition at line 1743 of file ip4_full_reass.c.

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

◆ ip4_full_reass_enable_disable_with_refcnt()

int ip4_full_reass_enable_disable_with_refcnt ( u32  sw_if_index,
int  is_enable 
)

Definition at line 1934 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_feature_handoff_node()

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

Definition at line 1879 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_finalize()

static ip4_full_reass_rc_t ip4_full_reass_finalize ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_full_reass_main_t rm,
ip4_full_reass_per_thread_t rt,
ip4_full_reass_t reass,
u32 bi0,
u32 next0,
u32 error0,
bool  is_custom 
)
inlinestatic

Definition at line 562 of file ip4_full_reass.c.

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

◆ ip4_full_reass_find_or_create()

static ip4_full_reass_t* ip4_full_reass_find_or_create ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_full_reass_main_t rm,
ip4_full_reass_per_thread_t rt,
ip4_full_reass_kv_t kv,
u8 do_handoff 
)
inlinestatic

Definition at line 488 of file ip4_full_reass.c.

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

◆ ip4_full_reass_free()

static void ip4_full_reass_free ( ip4_full_reass_main_t rm,
ip4_full_reass_per_thread_t rt,
ip4_full_reass_t reass 
)
inlinestatic

Definition at line 404 of file ip4_full_reass.c.

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

◆ ip4_full_reass_free_ctx()

static void ip4_full_reass_free_ctx ( ip4_full_reass_per_thread_t rt,
ip4_full_reass_t reass 
)
inlinestatic

Definition at line 396 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ ip4_full_reass_get()

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

get ip4 reassembly configuration

Definition at line 1486 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ ip4_full_reass_get_nbuckets()

static u32 ip4_full_reass_get_nbuckets ( )
inlinestatic

Definition at line 1395 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ ip4_full_reass_handoff_node()

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

Definition at line 1853 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_handoff_node_inline()

static uword ip4_full_reass_handoff_node_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
ip4_full_reass_node_type_t  type 
)
inlinestatic

Definition at line 1791 of file ip4_full_reass.c.

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

◆ ip4_full_reass_init()

static void ip4_full_reass_init ( ip4_full_reass_t reass)
inlinestatic

Definition at line 478 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ ip4_full_reass_init_function()

static clib_error_t* ip4_full_reass_init_function ( vlib_main_t vm)
static

Definition at line 1498 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_inline()

static uword ip4_full_reass_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
ip4_full_reass_node_type_t  type 
)
inlinestatic

Definition at line 1111 of file ip4_full_reass.c.

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

◆ ip4_full_reass_insert_range_in_chain()

static ip4_full_reass_rc_t ip4_full_reass_insert_range_in_chain ( vlib_main_t vm,
ip4_full_reass_main_t rm,
ip4_full_reass_per_thread_t rt,
ip4_full_reass_t reass,
u32  prev_range_bi,
u32  new_next_bi 
)
inlinestatic

Definition at line 766 of file ip4_full_reass.c.

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

◆ ip4_full_reass_node()

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

Definition at line 1292 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_node_custom()

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

Definition at line 1351 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_node_feature()

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

Definition at line 1317 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ ip4_full_reass_remove_range_from_chain()

static ip4_full_reass_rc_t ip4_full_reass_remove_range_from_chain ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_full_reass_main_t rm,
ip4_full_reass_t reass,
u32  prev_range_bi,
u32  discard_bi 
)
inlinestatic

Definition at line 800 of file ip4_full_reass.c.

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

◆ ip4_full_reass_set()

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

set ip4 reassembly configuration

Definition at line 1448 of file ip4_full_reass.c.

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

◆ ip4_full_reass_set_params()

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

Definition at line 1436 of file ip4_full_reass.c.

+ Here is the caller graph for this function:

◆ ip4_full_reass_trace_details()

static void ip4_full_reass_trace_details ( vlib_main_t vm,
u32  bi,
ip4_full_reass_range_trace_t trace 
)
static

Definition at line 255 of file ip4_full_reass.c.

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

◆ ip4_full_reass_update()

static ip4_full_reass_rc_t ip4_full_reass_update ( vlib_main_t vm,
vlib_node_runtime_t node,
ip4_full_reass_main_t rm,
ip4_full_reass_per_thread_t rt,
ip4_full_reass_t reass,
u32 bi0,
u32 next0,
u32 error0,
bool  is_custom,
u32 handoff_thread_idx 
)
inlinestatic

Definition at line 856 of file ip4_full_reass.c.

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

◆ ip4_full_reass_walk_expired()

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

Definition at line 1545 of file ip4_full_reass.c.

+ Here is the call 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 1425 of file ip4_full_reass.c.

+ Here is the caller 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 1680 of file ip4_full_reass.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT() [1/2]

VNET_FEATURE_INIT ( ip4_full_reass_custom  ,
static   
)

◆ VNET_FEATURE_INIT() [2/2]

VNET_FEATURE_INIT ( ip4_full_reass_feature  ,
static   
)

Variable Documentation

◆ ip4_full_reass_custom_handoff_node

vlib_node_registration_t ip4_full_reass_custom_handoff_node
Initial value:
= {
.name = "ip4-full-reass-custom-hoff",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_full_reass_custom_handoff_node)

Definition at line 1917 of file ip4_full_reass.c.

◆ ip4_full_reass_error_strings

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

Definition at line 1286 of file ip4_full_reass.c.

◆ ip4_full_reass_expire_node

vlib_node_registration_t ip4_full_reass_expire_node
Initial value:
= {
.name = "ip4-full-reassembly-expire-walk",
.format_trace = format_ip4_full_reass_trace,
.error_strings = ip4_full_reass_error_strings,
}

(constructor) VLIB_REGISTER_NODE (ip4_full_reass_expire_node)

Definition at line 1618 of file ip4_full_reass.c.

◆ ip4_full_reass_feature_handoff_node

vlib_node_registration_t ip4_full_reass_feature_handoff_node
Initial value:
= {
.name = "ip4-full-reass-feature-hoff",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_full_reass_feature_handoff_node)

Definition at line 1890 of file ip4_full_reass.c.

◆ ip4_full_reass_handoff_error_strings

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

Definition at line 1764 of file ip4_full_reass.c.

◆ ip4_full_reass_handoff_node

vlib_node_registration_t ip4_full_reass_handoff_node
Initial value:
= {
.name = "ip4-full-reassembly-handoff",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_full_reass_handoff_node)

Definition at line 1862 of file ip4_full_reass.c.

◆ ip4_full_reass_main

ip4_full_reass_main_t ip4_full_reass_main

Definition at line 196 of file ip4_full_reass.c.

◆ ip4_full_reass_node

vlib_node_registration_t ip4_full_reass_node
Initial value:
= {
.name = "ip4-full-reassembly",
.vector_size = sizeof (u32),
.format_trace = format_ip4_full_reass_trace,
.error_strings = ip4_full_reass_error_strings,
.n_next_nodes = IP4_FULL_REASS_N_NEXT,
.next_nodes =
{
[IP4_FULL_REASS_NEXT_INPUT] = "ip4-input",
[IP4_FULL_REASS_NEXT_DROP] = "ip4-drop",
[IP4_FULL_REASS_NEXT_HANDOFF] = "ip4-full-reassembly-handoff",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_full_reass_node)

Definition at line 1300 of file ip4_full_reass.c.

◆ ip4_full_reass_node_custom

vlib_node_registration_t ip4_full_reass_node_custom
Initial value:
= {
.name = "ip4-full-reassembly-custom",
.vector_size = sizeof (u32),
.format_trace = format_ip4_full_reass_trace,
.error_strings = ip4_full_reass_error_strings,
.n_next_nodes = IP4_FULL_REASS_N_NEXT,
.next_nodes =
{
[IP4_FULL_REASS_NEXT_INPUT] = "ip4-input",
[IP4_FULL_REASS_NEXT_DROP] = "ip4-drop",
[IP4_FULL_REASS_NEXT_HANDOFF] = "ip4-full-reass-custom-hoff",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_full_reass_node_custom)

Definition at line 1359 of file ip4_full_reass.c.

◆ ip4_full_reass_node_feature

vlib_node_registration_t ip4_full_reass_node_feature
Initial value:
= {
.name = "ip4-full-reassembly-feature",
.vector_size = sizeof (u32),
.format_trace = format_ip4_full_reass_trace,
.error_strings = ip4_full_reass_error_strings,
.n_next_nodes = IP4_FULL_REASS_N_NEXT,
.next_nodes =
{
[IP4_FULL_REASS_NEXT_INPUT] = "ip4-input",
[IP4_FULL_REASS_NEXT_DROP] = "ip4-drop",
[IP4_FULL_REASS_NEXT_HANDOFF] = "ip4-full-reass-feature-hoff",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_full_reass_node_feature)

Definition at line 1325 of file ip4_full_reass.c.

◆ show_ip4_full_reass_cmd

vlib_cli_command_t show_ip4_full_reass_cmd
static
Initial value:
= {
.path = "show ip4-full-reassembly",
.short_help = "show ip4-full-reassembly [details]",
.function = show_ip4_reass,
}

(constructor) VLIB_CLI_COMMAND (show_ip4_full_reass_cmd)

Definition at line 1734 of file ip4_full_reass.c.

format_ip4_full_reass_trace
static u8 * format_ip4_full_reass_trace(u8 *s, va_list *args)
Definition: ip4_full_reass.c:280
IP4_FULL_REASS_NEXT_HANDOFF
@ IP4_FULL_REASS_NEXT_HANDOFF
Definition: ip4_full_reass.c:203
IP4_FULL_REASS_NEXT_INPUT
@ IP4_FULL_REASS_NEXT_INPUT
Definition: ip4_full_reass.c:201
foreach_ip4_full_reass_handoff_error
#define foreach_ip4_full_reass_handoff_error
Definition: ip4_full_reass.c:1752
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
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))
Definition: ip4_full_reass.c:1680
IP4_FULL_REASS_NEXT_DROP
@ IP4_FULL_REASS_NEXT_DROP
Definition: ip4_full_reass.c:202
ip4_full_reass_error_strings
static char * ip4_full_reass_error_strings[]
Definition: ip4_full_reass.c:1286
ip4_full_reass_walk_expired
static uword ip4_full_reass_walk_expired(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
Definition: ip4_full_reass.c:1545
format_ip4_full_reass_handoff_trace
static u8 * format_ip4_full_reass_handoff_trace(u8 *s, va_list *args)
Definition: ip4_full_reass.c:1776
ip4_full_reass_handoff_error_strings
static char * ip4_full_reass_handoff_error_strings[]
Definition: ip4_full_reass.c:1764
u32
unsigned int u32
Definition: types.h:88
VLIB_NODE_TYPE_PROCESS
@ VLIB_NODE_TYPE_PROCESS
Definition: node.h:84
IP4_FULL_REASS_N_NEXT
@ IP4_FULL_REASS_N_NEXT
Definition: ip4_full_reass.c:204
foreach_ip4_error
#define foreach_ip4_error
Definition: ip4_error.h:43