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/RouteInfo.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/RouteInfo.java
|
1806b1fc25bcffaa005e72a55042031a42b168b1 |
|
11-Aug-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Switch RouteInfo to use IpPrefix instead of LinkAddress. This addresses a TODO and also makes it possible to create routes to destinations that are not valid LinkAddresses, such as multicast addresses. Bug: 16875580 Change-Id: Id4c77b00dc3064bf27d78cdcbbe035e645748cfe
/frameworks/base/core/java/android/net/RouteInfo.java
|
64c43b1948a2b2fcd692cd4a48f031efbf7f7336 |
|
23-Jun-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Minor changes to RouteInfo. 1. Realize that mDestination can never be null and update the code accordingly. 2. Simplify isDefaultRoute. 3. Provide two new hidden utility methods, isIPv4Default() and isIPv6Default(), that can be used by LinkProperties to to determine if the system has connectivity. 4. Update tests. Bug: 9180552 Change-Id: I85028d50556c888261d250925962bdedfe08e0c6
/frameworks/base/core/java/android/net/RouteInfo.java
|
e595b97ff470a5e92151350e4d7b4173032fde23 |
|
13-Jun-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Fix build Re-finalizing some classes. The api/current.txt was updated separately but the change that made them final got skipped. Also had same issue for some @hide's that were removed. Change-Id: I423bb7b3029ee03425a3c446bda51ab8191887c1
/frameworks/base/core/java/android/net/RouteInfo.java
|
211c06eb811c2a24b2317da1db17ba54ae45dc7b |
|
12-Jun-2014 |
Sreeram Ramachandran <sreeram@google.com> |
Fix wifi connectivity issues. http://ag/480881 changed RouteInfo.getDestination() to return an IpPrefix instead of a LinkAddress. This makes the equals() comparison always fail. So, when ConnectivityService.updateRoutes() is given identical routes, instead of realizing that there's no diff, it would consider them different, and thus add and remove the same route. The add would fail, since the route already existed in netd, but the remove would succeed, leaving the system with no routes and thus no connectivity. Bug: 15564210 Change-Id: I2003b0fcb809cc20837dc489c58af37891ca4556
/frameworks/base/core/java/android/net/RouteInfo.java
|
7dc78cf3af9fd11a4f1e2e981ce584a23755ea9e |
|
09-Jun-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Minor changes to the LinkAddress API docs. 1. Rename getNetworkPrefixLength to getPrefixLength. Update all callers in frameworks/base and add a shim method and a TODO for the rest. 2. @hide isSameAddressAs. It doesn't add much, and it's just one-liner that callers can implement if they want. 3. Fix the alignment of the initial paragraph (<ul> should have been </ul>). 4. Remove the documentation that talks about creating LinkAddresses, since there's no public API for creating them. With these changes I think LinkAddress is fine as a public API. Bug: 15142362 Change-Id: Iaf3b1db577745bb68a9e1dd7f96d666dd3f3ec7c
/frameworks/base/core/java/android/net/RouteInfo.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/RouteInfo.java
|
386aba8bd1c83bb8c088b8dd7b2024ba77c9c36c |
|
19-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Apply Doc fixes to RouteInfo Change-Id: Ib76df135d5514f7b8baafbbe91fa3d1cdd632f00
/frameworks/base/core/java/android/net/RouteInfo.java
|
4095bd5a8811d4d8c2bb0efc28d9610629e27c89 |
|
18-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Update RouteInfo docs and make public. Change-Id: I1a8fe04022ea8291076af166f09112d19114ee16
/frameworks/base/core/java/android/net/RouteInfo.java
|
ca441ee2f0d53c3d3a00b2a9aa96c064378fd535 |
|
11-Apr-2013 |
Robert Greenwalt <rgreenwalt@google.com> |
Add new route.hasGateway() api Fixes issues brought in by change to isHostRoute. isHostRoute was technically correct, but the callers really wanted hasNextHop behavior. bug:8597268 Change-Id: I360761ccfa98b2ba34642f717a78fa71ec1bae4f
/frameworks/base/core/java/android/net/RouteInfo.java
|
fdadc4e242d987c09007df274e01fe678a82331f |
|
27-Mar-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Make isHostRoute match only host routes Currently, isHostRoute returns true iff the gateway address is the unspecified address (0.0.0.0 or ::). Thus, it will return true for any route that has no gateway (e.g., a route pointing at a point-to-point interface), even if the route is not a host route. Fix this by checking the prefix length instead. This should be safe because: 1. mDestination cannot be null, since it's created using new. 2. Host routes created using makeHostRoute (which is what ConnectivityService calls) always have the correct prefix lengths (/32 or /128) set. Bug: 8276725 Change-Id: I14285398823fa6c312349128c7cc216cad4a84c9
/frameworks/base/core/java/android/net/RouteInfo.java
|
574b00a3621d1e6db560ea2f4593a0ae7a90e145 |
|
11-Mar-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Unbreak documentation build. Change-Id: I1e904b111e23d221dcb5f917201d4c27f0c1c05b
/frameworks/base/core/java/android/net/RouteInfo.java
|
e16713597661c326d2bb6586a8b13e27520c4227 |
|
08-Mar-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Always specify an interface for host routes. Change-Id: I05b4d87e7d7e8237c6f4a70f1fedae00f416f581
/frameworks/base/core/java/android/net/RouteInfo.java
|
45b9a5bb93569ca49bbd44f7a518091371687f96 |
|
08-Mar-2013 |
Lorenzo Colitti <lorenzo@google.com> |
RouteInfo changes. - Add the interface name. - Fix a bug where a default route would match an address of another protocol (e.g., 0.0.0.0/0 would match 2001::). - Tweak the hashCode method. - Write a unit test. Change-Id: Ida8266de440a9b1d9eaa132f182b9f1ce8978c44
/frameworks/base/core/java/android/net/RouteInfo.java
|
7316cd83db95871db14e395222581f8e5f902fa2 |
|
07-Mar-2013 |
Robert Greenwalt <rgreenwalt@google.com> |
Revert "Add default route constants to RouteInfo." This reverts commit 642eb63a65b58fb31635f264fc8ffe44fdf075c5 Change-Id: Ide6d7f3b935da41477b736ef0ef20ec9872563e1
/frameworks/base/core/java/android/net/RouteInfo.java
|
642eb63a65b58fb31635f264fc8ffe44fdf075c5 |
|
07-Mar-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Add default route constants to RouteInfo. Bug: 8276725 Change-Id: I9c3ad7393430de9275f5b1c0189a94e5a27975fc
/frameworks/base/core/java/android/net/RouteInfo.java
|
4717c261b2c670d5c0925e3527a864aa52db6ac0 |
|
31-Oct-2012 |
Robert Greenwalt <rgreenwalt@google.com> |
Remove DhcpInfoInternal First step in accepting a set of patches. bug:6799630 Change-Id: I6c894c60aeb3022960c2aaa45451bb1dde2b493b
/frameworks/base/core/java/android/net/RouteInfo.java
|
0a46db5d88461d9a6c85bb2e95982ac4c511d57e |
|
14-Jul-2011 |
Robert Greenwalt <rgreenwalt@google.com> |
Apply the dns and route diff which we get a change bug:5008973 Change-Id: Ib99e43d9d852452cc1f2aea6bef07bbd194f28cc
/frameworks/base/core/java/android/net/RouteInfo.java
|
ab5baa1d5fbd433e4c391ea06d177aa6a6c1c736 |
|
19-May-2011 |
Wink Saville <wink@google.com> |
Merge "Reset connection while data state changed." into honeycomb-LTE
|
be2b058ec1e11e1d33b6d03230c21e5d2d7ac40c |
|
19-May-2011 |
Wink Saville <wink@google.com> |
Reset connection while data state changed. Check data call states and reset connection if any link properties changed. Change-Id: I008aea969378648192852161959fdf4aad6211a1
/frameworks/base/core/java/android/net/RouteInfo.java
|
59b1a4ede7032c1b4d897e13dd4ede09b5e14743 |
|
11-May-2011 |
Robert Greenwalt <rgreenwalt@google.com> |
Switch to use netd to add/remove routes. Also adds support for v6 routes and for removing single routes. Change-Id: I1c4f08c7938371090944d8d6f603e1e0d6d70c01
/frameworks/base/core/java/android/net/RouteInfo.java
|
8c0b528a4746228461ead10f0d477345b607fef1 |
|
11-May-2011 |
Kazuhiro Ondo <kazuhiro.ondo@motorola.com> |
Fix initialization of RouteInfo IPv6 gateway is not correctly set in RouteInfo Change-Id: I24b1ab71a64e3097c9ba641899240fc27847b86c
/frameworks/base/core/java/android/net/RouteInfo.java
|
f43396caaaae8f336bcf6fe9128a89dc7a7b0a5c |
|
07-May-2011 |
Robert Greenwalt <rgreenwalt@google.com> |
Fix the adding of host routes. We used to just add Change-Id: I991e4cc976cc2932887dd3242fd50e013d521b0a
/frameworks/base/core/java/android/net/RouteInfo.java
|
aa70f101e08098ed9cb190abe2d7f952561026b8 |
|
28-Apr-2011 |
Robert Greenwalt <rgreenwalt@google.com> |
Add RouteInfo objects for tracking routes. Used to have list of gateways for default routes, but general static routes should be supported. Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
/frameworks/base/core/java/android/net/RouteInfo.java
|