summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2016-09-02 12:40:31 +0900
committerHugo Benichi <hugobenichi@google.com>2016-09-13 10:54:42 +0900
commit0dc1d314709d579ccdc3fc59a5f66557f6cd319d (patch)
tree6a273b21bdc3bbb1ed7c3b7ac81c6a154de9bdbd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent6708b64797660067f9bb50f09806746d4f590e71 (diff)
ApfFilter: more precise IPv4 broadcast filter
This patch refines the Apf IPv4 filter for interfaces with Apf capabilities to drop packets when: - the multicast lock is not held - the packet is an IPv4 packet - the packet is not a DHCP packet addressed to us - the packet is L2 broadcast, or IPv4 multicast, or IPv4 broadcast - caveat: subnet broadcast address is not checked. This allows to drop IPv4 broadcast packets whose MAC destination address is not the L2 broadcast address but the current address of the interface. Such packets can be received on network that rewrite L2 addresses and can put significant pressure on battery by waking up the phone unnecessarily. Bug: 30231088 Change-Id: I8b1785fc5ceadaa1f2881765983e502135dcbc46
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions