| commit | 174bab2a0d53072a69ca231dbb21b9de4db96a9a | [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 | 3718680598faab1dda72946afbae93a6c5e6fa0d [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