diff options
author | Mohammed Javid <mjavid@codeaurora.org> | 2018-02-08 01:12:59 +0530 |
---|---|---|
committer | Mohammed Javid <mjavid@codeaurora.org> | 2018-02-20 14:34:37 +0530 |
commit | f490bbc8f6db14d7a4700d351c72cf2396417851 (patch) | |
tree | 619042d5f4b629f2a7849a2267f9092b28fe61b2 /ipacm/src/IPACM_Iface.cpp | |
parent | f94ed583afad25eea92faabbfaf3192fffa495f8 (diff) | |
download | ipacfg-mgr-f490bbc8f6db14d7a4700d351c72cf2396417851.tar.gz |
ipacm: cache framework event if IPACM not ready
When set_upstream/add_downstream events received from framework,
IPACM can't handle them if those events are coming earlier than
the new_address netlink event. The fix is to cache those framework
events in offload_manager if IPACM haven't got the netdev
ip-address.
Change-Id: I7826ada63fdc093632b06fba5b43c7a4cf101fb0
Diffstat (limited to 'ipacm/src/IPACM_Iface.cpp')
-rw-r--r-- | ipacm/src/IPACM_Iface.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ipacm/src/IPACM_Iface.cpp b/ipacm/src/IPACM_Iface.cpp index 36e2141..e24f7d9 100644 --- a/ipacm/src/IPACM_Iface.cpp +++ b/ipacm/src/IPACM_Iface.cpp @@ -622,13 +622,6 @@ int IPACM_Iface::query_iface_property(void) } } - /* Add Natting iface to IPACM_Config if there is Rx/Tx property */ - if (rx_prop != NULL || tx_prop != NULL) - { - IPACMDBG_H(" Has rx/tx properties registered for iface %s, add for NATTING \n", dev_name); - IPACM_Iface::ipacmcfg->AddNatIfaces(dev_name); - } - close(fd); return res; } @@ -937,6 +930,12 @@ int IPACM_Iface::init_fl_rule(ipa_ip_type iptype) } } + /* Add Natting iface to IPACM_Config if there is Rx/Tx property */ + if (rx_prop != NULL || tx_prop != NULL) + { + IPACMDBG_H(" Has rx/tx properties registered for iface %s, add for NATTING for ip-family %d \n", dev_name, iptype); + IPACM_Iface::ipacmcfg->AddNatIfaces(dev_name, iptype); + } fail: free(m_pFilteringTable); |