From: Anand B Jyoti Date: Mon, 2 Oct 2017 22:30:33 +0000 (+0530) Subject: common: arp_route_tbl entry is not working X-Git-Tag: opnfv-5.0.RC1~24 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F44325%2F1;p=samplevnf.git 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 --- 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, "("); }