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

Go to the source code of this file.

Data Structures

struct  icmp6_to_icmp_ctx_t
 

Enumerations

enum  ip6_mapt_next_t {
  IP6_MAPT_NEXT_MAPT_TCP_UDP, IP6_MAPT_NEXT_MAPT_ICMP, IP6_MAPT_NEXT_MAPT_FRAGMENTED, IP6_MAPT_NEXT_DROP,
  IP6_MAPT_NEXT_ICMP, IP6_MAPT_N_NEXT
}
 
enum  ip6_mapt_icmp_next_t {
  IP6_MAPT_ICMP_NEXT_IP4_LOOKUP, IP6_MAPT_ICMP_NEXT_IP4_REWRITE, IP6_MAPT_ICMP_NEXT_IP4_FRAG, IP6_MAPT_ICMP_NEXT_DROP,
  IP6_MAPT_ICMP_N_NEXT
}
 
enum  ip6_mapt_tcp_udp_next_t {
  IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP, IP6_MAPT_TCP_UDP_NEXT_IP4_REWRITE, IP6_MAPT_TCP_UDP_NEXT_IP4_FRAG, IP6_MAPT_TCP_UDP_NEXT_DROP,
  IP6_MAPT_TCP_UDP_N_NEXT
}
 
enum  ip6_mapt_fragmented_next_t {
  IP6_MAPT_FRAGMENTED_NEXT_IP4_LOOKUP, IP6_MAPT_FRAGMENTED_NEXT_IP4_REWRITE, IP6_MAPT_FRAGMENTED_NEXT_IP4_FRAG, IP6_MAPT_FRAGMENTED_NEXT_DROP,
  IP6_MAPT_FRAGMENTED_N_NEXT
}
 

Functions

static int ip6_to_ip4_set_icmp_cb (ip6_header_t *ip6, ip4_header_t *ip4, void *arg)
 
static int ip6_to_ip4_set_inner_icmp_cb (ip6_header_t *ip6, ip4_header_t *ip4, void *arg)
 
