|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
99 *locs_put =
count - 1;
124 syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts);
125 nonce_lower = ts.tv_nsec;
126 nonce_upper = ts.tv_sec ^ clib_host_to_net_u32 (nonce_lower);
133 nonce = (nonce << 32) | nonce_lower;
155 u8 want_map_notify,
u16 auth_data_len,
u64 * nonce,
184 u8 rloc_probe_set,
u64 * nonce)
296 for (
i = 0;
i < rloc_count;
i++)
327 void *
h = 0, *loc_hdr = 0;
329 int i = 0,
len = 0, llen = 0;
363 (
"Multiple locators probed! Probing only the first!");
369 if (probed_ != 0 && probed)
void * lisp_msg_put_gid(vlib_buffer_t *b, gid_address_t *gid)
#define gid_address_ippref_len(_a)
void * lisp_msg_push_ecm(vlib_main_t *vm, vlib_buffer_t *b, int lp, int rp, gid_address_t *la, gid_address_t *ra)
#define MAP_REGISTER_DEFAULT_TTL
static void * vlib_buffer_put_uninit(vlib_buffer_t *b, u16 size)
Append uninitialized data to buffer.
#define MAP_REC_LOC_COUNT(h)
static void * lisp_msg_put_itr_rlocs(lisp_cp_main_t *lcm, vlib_buffer_t *b, gid_address_t *rlocs, u8 *locs_put)
#define LOC_REACHABLE(h_)
static void lisp_msg_put_mapping_record(vlib_buffer_t *b, mapping_t *record)
#define MREG_WANT_MAP_NOTIFY(h_)
static void * vlib_buffer_pull(vlib_buffer_t *b, u8 size)
Retrieve bytes from buffer head.
void * lisp_msg_put_map_reply(vlib_buffer_t *b, mapping_t *records, u64 nonce, u8 probe_bit)
#define MREP_REC_COUNT(h_)
static void increment_record_count(void *b)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define gid_address_ip(_a)
static u8 vlib_buffer_has_space(vlib_buffer_t *b, word l)
Check if there is enough space in buffer to advance.
u8 gid_address_len(gid_address_t *a)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define LOC_MPRIORITY(h_)
u16 gid_address_size_to_put(gid_address_t *gid)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
u32 lisp_msg_parse_itr_rlocs(vlib_buffer_t *b, gid_address_t **rlocs, u8 rloc_count)
u32 lisp_msg_parse_eid_rec(vlib_buffer_t *b, gid_address_t *eid)
u32 locator_parse(void *b, locator_t *loc)
u32 lisp_msg_parse_addr(vlib_buffer_t *b, gid_address_t *eid)
static void lisp_msg_put_locators(vlib_buffer_t *b, locator_t *locators)
#define MAP_REC_EID_PLEN(h)
sll srl srl sll sra u16x4 i
u16 gid_address_put(u8 *b, gid_address_t *gid)
void * lisp_msg_pull_hdr(vlib_buffer_t *b, lisp_msg_type_e type)
struct _eid_prefix_record_hdr eid_record_hdr_t
#define MREQ_RLOC_PROBE(h_)
void * lisp_msg_put_mreq(lisp_cp_main_t *lcm, vlib_buffer_t *b, gid_address_t *seid, gid_address_t *deid, gid_address_t *rlocs, u8 is_smr_invoked, u8 rloc_probe_set, u64 *nonce)
#define MREG_REC_COUNT(h_)
void * lisp_msg_put_eid_rec(vlib_buffer_t *b, gid_address_t *eid)
void * lisp_msg_put_map_register(vlib_buffer_t *b, mapping_t *records, u8 want_map_notify, u16 auth_data_len, u64 *nonce, u32 *msg_len)
#define MREQ_ITR_RLOC_COUNT(h_)
static u8 * vlib_buffer_get_tail(vlib_buffer_t *b)
Get pointer to the end of buffer's data.
void * pkt_push_udp_and_ip(vlib_main_t *vm, vlib_buffer_t *b, u16 sp, u16 dp, ip_address_t *sip, ip_address_t *dip, u8 csum_offload)
struct _mapping_record_hdr_t mapping_record_hdr_t
u32 gid_address_parse(u8 *offset, gid_address_t *a)
#define vec_foreach(var, vec)
Vector iterator.
u64 nonce_build(u32 seed)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
#define gid_address_type(_a)
#define MREP_RLOC_PROBE(h_)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
#define MREQ_SMR_INVOKED(h_)
#define clib_warning(format, args...)
struct _gid_address_t gid_address_t
u32 lisp_msg_parse_mapping_record(vlib_buffer_t *b, gid_address_t *eid, locator_t **locs, locator_t *probed_)
void * pkt_push_ecm_hdr(vlib_buffer_t *b)
struct _locator_hdr locator_hdr_t
static u32 msg_type_to_hdr_len(lisp_msg_type_e type)
static void lisp_msg_put_mreg_records(vlib_buffer_t *b, mapping_t *records)
vl_api_fib_path_type_t type
u32 lisp_msg_parse_loc(vlib_buffer_t *b, locator_t *loc)
VLIB buffer representation.