FD.io VPP
v16.09
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | foreach_lcaf_type |
#define | CONCAT(a, b) a##_##b |
#define | IF(c, t, e) CONCAT(IF, c)(t, e) |
#define | IF_0(t, e) e |
#define | IF_1(t, e) t |
#define | EXPAND_FCN(cond, fcn) IF(cond, fcn, NULL) |
Typedefs | |
typedef u16(* | size_to_write_fct) (void *) |
typedef void *(* | cast_fct) (gid_address_t *) |
typedef u16(* | serdes_fct) (u8 *, void *) |
typedef u8(* | addr_len_fct) (void *) |
typedef void(* | copy_fct) (void *, void *) |
typedef void(* | free_fct) (void *) |
typedef int(* | cmp_fct) (void *, void *) |
Definition at line 70 of file lisp_types.c.
Definition at line 74 of file lisp_types.c.
#define foreach_lcaf_type |
Definition at line 71 of file lisp_types.c.
#define IF_0 | ( | t, | |
e | |||
) | e |
Definition at line 72 of file lisp_types.c.
#define IF_1 | ( | t, | |
e | |||
) | t |
Definition at line 73 of file lisp_types.c.
typedef u8(* addr_len_fct) (void *) |
Definition at line 27 of file lisp_types.c.
typedef void*(* cast_fct) (gid_address_t *) |
Definition at line 25 of file lisp_types.c.
typedef int(* cmp_fct) (void *, void *) |
Definition at line 30 of file lisp_types.c.
typedef void(* copy_fct) (void *, void *) |
Definition at line 28 of file lisp_types.c.
typedef void(* free_fct) (void *) |
Definition at line 29 of file lisp_types.c.
Definition at line 26 of file lisp_types.c.
typedef u16(* size_to_write_fct) (void *) |
Definition at line 24 of file lisp_types.c.
|
static |
Definition at line 1279 of file lisp_types.c.
|
static |
Definition at line 509 of file lisp_types.c.
|
static |
Definition at line 1078 of file lisp_types.c.
|
static |
Definition at line 954 of file lisp_types.c.
|
static |
Definition at line 971 of file lisp_types.c.
Definition at line 204 of file lisp_types.c.
Definition at line 224 of file lisp_types.c.
Definition at line 127 of file lisp_types.c.
Definition at line 160 of file lisp_types.c.
Definition at line 196 of file lisp_types.c.
void* gid_address_cast | ( | gid_address_t * | gid, |
gid_address_type_t | type | ||
) |
Definition at line 1182 of file lisp_types.c.
int gid_address_cmp | ( | gid_address_t * | a1, |
gid_address_t * | a2 | ||
) |
Definition at line 1319 of file lisp_types.c.
void gid_address_copy | ( | gid_address_t * | dst, |
gid_address_t * | src | ||
) |
Definition at line 1188 of file lisp_types.c.
void gid_address_free | ( | gid_address_t * | a | ) |
void gid_address_ip_set | ( | gid_address_t * | dst, |
void * | src, | ||
u8 | version | ||
) |
Definition at line 1254 of file lisp_types.c.
u8 gid_address_len | ( | gid_address_t * | a | ) |
Definition at line 1143 of file lisp_types.c.
u32 gid_address_parse | ( | u8 * | offset, |
gid_address_t * | a | ||
) |
Definition at line 1208 of file lisp_types.c.
u16 gid_address_put | ( | u8 * | b, |
gid_address_t * | gid | ||
) |
Definition at line 1157 of file lisp_types.c.
|
static |
Definition at line 1150 of file lisp_types.c.
u16 gid_address_size_to_put | ( | gid_address_t * | gid | ) |
Definition at line 1173 of file lisp_types.c.
|
static |
Definition at line 1166 of file lisp_types.c.
u32 ip4_address_put | ( | u8 * | b, |
ip4_address_t * | a | ||
) |
Definition at line 442 of file lisp_types.c.
u16 ip4_address_size_to_put | ( | ) |
u32 ip6_address_put | ( | u8 * | b, |
ip6_address_t * | a | ||
) |
Definition at line 451 of file lisp_types.c.
u16 ip6_address_size_to_put | ( | ) |
int ip_address_cmp | ( | ip_address_t * | ip1, |
ip_address_t * | ip2 | ||
) |
Definition at line 656 of file lisp_types.c.
void ip_address_copy | ( | ip_address_t * | dst, |
ip_address_t * | src | ||
) |
void ip_address_copy_addr | ( | void * | dst, |
ip_address_t * | src | ||
) |
Definition at line 679 of file lisp_types.c.
u16 ip_address_iana_afi | ( | ip_address_t * | a | ) |
Definition at line 416 of file lisp_types.c.
Definition at line 470 of file lisp_types.c.
void ip_address_set | ( | ip_address_t * | dst, |
void * | src, | ||
u8 | version | ||
) |
Definition at line 685 of file lisp_types.c.
u16 ip_address_size | ( | ip_address_t * | a | ) |
u16 ip_address_size_to_write | ( | ip_address_t * | a | ) |
Definition at line 410 of file lisp_types.c.
|
inlinestatic |
void* ip_prefix_cast | ( | gid_address_t * | a | ) |
Definition at line 765 of file lisp_types.c.
int ip_prefix_cmp | ( | ip_prefix_t * | p1, |
ip_prefix_t * | p2 | ||
) |
Definition at line 820 of file lisp_types.c.
void ip_prefix_copy | ( | void * | dst, |
void * | src | ||
) |
u8 ip_prefix_length | ( | void * | a | ) |
void ip_prefix_normalize | ( | ip_prefix_t * | a | ) |
Definition at line 745 of file lisp_types.c.
|
static |
Definition at line 692 of file lisp_types.c.
|
static |
Definition at line 709 of file lisp_types.c.
u16 ip_prefix_size_to_write | ( | void * | pref | ) |
Definition at line 771 of file lisp_types.c.
Definition at line 778 of file lisp_types.c.
|
inlinestatic |
Definition at line 365 of file lisp_types.c.
void* lcaf_cast | ( | gid_address_t * | a | ) |
Definition at line 889 of file lisp_types.c.
void lcaf_copy | ( | void * | dst, |
void * | src | ||
) |
Definition at line 861 of file lisp_types.c.
u8 lcaf_length | ( | void * | a | ) |
Definition at line 871 of file lisp_types.c.
u32 lcaf_parse | ( | void * | offset, |
gid_address_t * | addr | ||
) |
Definition at line 606 of file lisp_types.c.
u16 lcaf_size_to_write | ( | void * | a | ) |
Definition at line 1400 of file lisp_types.c.
void locator_free | ( | locator_t * | l | ) |
Definition at line 1418 of file lisp_types.c.
Definition at line 1366 of file lisp_types.c.
void* mac_cast | ( | gid_address_t * | a | ) |
Definition at line 895 of file lisp_types.c.
void mac_copy | ( | void * | dst, |
void * | src | ||
) |
u8 mac_length | ( | void * | a | ) |
Definition at line 877 of file lisp_types.c.
u16 mac_size_to_write | ( | void * | a | ) |
Definition at line 946 of file lisp_types.c.
int no_addr_cmp | ( | void * | a1, |
void * | a2 | ||
) |
Definition at line 1260 of file lisp_types.c.
void no_addr_copy | ( | void * | dst, |
void * | src | ||
) |
Definition at line 844 of file lisp_types.c.
void no_addr_free | ( | void * | a | ) |
Definition at line 633 of file lisp_types.c.
u8 no_addr_length | ( | void * | a | ) |
Definition at line 907 of file lisp_types.c.
Definition at line 599 of file lisp_types.c.
u16 no_addr_size_to_write | ( | void * | a | ) |
Definition at line 1072 of file lisp_types.c.
Definition at line 1065 of file lisp_types.c.
void* sd_cast | ( | gid_address_t * | a | ) |
Definition at line 901 of file lisp_types.c.
int sd_cmp | ( | void * | a1, |
void * | a2 | ||
) |
Definition at line 1299 of file lisp_types.c.
void sd_copy | ( | void * | dst, |
void * | src | ||
) |
Definition at line 814 of file lisp_types.c.
void sd_free | ( | void * | a | ) |
Definition at line 639 of file lisp_types.c.
u8 sd_length | ( | void * | a | ) |
Definition at line 883 of file lisp_types.c.
Definition at line 527 of file lisp_types.c.
u16 sd_size_to_write | ( | void * | a | ) |
Definition at line 1126 of file lisp_types.c.
Definition at line 984 of file lisp_types.c.
u16 try_parse_src_dst_lcaf | ( | u8 * | p, |
gid_address_t * | a | ||
) |
Definition at line 557 of file lisp_types.c.
uword unformat_fid_address | ( | unformat_input_t * | i, |
va_list * | args | ||
) |
Definition at line 248 of file lisp_types.c.
uword unformat_gid_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 271 of file lisp_types.c.
uword unformat_ip_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 147 of file lisp_types.c.
uword unformat_ip_prefix | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 168 of file lisp_types.c.
uword unformat_mac_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 188 of file lisp_types.c.
uword unformat_negative_mapping_action | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 306 of file lisp_types.c.
int vni_cmp | ( | void * | a1, |
void * | a2 | ||
) |
void vni_copy | ( | void * | dst, |
void * | src | ||
) |
void vni_free | ( | void * | a | ) |
u8 vni_length | ( | void * | a | ) |
u16 vni_size_to_write | ( | void * | a | ) |
Definition at line 1095 of file lisp_types.c.
Definition at line 1023 of file lisp_types.c.
addr_len_fct addr_len_fcts[GID_ADDR_TYPES] |
Definition at line 40 of file lisp_types.c.
cast_fct cast_fcts[GID_ADDR_TYPES] |
Definition at line 38 of file lisp_types.c.
copy_fct copy_fcts[GID_ADDR_TYPES] |
Definition at line 42 of file lisp_types.c.
addr_len_fct lcaf_body_length_fcts[LCAF_TYPES] |
Definition at line 84 of file lisp_types.c.
cmp_fct lcaf_cmp_fcts[LCAF_TYPES] |
Definition at line 76 of file lisp_types.c.
copy_fct lcaf_copy_fcts[LCAF_TYPES] |
Definition at line 91 of file lisp_types.c.
free_fct lcaf_free_fcts[LCAF_TYPES] |
Definition at line 98 of file lisp_types.c.
serdes_fct lcaf_parse_fcts[LCAF_TYPES] |
Definition at line 119 of file lisp_types.c.
size_to_write_fct lcaf_size_to_write_fcts[LCAF_TYPES] |
Definition at line 105 of file lisp_types.c.
serdes_fct lcaf_write_fcts[LCAF_TYPES] |
Definition at line 112 of file lisp_types.c.
size_to_write_fct size_to_write_fcts[GID_ADDR_TYPES] |
Definition at line 32 of file lisp_types.c.
serdes_fct write_fcts[GID_ADDR_TYPES] |
Definition at line 36 of file lisp_types.c.