Package org.onlab.packet.pim
Class PIMAddrUnicast
- java.lang.Object
-
- org.onlab.packet.pim.PIMAddrUnicast
-
public class PIMAddrUnicast extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
ENC_UNICAST_IPV4_BYTE_LENGTH
static int
ENC_UNICAST_IPV6_BYTE_LENGTH
-
Constructor Summary
Constructors Constructor Description PIMAddrUnicast()
PIM Encoded Source Address.PIMAddrUnicast(String addr)
PIM Encoded Source Address.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PIMAddrUnicast
deserialize(ByteBuffer bb)
boolean
equals(Object obj)
IpAddress
getAddr()
Get the address of this encoded address.int
getByteSize()
The size in bytes of a serialized address.int
getFamily()
Get the IP family of this address: 4 or 6.int
hashCode()
byte[]
serialize()
void
setAddr(IpAddress addr)
PIM Encoded Source Address.
-
-
-
Field Detail
-
ENC_UNICAST_IPV4_BYTE_LENGTH
public static final int ENC_UNICAST_IPV4_BYTE_LENGTH
- See Also:
- Constant Field Values
-
ENC_UNICAST_IPV6_BYTE_LENGTH
public static final int ENC_UNICAST_IPV6_BYTE_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PIMAddrUnicast
public PIMAddrUnicast()
PIM Encoded Source Address.
-
PIMAddrUnicast
public PIMAddrUnicast(String addr)
PIM Encoded Source Address.- Parameters:
addr
- IPv4 or IPv6
-
-
Method Detail
-
setAddr
public void setAddr(IpAddress addr)
PIM Encoded Source Address.- Parameters:
addr
- IPv4 or IPv6
-
getAddr
public IpAddress getAddr()
Get the address of this encoded address.- Returns:
- source address
-
getFamily
public int getFamily()
Get the IP family of this address: 4 or 6.- Returns:
- the IP address family
-
getByteSize
public int getByteSize()
The size in bytes of a serialized address.- Returns:
- the number of bytes when serialized
-
serialize
public byte[] serialize()
-
deserialize
public PIMAddrUnicast deserialize(ByteBuffer bb) throws DeserializationException
- Throws:
DeserializationException
-
-