FD.io VPP
v21.06-3-gbb25fbf28
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) |
#define | INC(dst, exp) |
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 *) |
#define EXPAND_FCN | ( | cond, | |
fcn | |||
) | IF(cond, fcn, NULL) |
Definition at line 92 of file lisp_types.c.
#define foreach_lcaf_type |
Definition at line 58 of file lisp_types.c.
Definition at line 89 of file lisp_types.c.
#define IF_0 | ( | t, | |
e | |||
) | e |
Definition at line 90 of file lisp_types.c.
#define IF_1 | ( | t, | |
e | |||
) | t |
Definition at line 91 of file lisp_types.c.
Definition at line 577 of file lisp_types.c.
typedef u8(* addr_len_fct) (void *) |
Definition at line 28 of file lisp_types.c.
typedef void*(* cast_fct) (gid_address_t *) |
Definition at line 26 of file lisp_types.c.
typedef int(* cmp_fct) (void *, void *) |
Definition at line 31 of file lisp_types.c.
typedef void(* copy_fct) (void *, void *) |
Definition at line 29 of file lisp_types.c.
typedef void(* free_fct) (void *) |
Definition at line 30 of file lisp_types.c.
Definition at line 27 of file lisp_types.c.
typedef u16(* size_to_write_fct) (void *) |
Definition at line 25 of file lisp_types.c.
void build_src_dst | ( | gid_address_t * | sd, |
gid_address_t * | src, | ||
gid_address_t * | dst | ||
) |
Definition at line 1452 of file lisp_types.c.
|
static |
Definition at line 1300 of file lisp_types.c.
|
static |
Definition at line 557 of file lisp_types.c.
|
static |
Definition at line 1087 of file lisp_types.c.
|
static |
Definition at line 929 of file lisp_types.c.
|
static |
Definition at line 946 of file lisp_types.c.
Definition at line 166 of file lisp_types.c.
Definition at line 187 of file lisp_types.c.
Definition at line 342 of file lisp_types.c.
void* gid_address_cast | ( | gid_address_t * | gid, |
gid_address_type_t | type | ||
) |
Definition at line 1197 of file lisp_types.c.
int gid_address_cmp | ( | gid_address_t * | a1, |
gid_address_t * | a2 | ||
) |
Definition at line 1340 of file lisp_types.c.
void gid_address_copy | ( | gid_address_t * | dst, |
gid_address_t * | src | ||
) |
void gid_address_free | ( | gid_address_t * | a | ) |
void gid_address_from_ip | ( | gid_address_t * | g, |
ip_address_t * | ip | ||
) |
Definition at line 744 of file lisp_types.c.
void gid_address_ip_set | ( | gid_address_t * | dst, |
void * | src, | ||
ip_address_family_t | version | ||
) |
Definition at line 1268 of file lisp_types.c.
u8 gid_address_len | ( | gid_address_t * | a | ) |
u32 gid_address_parse | ( | u8 * | offset, |
gid_address_t * | a | ||
) |
Definition at line 1223 of file lisp_types.c.
u16 gid_address_put | ( | u8 * | b, |
gid_address_t * | gid | ||
) |
Definition at line 1172 of file lisp_types.c.
|
static |
u16 gid_address_size_to_put | ( | gid_address_t * | gid | ) |
Definition at line 1188 of file lisp_types.c.
|
static |
void gid_to_dp_address | ( | gid_address_t * | g, |
dp_address_t * | d | ||
) |
Definition at line 489 of file lisp_types.c.
u32 ip4_address_put | ( | u8 * | b, |
ip4_address_t * | a | ||
) |
Definition at line 452 of file lisp_types.c.
u16 ip4_address_size_to_put | ( | ) |
Definition at line 461 of file lisp_types.c.
u16 ip6_address_size_to_put | ( | ) |
u16 ip_address_iana_afi | ( | ip_address_t * | a | ) |
Definition at line 426 of file lisp_types.c.
u32 ip_address_parse | ( | void * | offset, |
u16 | iana_afi, | ||
ip_address_t * | dst | ||
) |
Definition at line 480 of file lisp_types.c.
u32 ip_address_put | ( | u8 * | b, |
ip_address_t * | a | ||
) |
u16 ip_address_size_to_write | ( | ip_address_t * | a | ) |
Definition at line 420 of file lisp_types.c.
|
inlinestatic |
void* ip_prefix_cast | ( | gid_address_t * | a | ) |
Definition at line 752 of file lisp_types.c.
u8 ip_prefix_length | ( | void * | a | ) |
u16 ip_prefix_size_to_write | ( | void * | pref | ) |
Definition at line 758 of file lisp_types.c.
Definition at line 765 of file lisp_types.c.
|
inlinestatic |
void* lcaf_cast | ( | gid_address_t * | a | ) |
Definition at line 852 of file lisp_types.c.
void lcaf_copy | ( | void * | dst, |
void * | src | ||
) |
Definition at line 818 of file lisp_types.c.
u8 lcaf_length | ( | void * | a | ) |
Definition at line 828 of file lisp_types.c.
u32 lcaf_parse | ( | void * | offset, |
gid_address_t * | addr | ||
) |
Definition at line 694 of file lisp_types.c.
u16 lcaf_size_to_write | ( | void * | a | ) |
Definition at line 1119 of file lisp_types.c.
Definition at line 1427 of file lisp_types.c.
void locator_free | ( | locator_t * | l | ) |
Definition at line 1445 of file lisp_types.c.
Definition at line 1392 of file lisp_types.c.
void* mac_cast | ( | gid_address_t * | a | ) |
Definition at line 858 of file lisp_types.c.
|
static |
void mac_copy | ( | void * | dst, |
void * | src | ||
) |
u8 mac_length | ( | void * | a | ) |
Definition at line 834 of file lisp_types.c.
u16 mac_size_to_write | ( | void * | a | ) |
Definition at line 921 of file lisp_types.c.
void* no_addr_cast | ( | gid_address_t * | a | ) |
Definition at line 864 of file lisp_types.c.
int no_addr_cmp | ( | void * | a1, |
void * | a2 | ||
) |
Definition at line 1275 of file lisp_types.c.
void no_addr_copy | ( | void * | dst, |
void * | src | ||
) |
Definition at line 801 of file lisp_types.c.
void no_addr_free | ( | void * | a | ) |
Definition at line 721 of file lisp_types.c.
u8 no_addr_length | ( | void * | a | ) |
Definition at line 882 of file lisp_types.c.
Definition at line 687 of file lisp_types.c.
u16 no_addr_size_to_write | ( | void * | a | ) |
Definition at line 1081 of file lisp_types.c.
Definition at line 1074 of file lisp_types.c.
void* nsh_cast | ( | gid_address_t * | a | ) |
Definition at line 876 of file lisp_types.c.
int nsh_cmp | ( | void * | a1, |
void * | a2 | ||
) |
void nsh_copy | ( | void * | dst, |
void * | src | ||
) |
void nsh_free | ( | void * | a | ) |
Definition at line 586 of file lisp_types.c.
u8 nsh_length | ( | void * | a | ) |
Definition at line 846 of file lisp_types.c.
Definition at line 592 of file lisp_types.c.
u16 nsh_size_to_write | ( | void * | a | ) |
Definition at line 1152 of file lisp_types.c.
void* sd_cast | ( | gid_address_t * | a | ) |
Definition at line 870 of file lisp_types.c.
int sd_cmp | ( | void * | a1, |
void * | a2 | ||
) |
Definition at line 1320 of file lisp_types.c.
void sd_copy | ( | void * | dst, |
void * | src | ||
) |
Definition at line 789 of file lisp_types.c.
void sd_free | ( | void * | a | ) |
Definition at line 727 of file lisp_types.c.
u8 sd_length | ( | void * | a | ) |
Definition at line 840 of file lisp_types.c.
Definition at line 618 of file lisp_types.c.
u16 sd_size_to_write | ( | void * | a | ) |
Definition at line 1135 of file lisp_types.c.
Definition at line 961 of file lisp_types.c.
u16 try_parse_src_dst_lcaf | ( | u8 * | p, |
gid_address_t * | a | ||
) |
Definition at line 648 of file lisp_types.c.
uword unformat_fid_address | ( | unformat_input_t * | i, |
va_list * | args | ||
) |
Definition at line 218 of file lisp_types.c.
uword unformat_gid_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 272 of file lisp_types.c.
uword unformat_hmac_key_id | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 247 of file lisp_types.c.
uword unformat_negative_mapping_action | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 313 of file lisp_types.c.
uword unformat_nsh_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 145 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 1104 of file lisp_types.c.
Definition at line 1032 of file lisp_types.c.
addr_len_fct addr_len_fcts[GID_ADDR_TYPES] |
Definition at line 48 of file lisp_types.c.
cast_fct cast_fcts[GID_ADDR_TYPES] |
Definition at line 43 of file lisp_types.c.
copy_fct copy_fcts[GID_ADDR_TYPES] |
Definition at line 53 of file lisp_types.c.
addr_len_fct lcaf_body_length_fcts[LCAF_TYPES] |
Definition at line 102 of file lisp_types.c.
cmp_fct lcaf_cmp_fcts[LCAF_TYPES] |
Definition at line 94 of file lisp_types.c.
copy_fct lcaf_copy_fcts[LCAF_TYPES] |
Definition at line 109 of file lisp_types.c.
free_fct lcaf_free_fcts[LCAF_TYPES] |
Definition at line 116 of file lisp_types.c.
serdes_fct lcaf_parse_fcts[LCAF_TYPES] |
Definition at line 137 of file lisp_types.c.
size_to_write_fct lcaf_size_to_write_fcts[LCAF_TYPES] |
Definition at line 123 of file lisp_types.c.
serdes_fct lcaf_write_fcts[LCAF_TYPES] |
Definition at line 130 of file lisp_types.c.
size_to_write_fct size_to_write_fcts[GID_ADDR_TYPES] |
Definition at line 33 of file lisp_types.c.
serdes_fct write_fcts[GID_ADDR_TYPES] |
Definition at line 38 of file lisp_types.c.