summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand B Jyoti <anand.b.jyoti@intel.com>2017-10-03 04:00:33 +0530
committerDeepak S <deepak.s@linux.intel.com>2017-10-04 14:32:43 -0700
commit5cbb7066aef466bad9a806ce04393ad739047447 (patch)
tree5753f36e4a0270fa7771352a13e3fe06ff20cf00
parentff7ced9ffeb217d692550b47e23ccc8822de7bcf (diff)
common: arp_route_tbl entry is not working
JIRA: SAMPLEVNF-80 The arp_route_tbl entry was not getting effected as the vnf_gateway flag was not set after adding entry to routing table. This patch fixes the issue. Change-Id: Id3b1b14b698dea5e2beea7f3e90e8622896b5c5f Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
-rw-r--r--common/VIL/l2l3_stack/lib_arp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/VIL/l2l3_stack/lib_arp.c b/common/VIL/l2l3_stack/lib_arp.c
index b8976d3a..85cc3acd 100644
--- a/common/VIL/l2l3_stack/lib_arp.c
+++ b/common/VIL/l2l3_stack/lib_arp.c
@@ -2302,6 +2302,7 @@ static int arp_parse_args(struct pipeline_params *params)
lentry->nh = nh_ip;
lentry->nh_mask = nh_ip & mask;
p_route_data[tx_port]->route_ent_cnt++;
+ vnf_gateway = 1;
token = strtok(NULL, "(");
}
@@ -2366,6 +2367,7 @@ static int arp_parse_args(struct pipeline_params *params)
lentry->port = tx_port;
p_nd_route_data[tx_port]->nd_route_ent_cnt++;
+ vnf_gateway = 1;
token = strtok(NULL, "(");
}