commit | b98afb001cb6c0806db8514db92a776743326b66 | [log] [tgz] |
---|---|---|
author | Erik Kline <ek@google.com> | Mon Apr 13 15:33:34 2015 +0900 |
committer | Erik Kline <ek@google.com> | Tue Apr 14 16:19:11 2015 +0900 |
tree | 74f1594c725cbafb5fdbf18789d190f457794b1b | |
parent | d1027f53385789c45fe454aebb0b8e964670d35e [diff] |
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