acc8c09d3a12d00b565a76acc26061172c3dd3c6 |
|
13-Apr-2015 |
Erik Kline <ek@google.com> |
Add android.net.IpPrefix#contains() This was originally to avoid RuntimeException in RouteInfo#matches(): When an IPv6 prefix with a length greater than the max permitted for IPv4 is matched against an Inet4Address, the call to NetworkUtils throws RuntimeException. Change-Id: I92e2bd19a4e7d656cf682fd27678da07e211850d
/frameworks/base/core/java/android/net/IpPrefix.java
|
4b0f8e6fb707e19799011c1f4a5e4f54603e34b1 |
|
18-Sep-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Support non-unicast route types: unreachable and throw. Bug: 17462989 Change-Id: I8635472ca3e96ec2866af2de48e6260ab2da13fb
/frameworks/base/core/java/android/net/IpPrefix.java
|
8c6c2c3c929acad783b9a56b8d9efa597d0ae609 |
|
12-Jun-2014 |
Lorenzo Colitti <lorenzo@google.com> |
IpPrefix improvements. 1. Allow IpPrefixes to be created from strings. In order to do this, factor out the code from LinkAddress which already does this to a small utility class in NetworkUtils. 2. Truncate prefixes on creation, fixing a TODO. 3. Add a toString method. 4. Write a unit test. While I'm at it, make RouteInfoTest pass again, and convert it to use IpPrefix instead of LinkAddress. Change-Id: I5f68f8af8f4aedb25afaee00e05369f01e82a70b
/frameworks/base/core/java/android/net/IpPrefix.java
|
0cbe94a349616442672fad3751ac81f4f7f394f3 |
|
12-Jun-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Make IpPrefix final. Couldn't resolve a merge conflict, so skipped and make the change this way. Change-Id: Ib043f660fca2090f0d12a5a707e5e1ad28f76adb
/frameworks/base/core/java/android/net/IpPrefix.java
|
cc91c7b804a079f7b20404827277c61dd403805f |
|
04-Jun-2014 |
Sreeram Ramachandran <sreeram@google.com> |
Add a new IpPrefix class and use it in RouteInfo. This change uses IpPrefix only in the public API and continues to use LinkAddress for everything else. It does not change the callers to use the new APIs, with the exception of changing all current uses of getDestination to getDestinationLinkAddress to make room for the new getDestination method that returns an IpPrefix. Based on Sreeram's earlier change: https://googleplex-android-review.git.corp.google.com/#/c/477874/ but a bit simplified and with a bit more documentation. Bug: 15142362 Bug: 13885501 Change-Id: Ib4cd96b22cbff4ea31bb26a7853989f50da8de4e
/frameworks/base/core/java/android/net/IpPrefix.java
|