From 18ed683bd3b16c7a5e411500f48cfc9eeb2ea720 Mon Sep 17 00:00:00 2001 From: Sridhar Ancha Date: Thu, 21 Apr 2016 20:16:36 +0530 Subject: 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 --- ipacm/inc/IPACM_Wan.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipacm/inc/IPACM_Wan.h') 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; -- cgit v1.2.3