public class PIMAddrSource extends Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
ENC_SOURCE_IPV4_BYTE_LENGTH  | 
static int | 
ENC_SOURCE_IPV6_BYTE_LENGTH  | 
| Constructor and Description | 
|---|
PIMAddrSource()
PIM Encoded Group Address. 
 | 
PIMAddrSource(IpPrefix spfx)
PIM Encoded Source Address. 
 | 
PIMAddrSource(String addr)
PIM Encoded Source Address. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
PIMAddrSource | 
deserialize(byte[] data,
           int offset,
           int length)  | 
PIMAddrSource | 
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. 
 | 
byte | 
getFamily()
Get the IP family of this address: 4 or 6. 
 | 
int | 
getMasklen()
Get the masklen of the group address. 
 | 
boolean | 
getRBit()
Return the rBit. 
 | 
boolean | 
getSBit()
Return the sparse bit. 
 | 
boolean | 
getWBit()
Return the wBit, used in Join/Prune messages. 
 | 
int | 
hashCode()  | 
byte[] | 
serialize()  | 
void | 
setAddr(IpPrefix spfx)
PIM Encoded Source Address. 
 | 
void | 
setAddr(String addr)
PIM Encoded Source Address. 
 | 
public static final int ENC_SOURCE_IPV4_BYTE_LENGTH
public static final int ENC_SOURCE_IPV6_BYTE_LENGTH
public PIMAddrSource(String addr)
addr - IPv4 or IPv6public PIMAddrSource(IpPrefix spfx)
spfx - IPv4 or IPv6public PIMAddrSource()
public void setAddr(String addr)
addr - IPv4 or IPv6public void setAddr(IpPrefix spfx)
spfx - IPv4 or IPv6 address prefixpublic byte getFamily()
public IpAddress getAddr()
public int getMasklen()
public boolean getSBit()
public boolean getWBit()
public boolean getRBit()
public int getByteSize()
public byte[] serialize()
public PIMAddrSource deserialize(byte[] data, int offset, int length) throws DeserializationException
DeserializationExceptionpublic PIMAddrSource deserialize(ByteBuffer bb) throws DeserializationException
DeserializationException