commit | f0db40813a9e47da137b1d983da4010805f89f13 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue May 19 01:23:06 2020 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue May 19 01:59:06 2020 +0900 |
tree | 8db57767064a7e22fcd634d4ffdf40a4677ae814 | |
parent | 8e21d78cc61d0e39b7968f001a59ebb3c7ab1d40 [diff] |
Add an IPPrefix::forString parsing function. This provides a way to parse IP prefixes from strings, and addresses a TODO. Instead of reusing NetdConstants' parsePrefix function, which it cannot depend on, it implements the parsing using the IPAddress class in the same file and standard string methods. Bug: 153694684 Test: new unit tests Change-Id: I47b29c8525f3c0236e48b4bb8dbebb223e83bc31