diff options
author | Sridhar Ancha <sancha@codeaurora.org> | 2016-04-21 20:16:36 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-08-23 14:13:32 -0700 |
commit | 18ed683bd3b16c7a5e411500f48cfc9eeb2ea720 (patch) | |
tree | e9f1d40fc55cde9e16fbea612bc18240ba90f0ce /ipacm/inc/IPACM_Wan.h | |
parent | 8c5a6d96f8b756ceea2724ee905a28a5fa8d3479 (diff) | |
download | android_vendor_qcom_opensource_data-ipa-cfg-mgr-18ed683bd3b16c7a5e411500f48cfc9eeb2ea720.tar.gz android_vendor_qcom_opensource_data-ipa-cfg-mgr-18ed683bd3b16c7a5e411500f48cfc9eeb2ea720.tar.bz2 android_vendor_qcom_opensource_data-ipa-cfg-mgr-18ed683bd3b16c7a5e411500f48cfc9eeb2ea720.zip |
ipacm: changes related to IP Passhthrough
In IP passthrough, WAN interface will be assigned a private ip
address. NAT rules related this IP need to be added to the HW
so that there will not be any exceptions. Give provision in
XML using which QCMAP indicates passthrough mode. Whenever
passthrough mode is enabled and the private ip matches with
wan ip, nat rules will be added to the HW.
Change-Id: I7e82b6f55391da20f5c5db9e00bc83508b7f8788
Diffstat (limited to 'ipacm/inc/IPACM_Wan.h')
-rw-r--r-- | ipacm/inc/IPACM_Wan.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipacm/inc/IPACM_Wan.h b/ipacm/inc/IPACM_Wan.h index b4bf50e..e42358f 100644 --- a/ipacm/inc/IPACM_Wan.h +++ b/ipacm/inc/IPACM_Wan.h @@ -97,6 +97,7 @@ public: static uint8_t xlat_mux_id; /* IPACM interface name */ static char wan_up_dev_name[IF_NAME_LEN]; + static uint32_t curr_wan_ip; IPACM_Wan(int, ipacm_wan_iface_type, uint8_t *); virtual ~IPACM_Wan(); @@ -140,6 +141,11 @@ public: #endif } + static uint32_t getWANIP() + { + return curr_wan_ip; + } + static bool getXlat_Mux_Id() { return xlat_mux_id; |