commit | e5ef28f50974320659e2ecfe3910718a9e60f317 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Mar 10 01:32:40 2015 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Mar 20 16:32:34 2015 +0900 |
tree | 10f92e1baa7fd048f3dbe26db47de76d66470927 | |
parent | 3a96f767c3a368969a58e319ad36df5cb39b15f2 [diff] |
Add two utility methods for IPv4 netmasks. 1. Add a validating method to convert a netmask to a prefix length. 2. Add a function to get the implicit netmask of an IPv4 address. 3. Add a unit test. Bug: 19704592 Change-Id: Icb9f58d3903ea01df9e3720383c9bd5db6dd8f26