diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-07-20 11:22:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-20 11:22:20 +0000 |
commit | 51759157a499326cfe69ec0eecb00b1c5879bf50 (patch) | |
tree | bb2197d5344b52ec015323a4fd5e36d6ec6937e4 /common/vnf_common/vnf_common.c | |
parent | cfe2f779d4365dba03659b64668cb301fae53c95 (diff) | |
parent | 0e51437be874b6831e95639f4c1ad6b0133c2a28 (diff) |
Merge "[l2l3 stack] implements new arp state machine & arp buffering"
Diffstat (limited to 'common/vnf_common/vnf_common.c')
-rw-r--r-- | common/vnf_common/vnf_common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/vnf_common/vnf_common.c b/common/vnf_common/vnf_common.c index 6ce815be..a40d4d84 100644 --- a/common/vnf_common/vnf_common.c +++ b/common/vnf_common/vnf_common.c @@ -47,12 +47,13 @@ uint8_t is_port_index_privte(uint16_t phy_port) uint32_t get_prv_to_pub_port(uint32_t *ip_addr, uint8_t type) { uint32_t dest_if = 0xff; + struct ether_addr addr; switch (type) { case 4: { uint32_t nhip; - nhip = get_nh(ip_addr[0], &dest_if); + nhip = get_nh(ip_addr[0], &dest_if, &addr); if (nhip) return dest_if; @@ -75,12 +76,13 @@ uint32_t get_prv_to_pub_port(uint32_t *ip_addr, uint8_t type) uint32_t get_pub_to_prv_port(uint32_t *ip_addr, uint8_t type) { uint32_t dest_if = 0xff; + struct ether_addr addr; switch (type) { case 4: { uint32_t nhip; - nhip = get_nh(ip_addr[0], &dest_if); + nhip = get_nh(ip_addr[0], &dest_if, &addr); if (nhip) return dest_if; |