commit | 2e9b12312cc1d3a15774e6f81774ca64e274717d | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Jun 12 13:41:17 2014 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue Jun 17 11:18:53 2014 +0900 |
tree | fa4af31f03a9c91a42a92a44d1ffe013007fe47d | |
parent | f3e0e306e90f2b95f1e3ad4c3a7d8b96d98d7c35 [diff] |
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