From 5cbb7066aef466bad9a806ce04393ad739047447 Mon Sep 17 00:00:00 2001 From: Anand B Jyoti Date: Tue, 3 Oct 2017 04:00:33 +0530 Subject: 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 --- common/VIL/l2l3_stack/lib_arp.c | 2 ++ 1 file changed, 2 insertions(+) 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, "("); } -- cgit 1.2.3-korg