summaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-gpe
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-06-05 09:50:38 +0200
committerFilip Tehlar <ftehlar@cisco.com>2017-06-05 09:50:38 +0200
commit719aef4835403125284a4fa71093e8b536997841 (patch)
tree2a9aeb0b2ccfca138f40aa16dbf5013e694ccc6b /src/vnet/lisp-gpe
parent6e19b37757df334d58dbd6b7fa39f0e6e42f7d30 (diff)
LISP: fix GPE entry dump, VPP-871
Change-Id: Ifcd6d2caecce29c8b4605d06b9df82b36a403e74 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe')
-rw-r--r--src/vnet/lisp-gpe/lisp_gpe_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe_api.c b/src/vnet/lisp-gpe/lisp_gpe_api.c
index 9edffa18ad4..e2c055bafaf 100644
--- a/src/vnet/lisp-gpe/lisp_gpe_api.c
+++ b/src/vnet/lisp-gpe/lisp_gpe_api.c
@@ -198,11 +198,11 @@ gpe_fwd_entries_copy (vl_api_gpe_fwd_entry_t * dst,
vec_foreach (e, src)
{
- memset (dst, 0, sizeof (*dst));
- dst[i].dp_table = src->dp_table;
- dst[i].fwd_entry_index = src->fwd_entry_index;
- dst[i].vni = src->vni;
- dst[i].action = src->action;
+ memset (&dst[i], 0, sizeof (*dst));
+ dst[i].dp_table = e->dp_table;
+ dst[i].fwd_entry_index = e->fwd_entry_index;
+ dst[i].vni = e->vni;
+ dst[i].action = e->action;
switch (fid_addr_type (&e->leid))
{
case FID_ADDR_IP_PREF: