Shorten the method name for clarity.
Change-Id: I2e9c6e9cd1232dc4d4dbd1f5722b84e55fc9eec7
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
* FIXME: rovarga: this looks wrong
* @return - byte array of size 16. Last byte contains netmask
*/
- public static byte[] canonicalBinaryV6Address(final String ipv6Address) {
+ public static byte[] bytesForString(final String ipv6Address) {
/*
* Do not modify this routine to take direct strings input!!!
* Key checks have been removed based on the assumption that
public class Ipv6UtilsTest {
@Test
public void testFullQuads() {
- byte [] ipv6binary = Ipv6Utils.canonicalBinaryV6Address("0000:0000:0000:0000:0000:0000:0000:0001");
+ byte [] ipv6binary = Ipv6Utils.bytesForString("0000:0000:0000:0000:0000:0000:0000:0001");
Assert.assertArrayEquals(InetAddresses.forString("::1").getAddress(), ipv6binary);
}
}