FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
lisp_msg_serdes.c File Reference
+ Include dependency graph for lisp_msg_serdes.c:

Go to the source code of this file.

Functions

void * lisp_msg_put_gid (vlib_buffer_t *b, gid_address_t *gid)
 
static void lisp_msg_put_locators (vlib_buffer_t *b, locator_t *locators)
 
static void lisp_msg_put_mapping_record (vlib_buffer_t *b, mapping_t *record)
 
static void lisp_msg_put_mreg_records (vlib_buffer_t *b, mapping_t *records)
 
static void * lisp_msg_put_itr_rlocs (lisp_cp_main_t *lcm, vlib_buffer_t *b, gid_address_t *rlocs, u8 *locs_put)
 
void * lisp_msg_put_eid_rec (vlib_buffer_t *b, gid_address_t *eid)
 
u64 nonce_build (u32 seed)
 
void * lisp_msg_put_map_reply (vlib_buffer_t *b, mapping_t *records, u64 nonce, u8 probe_bit)
 
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)
 
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)
 
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)
 
static u32 msg_type_to_hdr_len (lisp_msg_type_e type)
 
void * lisp_msg_pull_hdr (vlib_buffer_t *b, lisp_msg_type_e type)
 
u32 lisp_msg_parse_addr (vlib_buffer_t *b, gid_address_t *eid)
 
u32 lisp_msg_parse_eid_rec (vlib_buffer_t *b, gid_address_t *eid)
 
u32 lisp_msg_parse_itr_rlocs (vlib_buffer_t *b, gid_address_t **rlocs, u8 rloc_count)
 
u32 lisp_msg_parse_loc (vlib_buffer_t *b, locator_t *loc)
 
u32 lisp_msg_parse_mapping_record (vlib_buffer_t *b, gid_address_t *eid, locator_t **locs, locator_t *probed_)
 

Function Documentation

◆ lisp_msg_parse_addr()

u32 lisp_msg_parse_addr ( vlib_buffer_t b,
gid_address_t eid 
)

Definition at line 262 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_parse_eid_rec()

u32 lisp_msg_parse_eid_rec ( vlib_buffer_t b,
gid_address_t eid 
)

Definition at line 273 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_parse_itr_rlocs()

u32 lisp_msg_parse_itr_rlocs ( vlib_buffer_t b,
gid_address_t **  rlocs,
u8  rloc_count 
)

Definition at line 289 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_parse_loc()

u32 lisp_msg_parse_loc ( vlib_buffer_t b,
locator_t loc 
)

Definition at line 308 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_parse_mapping_record()

u32 lisp_msg_parse_mapping_record ( vlib_buffer_t b,
gid_address_t eid,
locator_t **  locs,
locator_t probed_ 
)

Definition at line 324 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_pull_hdr()

void* lisp_msg_pull_hdr ( vlib_buffer_t b,
lisp_msg_type_e  type 
)

Definition at line 256 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:

◆ lisp_msg_push_ecm()

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 
)

Definition at line 215 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_eid_rec()

void* lisp_msg_put_eid_rec ( vlib_buffer_t b,
gid_address_t eid 
)

Definition at line 104 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_gid()

void * lisp_msg_put_gid ( vlib_buffer_t b,
gid_address_t gid 
)

Definition at line 68 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_itr_rlocs()

static void* lisp_msg_put_itr_rlocs ( lisp_cp_main_t lcm,
vlib_buffer_t b,
gid_address_t rlocs,
u8 locs_put 
)
static

Definition at line 86 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_locators()

static void lisp_msg_put_locators ( vlib_buffer_t b,
locator_t locators 
)
static

Definition at line 23 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_map_register()

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 
)

Definition at line 154 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_map_reply()

void* lisp_msg_put_map_reply ( vlib_buffer_t b,
mapping_t records,
u64  nonce,
u8  probe_bit 
)

Definition at line 138 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_mapping_record()

static void lisp_msg_put_mapping_record ( vlib_buffer_t b,
mapping_t record 
)
static

Definition at line 43 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_mreg_records()

static void lisp_msg_put_mreg_records ( vlib_buffer_t b,
mapping_t records 
)
static

Definition at line 60 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lisp_msg_put_mreq()

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 
)

Definition at line 181 of file lisp_msg_serdes.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ msg_type_to_hdr_len()

static u32 msg_type_to_hdr_len ( lisp_msg_type_e  type)
static

Definition at line 242 of file lisp_msg_serdes.c.

+ Here is the caller graph for this function:

◆ nonce_build()

u64 nonce_build ( u32  seed)

Definition at line 115 of file lisp_msg_serdes.c.

+ Here is the caller graph for this function: