FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
sixrd.h File Reference
+ Include dependency graph for sixrd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sixrd_domain_t
 
struct  sixrd_main_t
 
struct  sixrd_trace_t
 

Macros

#define foreach_sixrd_error
 

Enumerations

enum  sixrd_error_t { SIXRD_N_ERROR }
 

Functions

int sixrd_create_domain (ip6_address_t *ip6_prefix, u8 ip6_prefix_len, ip4_address_t *ip4_prefix, u8 ip4_prefix_len, ip4_address_t *ip4_src, u32 *sixrd_domain_index, u16 mtu)
 
int sixrd_delete_domain (u32 sixrd_domain_index)
 
u8format_sixrd_trace (u8 *s, va_list *args)
 
static_always_inline u32 sixrd_get_addr (sixrd_domain_t *d, u64 dal)
 
static_always_inline sixrd_domain_tip6_sixrd_get_domain (u32 sdi, u32 *sixrd_domain_index)
 
static_always_inline sixrd_domain_tip4_sixrd_get_domain (u32 sdi, ip6_address_t *addr, u32 *sixrd_domain_index, u8 *error)
 

Variables

sixrd_main_t sixrd_main
 

Macro Definition Documentation

#define foreach_sixrd_error
Value:
/* Must be first. */ \
_(NONE, "valid SIXRD packets") \
_(BAD_PROTOCOL, "bad protocol") \
_(WRONG_ICMP_TYPE, "wrong icmp type") \
_(SEC_CHECK, "security check failed") \
_(ICMP, "unable to translate ICMP") \
_(UNKNOWN, "unknown") \
_(NO_DOMAIN, "no domain") \
_(ENCAPSULATED, "encapsulated") \
_(DECAPSULATED, "decapsulated") \
_(TRANSLATED_4TO6, "translated 4 to 6") \
_(TRANSLATED_6TO4, "translated 6 to 4") \
_(FRAGMENT, "fragment handling error") \
_(FRAGMENT_QUEUED, "dropped, missing first fragment") \
_(FRAGMENTED, "packets requiring fragmentation") \
_(FRAGMENT_PARTS, "fragment parts") \
_(MALFORMED, "malformed packet")

Definition at line 52 of file sixrd.h.

Enumeration Type Documentation

Enumerator
SIXRD_N_ERROR 

Definition at line 71 of file sixrd.h.

Function Documentation

u8* format_sixrd_trace ( u8 s,
va_list *  args 
)

Definition at line 307 of file sixrd.c.

+ Here is the call graph for this function:

static_always_inline sixrd_domain_t* ip4_sixrd_get_domain ( u32  sdi,
ip6_address_t addr,
u32 sixrd_domain_index,
u8 error 
)

Definition at line 120 of file sixrd.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline sixrd_domain_t* ip6_sixrd_get_domain ( u32  sdi,
u32 sixrd_domain_index 
)

Definition at line 102 of file sixrd.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int sixrd_create_domain ( ip6_address_t ip6_prefix,
u8  ip6_prefix_len,
ip4_address_t ip4_prefix,
u8  ip4_prefix_len,
ip4_address_t ip4_src,
u32 sixrd_domain_index,
u16  mtu 
)

Definition at line 35 of file sixrd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int sixrd_delete_domain ( u32  sixrd_domain_index)

Definition at line 145 of file sixrd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 sixrd_get_addr ( sixrd_domain_t d,
u64  dal 
)

Definition at line 88 of file sixrd.h.

+ Here is the caller graph for this function:

Variable Documentation

sixrd_main_t sixrd_main

Definition at line 82 of file sixrd.h.