diff options
author | Skylar Chang <chiaweic@codeaurora.org> | 2015-10-27 12:21:18 -0700 |
---|---|---|
committer | Skylar Chang <chiaweic@codeaurora.org> | 2015-10-29 16:59:22 -0700 |
commit | 37e0de9d0171aa99ccfc13221f63e6eccd24374c (patch) | |
tree | 2a1f21c38f828868678b6309725ebffce96065fa /ipacm/src/IPACM_Config.cpp | |
parent | 195d0070e8379786474285b5da8d04aee2c4bd24 (diff) | |
download | ipacfg-mgr-37e0de9d0171aa99ccfc13221f63e6eccd24374c.tar.gz |
IPACM: change src mac to bridge0
In SW-exception, the src mac of the DL traffic
to wifi-client will use bridge0's mac when device
is in bridge mode however in IPA-HW path, the src
mac of the DL traffic will use netdev's mac instead.
This failed in layer2 security check with some
special applications. The fix is to make src mac
consistent in both SW-exception/IPA-HW cases.
Change-Id: I2f248e2f3c265acfbecdeedac58e7e8dac36fec9
Diffstat (limited to 'ipacm/src/IPACM_Config.cpp')
-rw-r--r-- | ipacm/src/IPACM_Config.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipacm/src/IPACM_Config.cpp b/ipacm/src/IPACM_Config.cpp index f7d764a..c718603 100644 --- a/ipacm/src/IPACM_Config.cpp +++ b/ipacm/src/IPACM_Config.cpp @@ -64,6 +64,7 @@ IPACM_Config::IPACM_Config() ipa_nat_max_entries = 0; ipa_nat_iface_entries = 0; ipa_sw_rt_enable = false; + ipa_bridge_enable = false; isMCC_Mode = false; ipa_max_valid_rm_entry = 0; @@ -88,6 +89,7 @@ IPACM_Config::IPACM_Config() memset(flt_rule_count_v4, 0, (IPA_CLIENT_CONS - IPA_CLIENT_PROD)*sizeof(int)); memset(flt_rule_count_v6, 0, (IPA_CLIENT_CONS - IPA_CLIENT_PROD)*sizeof(int)); + memset(bridge_mac, 0, IPA_MAC_ADDR_SIZE*sizeof(uint8_t)); IPACMDBG_H(" create IPACM_Config constructor\n"); return; |