FD.io VPP
v18.07-rc0-415-g6c78436
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | fid_address_t |
struct | source_dest_t |
struct | vni_t |
struct | nsh_t |
struct | lcaf_arp_ndp_t |
struct | lcaf_t |
struct | locator_t |
struct | locator_set_t |
struct | mapping_t |
struct | locator_pair |
Typedefs | |
typedef enum fid_addr_type_t_ | fid_addr_type_t |
typedef fid_address_t | dp_address_t |
typedef struct _gid_address_t | gid_address_t |
typedef struct locator_pair | locator_pair_t |
Enumerations | |
enum | lisp_key_type_t { HMAC_NO_KEY = 0, HMAC_SHA_1_96, HMAC_SHA_256_128 } |
enum | ip_address_type_t { IP4, IP6 } |
enum | gid_address_type_t { GID_ADDR_IP_PREFIX, GID_ADDR_LCAF, GID_ADDR_MAC, GID_ADDR_SRC_DST, GID_ADDR_NSH, GID_ADDR_ARP, GID_ADDR_NDP, GID_ADDR_NO_ADDRESS, GID_ADDR_TYPES } |
enum | lcaf_type_t { LCAF_NULL_BODY = 0, LCAF_AFI_LIST_TYPE, LCAF_INSTANCE_ID, LCAF_SOURCE_DEST = 12, LCAF_NSH = 17, LCAF_TYPES } |
enum | fid_addr_type_t_ { FID_ADDR_IP_PREF, FID_ADDR_MAC, FID_ADDR_NSH } |
enum | lisp_afi_e { LISP_AFI_NO_ADDR, LISP_AFI_IP, LISP_AFI_IP6, LISP_AFI_LCAF = 16387, LISP_AFI_MAC = 16389 } |
#define fid_addr_ip_version | ( | _a | ) | ip_prefix_version(&fid_addr_ippref(_a)) |
Definition at line 133 of file lisp_types.h.
#define fid_addr_ippref | ( | _a | ) | (_a)->ippref |
Definition at line 131 of file lisp_types.h.
#define fid_addr_mac | ( | _a | ) | (_a)->mac |
Definition at line 134 of file lisp_types.h.
#define fid_addr_nsh | ( | _a | ) | (_a)->nsh |
Definition at line 135 of file lisp_types.h.
#define fid_addr_prefix_length | ( | _a | ) | ip_prefix_len(&fid_addr_ippref(_a)) |
Definition at line 132 of file lisp_types.h.
#define fid_addr_type | ( | _a | ) | (_a)->type |
Definition at line 136 of file lisp_types.h.
#define foreach_gid_address_type_fcns |
Definition at line 291 of file lisp_types.h.
#define gid_address_arp_bd gid_address_arp_ndp_bd |
Definition at line 288 of file lisp_types.h.
#define gid_address_arp_ip4 | ( | _a | ) | lcaf_arp_ndp_ip4(&gid_address_arp_ndp(_a)) |
Definition at line 285 of file lisp_types.h.
#define gid_address_arp_ndp | ( | _a | ) | (_a)->arp_ndp |
Definition at line 282 of file lisp_types.h.
#define gid_address_arp_ndp_bd | ( | _a | ) | lcaf_arp_ndp_bd(&gid_address_arp_ndp(_a)) |
Definition at line 283 of file lisp_types.h.
#define gid_address_arp_ndp_ip | ( | _a | ) | lcaf_arp_ndp_ip(&gid_address_arp_ndp(_a)) |
Definition at line 284 of file lisp_types.h.
#define gid_address_ip | ( | _a | ) | ip_prefix_addr(&gid_address_ippref(_a)) |
Definition at line 264 of file lisp_types.h.
#define gid_address_ip_version | ( | _a | ) | ip_addr_version(&gid_address_ip(_a)) |
Definition at line 265 of file lisp_types.h.
#define gid_address_ippref | ( | _a | ) | (_a)->ippref |
Definition at line 262 of file lisp_types.h.
#define gid_address_ippref_len | ( | _a | ) | (_a)->ippref.len |
Definition at line 263 of file lisp_types.h.
#define gid_address_lcaf | ( | _a | ) | (_a)->lcaf |
Definition at line 266 of file lisp_types.h.
#define gid_address_mac | ( | _a | ) | (_a)->mac |
Definition at line 267 of file lisp_types.h.
#define gid_address_ndp_bd gid_address_arp_ndp_bd |
Definition at line 287 of file lisp_types.h.
#define gid_address_ndp_ip6 | ( | _a | ) | lcaf_arp_ndp_ip6(&gid_address_arp_ndp(_a)) |
Definition at line 286 of file lisp_types.h.
#define gid_address_nsh | ( | _a | ) | (_a)->nsh |
Definition at line 268 of file lisp_types.h.
#define gid_address_nsh_si | ( | _a | ) | nsh_si(&gid_address_nsh(_a)) |
Definition at line 270 of file lisp_types.h.
#define gid_address_nsh_spi | ( | _a | ) | nsh_spi(&gid_address_nsh(_a)) |
Definition at line 269 of file lisp_types.h.
#define gid_address_sd | ( | _a | ) | (_a)->sd |
Definition at line 277 of file lisp_types.h.
#define gid_address_sd_dst | ( | _a | ) | sd_dst(&gid_address_sd(_a)) |
Definition at line 279 of file lisp_types.h.
#define gid_address_sd_dst_ippref | ( | _a | ) | sd_dst_ippref(&(_a)->sd) |
Definition at line 273 of file lisp_types.h.
#define gid_address_sd_dst_mac | ( | _a | ) | sd_dst_mac(&(_a)->sd) |
Definition at line 275 of file lisp_types.h.
#define gid_address_sd_dst_type | ( | _a | ) | sd_dst_type(&gid_address_sd(_a)) |
Definition at line 281 of file lisp_types.h.
#define gid_address_sd_src | ( | _a | ) | sd_src(&gid_address_sd(_a)) |
Definition at line 278 of file lisp_types.h.
#define gid_address_sd_src_ippref | ( | _a | ) | sd_src_ippref(&(_a)->sd) |
Definition at line 274 of file lisp_types.h.
#define gid_address_sd_src_mac | ( | _a | ) | sd_src_mac(&(_a)->sd) |
Definition at line 276 of file lisp_types.h.
#define gid_address_sd_src_type | ( | _a | ) | sd_src_type(&gid_address_sd(_a)) |
Definition at line 280 of file lisp_types.h.
#define gid_address_type | ( | _a | ) | (_a)->type |
Definition at line 261 of file lisp_types.h.
#define gid_address_vni | ( | _a | ) | (_a)->vni |
Definition at line 271 of file lisp_types.h.
#define gid_address_vni_mask | ( | _a | ) | (_a)->vni_mask |
Definition at line 272 of file lisp_types.h.
#define ip_addr_addr | ( | _a | ) | (_a)->ip |
Definition at line 53 of file lisp_types.h.
#define ip_addr_v4 | ( | _a | ) | (_a)->ip.v4 |
Definition at line 54 of file lisp_types.h.
#define ip_addr_v6 | ( | _a | ) | (_a)->ip.v6 |
Definition at line 55 of file lisp_types.h.
#define ip_addr_version | ( | _a | ) | (_a)->version |
Definition at line 56 of file lisp_types.h.
#define ip_prefix_addr | ( | _a | ) | (_a)->addr |
Definition at line 71 of file lisp_types.h.
#define ip_prefix_len | ( | _a | ) | (_a)->len |
Definition at line 73 of file lisp_types.h.
#define ip_prefix_v4 | ( | _a | ) | ip_addr_v4(&ip_prefix_addr(_a)) |
Definition at line 74 of file lisp_types.h.
#define ip_prefix_v6 | ( | _a | ) | ip_addr_v6(&ip_prefix_addr(_a)) |
Definition at line 75 of file lisp_types.h.
#define ip_prefix_version | ( | _a | ) | ip_addr_version(&ip_prefix_addr(_a)) |
Definition at line 72 of file lisp_types.h.
#define lcaf_arp_ndp_bd | ( | _a | ) | (_a)->bd |
Definition at line 184 of file lisp_types.h.
#define lcaf_arp_ndp_ip | ( | _a | ) | (_a)->addr |
Definition at line 180 of file lisp_types.h.
#define lcaf_arp_ndp_ip4 | ( | _a | ) | ip_addr_v4(&lcaf_arp_ndp_ip(_a)) |
Definition at line 182 of file lisp_types.h.
#define lcaf_arp_ndp_ip6 | ( | _a | ) | ip_addr_v6(&lcaf_arp_ndp_ip(_a)) |
Definition at line 183 of file lisp_types.h.
#define lcaf_arp_ndp_ip_ver | ( | _a | ) | ip_addr_version(&lcaf_arp_ndp_ip(_a)) |
Definition at line 181 of file lisp_types.h.
#define lcaf_type | ( | _a | ) | (_a)->type |
Definition at line 198 of file lisp_types.h.
#define lcaf_vni | ( | _a | ) | vni_vni(& (_a)->uni) |
Definition at line 199 of file lisp_types.h.
#define lcaf_vni_len | ( | _a | ) | vni_mask_len(& (_a)->uni) |
Definition at line 200 of file lisp_types.h.
#define nsh_si | ( | _a | ) | (_a)->si |
Definition at line 172 of file lisp_types.h.
#define nsh_spi | ( | _a | ) | (_a)->spi |
Definition at line 171 of file lisp_types.h.
#define sd_dst | ( | _a | ) | (_a)->dst |
Definition at line 145 of file lisp_types.h.
#define sd_dst_ippref | ( | _a | ) | fid_addr_ippref(&sd_dst(_a)) |
Definition at line 148 of file lisp_types.h.
#define sd_dst_mac | ( | _a | ) | fid_addr_mac(&sd_dst(_a)) |
Definition at line 150 of file lisp_types.h.
#define sd_dst_type | ( | _a | ) | fid_addr_type(&sd_dst(_a)) |
Definition at line 152 of file lisp_types.h.
#define sd_src | ( | _a | ) | (_a)->src |
Definition at line 146 of file lisp_types.h.
#define sd_src_ippref | ( | _a | ) | fid_addr_ippref(&sd_src(_a)) |
Definition at line 147 of file lisp_types.h.
#define sd_src_mac | ( | _a | ) | fid_addr_mac(&sd_src(_a)) |
Definition at line 149 of file lisp_types.h.
#define sd_src_type | ( | _a | ) | fid_addr_type(&sd_src(_a)) |
Definition at line 151 of file lisp_types.h.
#define SHA1_AUTH_DATA_LEN 20 |
Definition at line 22 of file lisp_types.h.
#define SHA256_AUTH_DATA_LEN 32 |
Definition at line 23 of file lisp_types.h.
#define vni_gid | ( | _a | ) | (_a)->gid_addr |
Definition at line 163 of file lisp_types.h.
#define vni_mask_len | ( | _a | ) | (_a)->vni_mask_len |
Definition at line 162 of file lisp_types.h.
#define vni_vni | ( | _a | ) | (_a)->vni |
Definition at line 161 of file lisp_types.h.
typedef fid_address_t dp_address_t |
Definition at line 129 of file lisp_types.h.
typedef enum fid_addr_type_t_ fid_addr_type_t |
typedef struct _gid_address_t gid_address_t |
typedef struct locator_pair locator_pair_t |
enum fid_addr_type_t_ |
Enumerator | |
---|---|
FID_ADDR_IP_PREF | |
FID_ADDR_MAC | |
FID_ADDR_NSH |
Definition at line 110 of file lisp_types.h.
enum gid_address_type_t |
Enumerator | |
---|---|
GID_ADDR_IP_PREFIX | |
GID_ADDR_LCAF | |
GID_ADDR_MAC | |
GID_ADDR_SRC_DST | |
GID_ADDR_NSH | |
GID_ADDR_ARP | |
GID_ADDR_NDP | |
GID_ADDR_NO_ADDRESS | |
GID_ADDR_TYPES |
Definition at line 84 of file lisp_types.h.
enum ip_address_type_t |
Enumerator | |
---|---|
IP4 | |
IP6 |
Definition at line 35 of file lisp_types.h.
enum lcaf_type_t |
Enumerator | |
---|---|
LCAF_NULL_BODY | |
LCAF_AFI_LIST_TYPE | |
LCAF_INSTANCE_ID | |
LCAF_SOURCE_DEST | |
LCAF_NSH | |
LCAF_TYPES |
Definition at line 99 of file lisp_types.h.
enum lisp_afi_e |
Enumerator | |
---|---|
LISP_AFI_NO_ADDR | |
LISP_AFI_IP | |
LISP_AFI_IP6 | |
LISP_AFI_LCAF | |
LISP_AFI_MAC |
Definition at line 239 of file lisp_types.h.
enum lisp_key_type_t |
Enumerator | |
---|---|
HMAC_NO_KEY | |
HMAC_SHA_1_96 | |
HMAC_SHA_256_128 |
Definition at line 25 of file lisp_types.h.
void build_src_dst | ( | gid_address_t * | sd, |
gid_address_t * | src, | ||
gid_address_t * | dst | ||
) |
Definition at line 1743 of file lisp_types.c.
typedef CLIB_PACKED | ( | struct ip_address{union{ip4_address_t v4;ip6_address_t v6;}ip;u8 version;} | ) |
Definition at line 244 of file lisp_types.c.
Definition at line 265 of file lisp_types.c.
Definition at line 420 of file lisp_types.c.
Definition at line 144 of file lisp_types.c.
Definition at line 179 of file lisp_types.c.
Definition at line 215 of file lisp_types.c.
Definition at line 438 of file lisp_types.c.
void* gid_address_cast | ( | gid_address_t * | gid, |
gid_address_type_t | type | ||
) |
Definition at line 1489 of file lisp_types.c.
int gid_address_cmp | ( | gid_address_t * | a1, |
gid_address_t * | a2 | ||
) |
Definition at line 1632 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 861 of file lisp_types.c.
void gid_address_ip_set | ( | gid_address_t * | dst, |
void * | src, | ||
u8 | version | ||
) |
Definition at line 1560 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 1515 of file lisp_types.c.
u16 gid_address_put | ( | u8 * | b, |
gid_address_t * | gid | ||
) |
Definition at line 1464 of file lisp_types.c.
u16 gid_address_size_to_put | ( | gid_address_t * | a | ) |
Definition at line 1480 of file lisp_types.c.
void gid_to_dp_address | ( | gid_address_t * | g, |
dp_address_t * | d | ||
) |
Definition at line 606 of file lisp_types.c.
u32 ip4_address_put | ( | u8 * | b, |
ip4_address_t * | a | ||
) |
Definition at line 569 of file lisp_types.c.
u16 ip4_address_size_to_put | ( | ) |
u32 ip6_address_put | ( | u8 * | b, |
ip6_address_t * | a | ||
) |
Definition at line 578 of file lisp_types.c.
u16 ip6_address_size_to_put | ( | ) |
int ip_address_cmp | ( | const ip_address_t * | ip1, |
const ip_address_t * | ip2 | ||
) |
Definition at line 869 of file lisp_types.c.
void ip_address_copy | ( | ip_address_t * | dst, |
const ip_address_t * | src | ||
) |
void ip_address_copy_addr | ( | void * | dst, |
const ip_address_t * | src | ||
) |
Definition at line 902 of file lisp_types.c.
u16 ip_address_iana_afi | ( | ip_address_t * | a | ) |
Definition at line 543 of file lisp_types.c.
void ip_address_set | ( | ip_address_t * | dst, |
const void * | src, | ||
u8 | version | ||
) |
Definition at line 908 of file lisp_types.c.
u16 ip_address_size_to_write | ( | ip_address_t * | a | ) |
Definition at line 537 of file lisp_types.c.
void ip_address_to_46 | ( | const ip_address_t * | addr, |
ip46_address_t * | a, | ||
fib_protocol_t * | proto | ||
) |
void ip_address_to_fib_prefix | ( | const ip_address_t * | addr, |
fib_prefix_t * | prefix | ||
) |
void ip_prefix_normalize | ( | ip_prefix_t * | a | ) |
Definition at line 988 of file lisp_types.c.
void ip_prefix_to_fib_prefix | ( | const ip_prefix_t * | ipp, |
fib_prefix_t * | fibp | ||
) |
Definition at line 1718 of file lisp_types.c.
void locator_free | ( | locator_t * | l | ) |
Definition at line 1736 of file lisp_types.c.
Definition at line 1684 of file lisp_types.c.
|
inlinestatic |
Definition at line 312 of file lisp_types.h.
uword unformat_gid_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 350 of file lisp_types.c.
uword unformat_hmac_key_id | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 325 of file lisp_types.c.
uword unformat_ip_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 164 of file lisp_types.c.
uword unformat_ip_prefix | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 187 of file lisp_types.c.
uword unformat_mac_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 207 of file lisp_types.c.
uword unformat_negative_mapping_action | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 391 of file lisp_types.c.