FD.io VPP  v16.06
Vector Packet Processing
lisp_msg_serdes.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef VNET_LISP_GPE_LISP_MSG_BUILDER_H_
17 #define VNET_LISP_GPE_LISP_MSG_BUILDER_H_
18 
19 #include <vnet/vnet.h>
21 #include <vnet/lisp-cp/control.h>
22 
23 void *
25  gid_address_t * seid, gid_address_t * deid,
26  gid_address_t * rlocs, u8 is_smr_invoked, u64 * nonce);
27 
28 void *
29 lisp_msg_push_ecm (vlib_main_t * vm, vlib_buffer_t *b, int lp, int rp,
30  gid_address_t *la, gid_address_t *ra);
31 
32 u32
34  locator_t ** locs, locator_t * probed_);
35 
36 u32
38 
39 u32
41 
42 u32
44  u8 rloc_count);
45 
46 #endif /* VNET_LISP_GPE_LISP_MSG_BUILDER_H_ */
u32 lisp_msg_parse_mapping_record(vlib_buffer_t *b, gid_address_t *eid, locator_t **locs, locator_t *probed_)
u32 lisp_msg_parse_eid_rec(vlib_buffer_t *b, gid_address_t *eid)
u32 lisp_msg_parse_addr(vlib_buffer_t *b, gid_address_t *eid)
unsigned long u64
Definition: types.h:89
u32 lisp_msg_parse_itr_rlocs(vlib_buffer_t *b, gid_address_t **rlocs, u8 rloc_count)
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, 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)
struct _gid_address_t gid_address_t
unsigned int u32
Definition: types.h:88
unsigned char u8
Definition: types.h:56