commit | 8c6c2c3c929acad783b9a56b8d9efa597d0ae609 | [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 | de082b0ae0e84c7aa46ed149911a9371216273e0 | |
parent | 97df96d8ebabd437db6a7691b8260bd51cf7f8d5 [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