Go to the source code of this file.
|
static u8 * | format_srp_input_trace (u8 *s, va_list *va) |
|
static uword | srp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame) |
|
static uword | srp_topology_packet (vlib_main_t *vm, u32 sw_if_index, u8 **contents) |
|
static uword | srp_control_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame) |
|
static u8 * | format_srp_ips_request_type (u8 *s, va_list *args) |
|
static u8 * | format_srp_ips_status (u8 *s, va_list *args) |
|
static u8 * | format_srp_ips_state (u8 *s, va_list *args) |
|
static u8 * | format_srp_ring (u8 *s, va_list *args) |
|
static u8 * | format_srp_ips_header (u8 *s, va_list *args) |
|
static u8 * | format_srp_interface (u8 *s, va_list *args) |
|
u8 * | format_srp_device (u8 *s, va_list *args) |
|
static srp_interface_t * | srp_get_interface (u32 sw_if_index, srp_ring_type_t *ring) |
|
static void | init_ips_packet (srp_interface_t *si, srp_ring_type_t tx_ring, srp_ips_header_t *i) |
|
static void | tx_ips_packet (srp_interface_t *si, srp_ring_type_t tx_ring, srp_ips_header_t *i) |
|
static int | requests_switch (srp_ips_request_type_t r) |
|
void | srp_ips_rx_packet (u32 sw_if_index, srp_ips_header_t *h) |
|
void | srp_ips_local_request (u32 sw_if_index, srp_ips_request_type_t request) |
|
static void | maybe_send_ips_message (srp_interface_t *si) |
|
static uword | srp_ips_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f) |
|
static clib_error_t * | srp_init (vlib_main_t *vm) |
|
◆ srp_control_handler_function_t
◆ srp_input_next_t
Enumerator |
---|
SRP_INPUT_NEXT_ERROR | |
SRP_INPUT_NEXT_ETHERNET_INPUT | |
SRP_INPUT_NEXT_CONTROL | |
SRP_INPUT_N_NEXT | |
Definition at line 61 of file node.c.
◆ format_srp_device()
u8* format_srp_device |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_srp_input_trace()
static u8* format_srp_input_trace |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
|
static |
◆ format_srp_interface()
static u8* format_srp_interface |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_srp_ips_header()
static u8* format_srp_ips_header |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_srp_ips_request_type()
static u8* format_srp_ips_request_type |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_srp_ips_state()
static u8* format_srp_ips_state |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_srp_ips_status()
static u8* format_srp_ips_status |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_srp_ring()
static u8* format_srp_ring |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ init_ips_packet()
◆ maybe_send_ips_message()
◆ requests_switch()
◆ srp_control_input()
◆ srp_get_interface()
◆ srp_init()
◆ srp_input()
◆ srp_ips_local_request()
◆ srp_ips_process()
◆ srp_ips_rx_packet()
◆ srp_topology_packet()
◆ tx_ips_packet()
◆ srp_control_input_node
Initial value:= {
.name = "srp-control",
.vector_size =
sizeof (
u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_srp_input_trace(u8 *s, va_list *va)
static uword srp_control_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition at line 456 of file node.c.
◆ srp_error_strings
char* srp_error_strings[] |
|
static |
Initial value:= {
#define _(f,s)
}
#define foreach_srp_error
Definition at line 268 of file node.c.
◆ srp_input_disposition_by_mode
Initial value:= {
[SRP_MODE_reserved0] = {
.error = SRP_ERROR_UNKNOWN_MODE,
},
[SRP_MODE_reserved1] = {
.error = SRP_ERROR_UNKNOWN_MODE,
},
[SRP_MODE_reserved2] = {
.error = SRP_ERROR_UNKNOWN_MODE,
},
[SRP_MODE_reserved3] = {
.error = SRP_ERROR_UNKNOWN_MODE,
},
[SRP_MODE_keep_alive] = {
.error = SRP_ERROR_KEEP_ALIVE_DROPPED,
},
[SRP_MODE_data] = {
},
[SRP_MODE_control_pass_to_host] = {
},
[SRP_MODE_control_locally_buffered_for_host] = {
},
}
Definition at line 74 of file node.c.
◆ srp_input_node
Initial value:= {
.name = "srp-input",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static u8 * format_srp_input_trace(u8 *s, va_list *va)
static char * srp_error_strings[]
static uword srp_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition at line 274 of file node.c.
◆ srp_ips_process_node
Initial value:= {
.name = "srp-ips-process",
.state = VLIB_NODE_STATE_DISABLED,
}
static uword srp_ips_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition at line 857 of file node.c.
◆ srp_main