summaryrefslogtreecommitdiff
path: root/src/android/net/util/NetworkStackUtils.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2019-09-25 00:37:16 +0900
committerLorenzo Colitti <lorenzo@google.com>2019-10-16 22:57:53 +0900
commit3ed85a65d8b05f49057a101be55014159f47df95 (patch)
tree9fe393bcdfa38db218dca278c0fa473c027ac7e5 /src/android/net/util/NetworkStackUtils.java
parent3c9f687c97393a15d238a3272f62c595052e6b2e (diff)
Refactor RA parsing code for simplicity.
Currently, the RA parsing code keeps track of byte ranges in the packet using pairs of integers called "non-lifetimes". Replace this with a PacketSection class that also stores some information about the range including whether the range should be matched or not, what ICMP option the section was a part of, and so on. This makes the code easier to read and will make it easier to change the behaviour based on the information contained in the sections. Bug: 66928272 Test: refactoring covered by existing unit tests Change-Id: Iab8b04aafce8d8992e835a6448a75b950296bec5
Diffstat (limited to 'src/android/net/util/NetworkStackUtils.java')
0 files changed, 0 insertions, 0 deletions