static uword ip6_map_t_icmp (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static int map_ip6_to_ip4_fragmented (vlib_main_t *vm, vlib_buffer_t *p)
 
static uword ip6_map_t_fragmented (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static int map_ip6_to_ip4_tcp_udp (vlib_main_t *vm, vlib_buffer_t *p, bool udp_checksum)
 
static uword ip6_map_t_tcp_udp (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_map_t (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip6_map_t_feature, static)
 

Variables

vlib_node_registration_t ip6_map_t_fragmented_node
 (constructor) VLIB_REGISTER_NODE (ip6_map_t_fragmented_node) More...
 
vlib_node_registration_t ip6_map_t_icmp_node
 (constructor) VLIB_REGISTER_NODE (ip6_map_t_icmp_node) More...
 
vlib_node_registration_t ip6_map_t_tcp_udp_node
 (constructor) VLIB_REGISTER_NODE (ip6_map_t_tcp_udp_node) More...
 
vlib_node_registration_t ip6_map_t_node
 (constructor) VLIB_REGISTER_NODE (ip6_map_t_node) More...
 

Enumeration Type Documentation

◆ ip6_mapt_fragmented_next_t

Enumerator
IP6_MAPT_FRAGMENTED_NEXT_IP4_LOOKUP 
IP6_MAPT_FRAGMENTED_NEXT_IP4_REWRITE 
IP6_MAPT_FRAGMENTED_NEXT_IP4_FRAG 
IP6_MAPT_FRAGMENTED_NEXT_DROP 
IP6_MAPT_FRAGMENTED_N_NEXT 

Definition at line 49 of file ip6_map_t.c.

◆ ip6_mapt_icmp_next_t

Enumerator
IP6_MAPT_ICMP_NEXT_IP4_LOOKUP 
IP6_MAPT_ICMP_NEXT_IP4_REWRITE 
IP6_MAPT_ICMP_NEXT_IP4_FRAG 
IP6_MAPT_ICMP_NEXT_DROP 
IP6_MAPT_ICMP_N_NEXT 

Definition at line 31 of file ip6_map_t.c.

◆ ip6_mapt_next_t

Enumerator
IP6_MAPT_NEXT_MAPT_TCP_UDP 
IP6_MAPT_NEXT_MAPT_ICMP 
IP6_MAPT_NEXT_MAPT_FRAGMENTED 
IP6_MAPT_NEXT_DROP 
IP6_MAPT_NEXT_ICMP 
IP6_MAPT_N_NEXT 

Definition at line 21 of file ip6_map_t.c.

◆ ip6_mapt_tcp_udp_next_t

Enumerator
IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP 
IP6_MAPT_TCP_UDP_NEXT_IP4_REWRITE 
IP6_MAPT_TCP_UDP_NEXT_IP4_FRAG 
IP6_MAPT_TCP_UDP_NEXT_DROP 
IP6_MAPT_TCP_UDP_N_NEXT 

Definition at line 40 of file ip6_map_t.c.

Function Documentation

◆ ip6_map_t()

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

Definition at line 491 of file ip6_map_t.c.

+ Here is the call graph for this function:

◆ ip6_map_t_fragmented()

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

Definition at line 260 of file ip6_map_t.c.

+ Here is the call graph for this function:

◆ ip6_map_t_icmp()

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

Definition at line 111 of file ip6_map_t.c.

+ Here is the call graph for this function:

◆ ip6_map_t_tcp_udp()

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

Definition at line 430 of file ip6_map_t.c.

+ Here is the call graph for this function:

◆ ip6_to_ip4_set_icmp_cb()

static int ip6_to_ip4_set_icmp_cb ( ip6_header_t ip6,
ip4_header_t ip4,
void *  arg 
)
static

Definition at line 65 of file ip6_map_t.c.

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

◆ ip6_to_ip4_set_inner_icmp_cb()

static int ip6_to_ip4_set_inner_icmp_cb ( ip6_header_t ip6,
ip4_header_t ip4,
void *  arg 
)
static

Definition at line 88 of file ip6_map_t.c.

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

◆ map_ip6_to_ip4_fragmented()

static int map_ip6_to_ip4_fragmented ( vlib_main_t vm,
vlib_buffer_t p 
)
inlinestatic

Definition at line 213 of file ip6_map_t.c.

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

◆ map_ip6_to_ip4_tcp_udp()

static int map_ip6_to_ip4_tcp_udp ( vlib_main_t vm,
vlib_buffer_t p,
bool  udp_checksum 
)
inlinestatic

Definition at line 325 of file ip6_map_t.c.

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

◆ VNET_FEATURE_INIT()

VNET_FEATURE_INIT ( ip6_map_t_feature  ,
static   
)

Variable Documentation

◆ ip6_map_t_fragmented_node

vlib_node_registration_t ip6_map_t_fragmented_node
Initial value:
= {
.function = ip6_map_t_fragmented,
.name = "ip6-map-t-fragmented",
.vector_size = sizeof (u32),
.format_trace = format_map_trace,
.n_errors = MAP_N_ERROR,
.error_counters = map_error_counters,
.n_next_nodes = IP6_MAPT_FRAGMENTED_N_NEXT,
.next_nodes =
{
[IP6_MAPT_FRAGMENTED_NEXT_IP4_REWRITE] = "ip4-load-balance",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_map_t_fragmented_node)

Definition at line 691 of file ip6_map_t.c.

◆ ip6_map_t_icmp_node

vlib_node_registration_t ip6_map_t_icmp_node
Initial value:
= {
.function = ip6_map_t_icmp,
.name = "ip6-map-t-icmp",
.vector_size = sizeof (u32),
.format_trace = format_map_trace,
.n_errors = MAP_N_ERROR,
.error_counters = map_error_counters,
.n_next_nodes = IP6_MAPT_ICMP_N_NEXT,
.next_nodes =
{
[IP6_MAPT_ICMP_NEXT_IP4_REWRITE] = "ip4-load-balance",
[IP6_MAPT_ICMP_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_map_t_icmp_node)

Definition at line 713 of file ip6_map_t.c.

◆ ip6_map_t_node

vlib_node_registration_t ip6_map_t_node
Initial value:
= {
.function = ip6_map_t,
.name = "ip6-map-t",
.vector_size = sizeof(u32),
.format_trace = format_map_trace,
.n_errors = MAP_N_ERROR,
.error_counters = map_error_counters,
.n_next_nodes = IP6_MAPT_N_NEXT,
.next_nodes =
{
[IP6_MAPT_NEXT_MAPT_TCP_UDP] = "ip6-map-t-tcp-udp",
[IP6_MAPT_NEXT_MAPT_ICMP] = "ip6-map-t-icmp",
[IP6_MAPT_NEXT_MAPT_FRAGMENTED] = "ip6-map-t-fragmented",
[IP6_MAPT_NEXT_DROP] = "error-drop",
[IP6_MAPT_NEXT_ICMP] = "ip6-icmp-error",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_map_t_node)

Definition at line 764 of file ip6_map_t.c.

◆ ip6_map_t_tcp_udp_node

vlib_node_registration_t ip6_map_t_tcp_udp_node
Initial value:
= {
.function = ip6_map_t_tcp_udp,
.name = "ip6-map-t-tcp-udp",
.vector_size = sizeof (u32),
.format_trace = format_map_trace,
.n_errors = MAP_N_ERROR,
.error_counters = map_error_counters,
.n_next_nodes = IP6_MAPT_TCP_UDP_N_NEXT,
.next_nodes =
{
[IP6_MAPT_TCP_UDP_NEXT_IP4_REWRITE] = "ip4-load-balance",
[IP6_MAPT_TCP_UDP_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_map_t_tcp_udp_node)

Definition at line 735 of file ip6_map_t.c.

IP6_MAPT_ICMP_NEXT_IP4_REWRITE
@ IP6_MAPT_ICMP_NEXT_IP4_REWRITE
Definition: ip6_map_t.c:34
IP6_MAPT_NEXT_DROP
@ IP6_MAPT_NEXT_DROP
Definition: ip6_map_t.c:26
IP6_MAPT_FRAGMENTED_NEXT_IP4_REWRITE
@ IP6_MAPT_FRAGMENTED_NEXT_IP4_REWRITE
Definition: ip6_map_t.c:52
ip6_map_t
static uword ip6_map_t(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_map_t.c:491
IP6_MAPT_NEXT_MAPT_FRAGMENTED
@ IP6_MAPT_NEXT_MAPT_FRAGMENTED
Definition: ip6_map_t.c:25
ip6_map_t_tcp_udp
static uword ip6_map_t_tcp_udp(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_map_t.c:430
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
IP6_MAPT_TCP_UDP_NEXT_IP4_FRAG
@ IP6_MAPT_TCP_UDP_NEXT_IP4_FRAG
Definition: ip6_map_t.c:44
IP6_MAPT_FRAGMENTED_NEXT_IP4_LOOKUP
@ IP6_MAPT_FRAGMENTED_NEXT_IP4_LOOKUP
Definition: ip6_map_t.c:51
ip6_map_t_icmp
static uword ip6_map_t_icmp(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_map_t.c:111
IP6_MAPT_ICMP_NEXT_DROP
@ IP6_MAPT_ICMP_NEXT_DROP
Definition: ip6_map_t.c:36
IP6_MAPT_FRAGMENTED_NEXT_IP4_FRAG
@ IP6_MAPT_FRAGMENTED_NEXT_IP4_FRAG
Definition: ip6_map_t.c:53
IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP
@ IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP
Definition: ip6_map_t.c:42
IP6_MAPT_ICMP_NEXT_IP4_FRAG
@ IP6_MAPT_ICMP_NEXT_IP4_FRAG
Definition: ip6_map_t.c:35
IP6_MAPT_NEXT_ICMP
@ IP6_MAPT_NEXT_ICMP
Definition: ip6_map_t.c:27
IP6_MAPT_FRAGMENTED_NEXT_DROP
@ IP6_MAPT_FRAGMENTED_NEXT_DROP
Definition: ip6_map_t.c:54
IP6_MAPT_TCP_UDP_N_NEXT
@ IP6_MAPT_TCP_UDP_N_NEXT
Definition: ip6_map_t.c:46
IP6_MAPT_FRAGMENTED_N_NEXT
@ IP6_MAPT_FRAGMENTED_N_NEXT
Definition: ip6_map_t.c:55
IP4_FRAG_NODE_NAME
#define IP4_FRAG_NODE_NAME
Definition: ip_frag.h:43
IP6_MAPT_ICMP_N_NEXT
@ IP6_MAPT_ICMP_N_NEXT
Definition: ip6_map_t.c:37
IP6_MAPT_NEXT_MAPT_ICMP
@ IP6_MAPT_NEXT_MAPT_ICMP
Definition: ip6_map_t.c:24
ip6_map_t_fragmented
static uword ip6_map_t_fragmented(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_map_t.c:260
IP6_MAPT_NEXT_MAPT_TCP_UDP
@ IP6_MAPT_NEXT_MAPT_TCP_UDP
Definition: ip6_map_t.c:23
u32
unsigned int u32
Definition: types.h:88
IP6_MAPT_ICMP_NEXT_IP4_LOOKUP
@ IP6_MAPT_ICMP_NEXT_IP4_LOOKUP
Definition: ip6_map_t.c:33
IP6_MAPT_TCP_UDP_NEXT_DROP
@ IP6_MAPT_TCP_UDP_NEXT_DROP
Definition: ip6_map_t.c:45
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
format_map_trace
u8 * format_map_trace(u8 *s, va_list *args)
Definition: map.c:1204
IP6_MAPT_N_NEXT
@ IP6_MAPT_N_NEXT
Definition: ip6_map_t.c:28
IP6_MAPT_TCP_UDP_NEXT_IP4_REWRITE
@ IP6_MAPT_TCP_UDP_NEXT_IP4_REWRITE
Definition: ip6_map_t.c:43