Merge "IPACM: Fix the nat timeout update issue"
diff --git a/ipacm/inc/IPACM_Xml.h b/ipacm/inc/IPACM_Xml.h
index 06be0a9..f645ae1 100644
--- a/ipacm/inc/IPACM_Xml.h
+++ b/ipacm/inc/IPACM_Xml.h
@@ -40,10 +40,6 @@
#ifndef IPACM_XML_H
#define IPACM_XML_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <linux/msm_ipa.h>
#include "IPACM_Defs.h"
#include <stdio.h>
@@ -53,6 +49,10 @@
#include <stdint.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define IPACM_ASSERT(a) \
if (!(a)) { \
diff --git a/ipacm/src/Android.mk b/ipacm/src/Android.mk
index 64ee3ec..c52a8a4 100644
--- a/ipacm/src/Android.mk
+++ b/ipacm/src/Android.mk
@@ -3,7 +3,6 @@
ifneq ($(call is-board-platform-in-list,$(BOARD_PLATFORM_LIST)),true)
ifneq (,$(filter $(QCOM_BOARD_PLATFORMS),$(TARGET_BOARD_PLATFORM)))
ifneq (, $(filter aarch64 arm arm64, $(TARGET_ARCH)))
-ifneq ($(TARGET_USES_AOSP),true)
LOCAL_PATH := $(call my-dir)
@@ -18,7 +17,6 @@
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_C_INCLUDES += external/dhcpcd
-LOCAL_C_INCLUDES += bionic/libstdc++/include
LOCAL_C_INCLUDES += external/libxml2/include
LOCAL_C_INCLUDES += external/libnetfilter_conntrack/include
LOCAL_C_INCLUDES += external/libnfnetlink/include
@@ -63,7 +61,6 @@
LOCAL_SHARED_LIBRARIES += libxml2
LOCAL_SHARED_LIBRARIES += libnfnetlink
LOCAL_SHARED_LIBRARIES += libnetfilter_conntrack
-LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_SHARED_LIBRARIES += libdhcpcd
include $(BUILD_EXECUTABLE)
@@ -90,7 +87,6 @@
LOCAL_MODULE_OWNER := ipacm
include $(BUILD_PREBUILT)
-endif # not (TARGET_USES_AOSP)
endif # $(TARGET_ARCH)
endif
endif
\ No newline at end of file
diff --git a/ipacm/src/IPACM_Wan.cpp b/ipacm/src/IPACM_Wan.cpp
index 0aec857..6381826 100644
--- a/ipacm/src/IPACM_Wan.cpp
+++ b/ipacm/src/IPACM_Wan.cpp
@@ -296,7 +296,8 @@
dft_rt_rule_hdl[MAX_DEFAULT_v4_ROUTE_RULES + 2*num_dft_rt_v6],
dft_rt_rule_hdl[MAX_DEFAULT_v4_ROUTE_RULES + 2*num_dft_rt_v6+1],num_dft_rt_v6);
- if (num_dft_rt_v6 == 0)
+ /* add default filtering rules when wan-iface get global v6-prefix */
+ if (num_dft_rt_v6 == 1)
{
if(m_is_sta_mode == Q6_WAN)
{