Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ethernet: configure system default ethernet MTU
[vpp.git]
/
src
/
vnet
/
vxlan
/
vxlan_api.c
diff --git
a/src/vnet/vxlan/vxlan_api.c
b/src/vnet/vxlan/vxlan_api.c
index
512cc89
..
8efd1e6
100644
(file)
--- a/
src/vnet/vxlan/vxlan_api.c
+++ b/
src/vnet/vxlan/vxlan_api.c
@@
-180,7
+180,7
@@
static void send_vxlan_tunnel_details
u8 is_ipv6 = !ip46_address_is_ip4 (&t->dst);
rmp = vl_msg_api_alloc (sizeof (*rmp));
u8 is_ipv6 = !ip46_address_is_ip4 (&t->dst);
rmp = vl_msg_api_alloc (sizeof (*rmp));
- memset (rmp, 0, sizeof (*rmp));
+
clib_
memset (rmp, 0, sizeof (*rmp));
rmp->_vl_msg_id = ntohs (VL_API_VXLAN_TUNNEL_DETAILS);
if (is_ipv6)
{
rmp->_vl_msg_id = ntohs (VL_API_VXLAN_TUNNEL_DETAILS);
if (is_ipv6)
{
@@
-263,7
+263,7
@@
setup_message_id_table (api_main_t * am)
static clib_error_t *
vxlan_api_hookup (vlib_main_t * vm)
{
static clib_error_t *
vxlan_api_hookup (vlib_main_t * vm)
{
- api_main_t *am =
&api_main
;
+ api_main_t *am =
vlibapi_get_main ()
;
#define _(N,n) \
vl_msg_api_set_handlers(VL_API_##N, #n, \
#define _(N,n) \
vl_msg_api_set_handlers(VL_API_##N, #n, \