Package org.onlab.packet.pim
Class PIMAddrUnicast
- java.lang.Object
 - 
- org.onlab.packet.pim.PIMAddrUnicast
 
 
- 
public class PIMAddrUnicast extends java.lang.Object 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intENC_UNICAST_IPV4_BYTE_LENGTHstatic intENC_UNICAST_IPV6_BYTE_LENGTH 
- 
Constructor Summary
Constructors Constructor Description PIMAddrUnicast()PIM Encoded Source Address.PIMAddrUnicast(java.lang.String addr)PIM Encoded Source Address. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PIMAddrUnicastdeserialize(java.nio.ByteBuffer bb)booleanequals(java.lang.Object obj)IpAddressgetAddr()Get the address of this encoded address.intgetByteSize()The size in bytes of a serialized address.intgetFamily()Get the IP family of this address: 4 or 6.inthashCode()byte[]serialize()voidsetAddr(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
 
 
 - 
 
- 
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(java.nio.ByteBuffer bb) throws DeserializationException
- Throws:
 DeserializationException
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -