public final class Ipv6Util extends Object
Modifier and Type | Field and Description |
---|---|
static int |
IPV6_BITS_LENGTH |
static int |
IPV6_LENGTH |
Modifier and Type | Method and Description |
---|---|
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address |
addressForByteBuf(io.netty.buffer.ByteBuf buffer)
Reads from ByteBuf buffer and converts bytes to Ipv6Address.
|
static io.netty.buffer.ByteBuf |
byteBufForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address ipAddress)
From string ipAddress creates an InetAddress and puts it into ByteBuf.
|
static byte[] |
bytesForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address)
Converts Ipv6Address to byte array.
|
static byte[] |
bytesForPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix)
Converts Ipv6Prefix to byte array.
|
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address |
getFullForm(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address ip)
Creates uncompressed IP Address
|
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix |
prefixForByteBuf(io.netty.buffer.ByteBuf buf)
Creates an Ipv6Prefix object from given ByteBuf.
|
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix |
prefixForBytes(byte[] bytes,
int length)
Creates an Ipv6Prefix object from given byte array.
|
static List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix> |
prefixListForBytes(byte[] bytes)
Creates a list of Ipv6 Prefixes from given byte array.
|
public static final int IPV6_LENGTH
public static final int IPV6_BITS_LENGTH
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address getFullForm(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address ip)
ip
- to be uncompressedpublic static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address addressForByteBuf(io.netty.buffer.ByteBuf buffer)
buffer
- containing Ipv6 address, starting at reader indexpublic static io.netty.buffer.ByteBuf byteBufForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address ipAddress)
ipAddress
- Ipv6 addresspublic static byte[] bytesForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address)
address
- Ipv6Address to be convertedpublic static byte[] bytesForPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix)
prefix
- Ipv6Prefix to be convertedpublic static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefixForBytes(byte[] bytes, int length)
bytes
- IPv6 addresslength
- prefix lengthpublic static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefixForByteBuf(io.netty.buffer.ByteBuf buf)
buf
- IPv6 addresspublic static List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix> prefixListForBytes(byte[] bytes)
bytes
- to be converted to List of Ipv6Prefixes.Copyright © 2018 OpenDaylight. All rights reserved.