summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAnand B Jyoti <anand.b.jyoti@intel.com>2017-10-03 04:00:33 +0530
committerAnand B Jyoti <anand.b.jyoti@intel.com>2017-10-03 04:00:33 +0530
commit4d17d770539a2f0a0505e5acc24e6a1db7e35dfe (patch)
tree5753f36e4a0270fa7771352a13e3fe06ff20cf00 /common
parentcf99de92f530cbc827774270da2e26fcccbc3565 (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>
Diffstat (limited to 'common')
-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, "(");
}