Go to the source code of this file.
|
static u8 * | format_nsim_trace (u8 *s, va_list *args) |
|
static void | nsim_set_actions (nsim_main_t *nsm, vlib_buffer_t **b, nsim_node_ctx_t *ctx, u32 n_actions) |
|
static void | nsim_trace_buffer (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b, nsim_node_ctx_t *ctx, u32 is_drop) |
|
static void | nsim_buffer_fwd_lookup (nsim_main_t *nsm, vlib_buffer_t *b, u32 *next, u8 is_cross_connect) |
|
static void | nsim_dispatch_buffer (vlib_main_t *vm, vlib_node_runtime_t *node, nsim_main_t *nsm, nsim_wheel_t *wp, vlib_buffer_t *b, u32 bi, nsim_node_ctx_t *ctx, u8 is_cross_connect, u8 is_trace) |
|
static uword | nsim_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_trace, int is_cross_connect) |
|
VLIB_NODE_FN() | nsim_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
VLIB_NODE_FN() | nsim_feature_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
◆ foreach_nsim_error
#define foreach_nsim_error |
Value:_(BUFFERED, "Packets buffered") \
_(DROPPED, "Packets dropped due to lack of space") \
_(LOSS, "Network loss simulation drop packets") \
_(REORDERED, "Packets reordered")
Definition at line 53 of file node.c.
◆ nsim_error_t
◆ nsim_next_t
Enumerator |
---|
NSIM_NEXT_DROP | |
NSIM_N_NEXT | |
NSIM_NEXT_DROP | |
NSIM_N_NEXT | |
Definition at line 75 of file node.c.
◆ format_nsim_trace()
static u8* format_nsim_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ nsim_buffer_fwd_lookup()
◆ nsim_dispatch_buffer()
◆ nsim_feature_node()
◆ nsim_inline()
◆ nsim_node()
◆ nsim_set_actions()
◆ nsim_trace_buffer()
◆ nsim_error_strings
char* nsim_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
Definition at line 68 of file node.c.
◆ nsim_feature_node
Initial value:=
{
.name = "nsim-output-feature",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
(constructor) VLIB_REGISTER_NODE (nsim_feature_node)
Definition at line 338 of file node.c.
◆ nsim_node
Initial value:=
{
.name = "nsim",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
(constructor) VLIB_REGISTER_NODE (nsim_node)
Definition at line 50 of file node.c.