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

Go to the source code of this file.

Data Structures

struct  dns46_request_trace_t
 

Enumerations

enum  dns46_request_next_t { DNS46_REQUEST_NEXT_DROP, DNS46_REQUEST_NEXT_IP_LOOKUP, DNS46_REQUEST_NEXT_PUNT, DNS46_REQUEST_N_NEXT }
 

Functions

static u8format_dns46_request_trace (u8 *s, va_list *args)
 
static uword dns46_request_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_ip6)
 
static uword dns4_request_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword dns6_request_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t dns46_request_node
 
static char * dns46_request_error_strings []
 
vlib_node_registration_t dns4_request_node
 (constructor) VLIB_REGISTER_NODE (dns4_request_node) More...
 
vlib_node_registration_t dns6_request_node
 (constructor) VLIB_REGISTER_NODE (dns6_request_node) More...
 

Enumeration Type Documentation

◆ dns46_request_next_t

Enumerator
DNS46_REQUEST_NEXT_DROP 
DNS46_REQUEST_NEXT_IP_LOOKUP 
DNS46_REQUEST_NEXT_PUNT 
DNS46_REQUEST_N_NEXT 

Definition at line 50 of file request_node.c.

Function Documentation

◆ dns46_request_inline()

static uword dns46_request_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_ip6 
)
static

Definition at line 59 of file request_node.c.

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

◆ dns4_request_node_fn()

static uword dns4_request_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 285 of file request_node.c.

+ Here is the call graph for this function:

◆ dns6_request_node_fn()

static uword dns6_request_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 312 of file request_node.c.

+ Here is the call graph for this function:

◆ format_dns46_request_trace()

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

Definition at line 31 of file request_node.c.

Variable Documentation

◆ dns46_request_error_strings

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

Definition at line 44 of file request_node.c.

◆ dns46_request_node

vlib_node_registration_t dns46_request_node

Definition at line 21 of file request_node.c.

◆ dns4_request_node

vlib_node_registration_t dns4_request_node
Initial value:
=
{
.function = dns4_request_node_fn,
.name = "dns4-request",
.vector_size = sizeof (u32),
.format_trace = format_dns46_request_trace,
.error_strings = dns46_request_error_strings,
.n_next_nodes = DNS46_REQUEST_N_NEXT,
.next_nodes = {
[DNS46_REQUEST_NEXT_DROP] = "error-drop",
[DNS46_REQUEST_NEXT_PUNT] = "error-punt",
[DNS46_REQUEST_NEXT_IP_LOOKUP] = "ip4-lookup",
},
}

(constructor) VLIB_REGISTER_NODE (dns4_request_node)

Definition at line 293 of file request_node.c.

◆ dns6_request_node

vlib_node_registration_t dns6_request_node
Initial value:
=
{
.function = dns6_request_node_fn,
.name = "dns6-request",
.vector_size = sizeof (u32),
.format_trace = format_dns46_request_trace,
.error_strings = dns46_request_error_strings,
.n_next_nodes = DNS46_REQUEST_N_NEXT,
.next_nodes = {
[DNS46_REQUEST_NEXT_DROP] = "error-drop",
[DNS46_REQUEST_NEXT_PUNT] = "error-punt",
[DNS46_REQUEST_NEXT_IP_LOOKUP] = "ip6-lookup",
},
}

(constructor) VLIB_REGISTER_NODE (dns6_request_node)

Definition at line 320 of file request_node.c.

format_dns46_request_trace
static u8 * format_dns46_request_trace(u8 *s, va_list *args)
Definition: request_node.c:31
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
dns4_request_node_fn
static uword dns4_request_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: request_node.c:285
DNS46_REQUEST_N_NEXT
@ DNS46_REQUEST_N_NEXT
Definition: request_node.c:55
foreach_dns46_request_error
#define foreach_dns46_request_error
Definition: dns.h:141
DNS46_REQUEST_NEXT_PUNT
@ DNS46_REQUEST_NEXT_PUNT
Definition: request_node.c:54
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
DNS46_REQUEST_NEXT_IP_LOOKUP
@ DNS46_REQUEST_NEXT_IP_LOOKUP
Definition: request_node.c:53
dns6_request_node_fn
static uword dns6_request_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: request_node.c:312
u32
unsigned int u32
Definition: types.h:88
DNS46_REQUEST_NEXT_DROP
@ DNS46_REQUEST_NEXT_DROP
Definition: request_node.c:52
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
dns46_request_error_strings
static char * dns46_request_error_strings[]
Definition: request_node.c:44