OSDN Git Service

Ignore flow label when comparing RAs in APF
authorJoel Scherpelz <jscherpelz@google.com>
Wed, 24 May 2017 06:08:39 +0000 (15:08 +0900)
committerJoel Scherpelz <jscherpelz@google.com>
Wed, 24 May 2017 06:24:24 +0000 (15:24 +0900)
commit967dec794b1974574d95c9d2dea0a0133fa19717
tree1d73819480a46e306a3a14117fba57397bd16823
parent65d3a457d2152a431d158352257e3c846fc8a367
Ignore flow label when comparing RAs in APF

This change modifies the RA filter generation code to ignore bytes 1-3
of the IPv6 header. It also updates testApfFilterRa such that it fails
without the updates to ApfFilter.

Test: as follows
        - built
        - flashed
        - booted
        - sent RAs from OS X with differing flow labels and observed
      that they were filtered
- ApfTest passes
Bug: 31166495

(cherry picked from commit 7006bd4fe5eba4b6fad43dd28d9cad2d26ce140a)

Change-Id: I32153238193ac13a0e59be1875d983a0567c41c7
services/net/java/android/net/apf/ApfFilter.java
tests/net/java/android/net/apf/ApfTest.java