public class PIMAddrGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ENC_GROUP_IPV4_BYTE_LENGTH |
static int |
ENC_GROUP_IPV6_BYTE_LENGTH |
Constructor and Description |
---|
PIMAddrGroup()
PIM Encoded Group Address.
|
PIMAddrGroup(IpPrefix gpfx)
PIM Encoded Group Address.
|
PIMAddrGroup(java.lang.String addr)
PIM Encoded Source Address.
|
Modifier and Type | Method and Description |
---|---|
PIMAddrGroup |
deserialize(java.nio.ByteBuffer bb)
Deserialze from a ByteBuffer.
|
boolean |
equals(java.lang.Object obj) |
IpAddress |
getAddr()
Get the address of this encoded address.
|
boolean |
getBBit()
Return the bBit.
|
int |
getByteSize()
The size in bytes of a serialized address.
|
int |
getFamily()
Get the IP family of this address: 4 or 6.
|
int |
getMasklen()
Get the masklen of the group address.
|
boolean |
getZBit()
Return the z bit for admin scoping.
|
int |
hashCode() |
byte[] |
serialize()
Serialize this group address.
|
void |
setAddr(IpPrefix pfx)
Set the encoded source address.
|
void |
setAddr(java.lang.String addr)
PIM encoded source address.
|
public static final int ENC_GROUP_IPV4_BYTE_LENGTH
public static final int ENC_GROUP_IPV6_BYTE_LENGTH
public PIMAddrGroup()
public PIMAddrGroup(java.lang.String addr)
addr
- IPv4 or IPv6public PIMAddrGroup(IpPrefix gpfx)
gpfx
- PIM encoded group address.public void setAddr(java.lang.String addr)
addr
- IPv4 or IPv6public void setAddr(IpPrefix pfx)
pfx
- address prefixpublic int getFamily()
public IpAddress getAddr()
public int getMasklen()
public boolean getZBit()
public boolean getBBit()
public int getByteSize()
public byte[] serialize()
public PIMAddrGroup deserialize(java.nio.ByteBuffer bb) throws DeserializationException
bb
- the ByteBufferDeserializationException
- if unable to deserialize the packet datapublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object