Package org.onlab.packet.pim
Class PIMAddrSource
- java.lang.Object
- 
- org.onlab.packet.pim.PIMAddrSource
 
- 
 public class PIMAddrSource extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description static intENC_SOURCE_IPV4_BYTE_LENGTHstatic intENC_SOURCE_IPV6_BYTE_LENGTH
 - 
Constructor SummaryConstructors Constructor Description PIMAddrSource()PIM Encoded Group Address.PIMAddrSource(java.lang.String addr)PIM Encoded Source Address.PIMAddrSource(IpPrefix spfx)PIM Encoded Source Address.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PIMAddrSourcedeserialize(byte[] data, int offset, int length)PIMAddrSourcedeserialize(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.bytegetFamily()Get the IP family of this address: 4 or 6.intgetMasklen()Get the masklen of the group address.booleangetRBit()Return the rBit.booleangetSBit()Return the sparse bit.booleangetWBit()Return the wBit, used in Join/Prune messages.inthashCode()byte[]serialize()voidsetAddr(java.lang.String addr)PIM Encoded Source Address.voidsetAddr(IpPrefix spfx)PIM Encoded Source Address.
 
- 
- 
- 
Field Detail- 
ENC_SOURCE_IPV4_BYTE_LENGTHpublic static final int ENC_SOURCE_IPV4_BYTE_LENGTH - See Also:
- Constant Field Values
 
 - 
ENC_SOURCE_IPV6_BYTE_LENGTHpublic static final int ENC_SOURCE_IPV6_BYTE_LENGTH - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PIMAddrSourcepublic PIMAddrSource(java.lang.String addr) PIM Encoded Source Address.- Parameters:
- addr- IPv4 or IPv6
 
 - 
PIMAddrSourcepublic PIMAddrSource(IpPrefix spfx) PIM Encoded Source Address.- Parameters:
- spfx- IPv4 or IPv6
 
 - 
PIMAddrSourcepublic PIMAddrSource() PIM Encoded Group Address.
 
- 
 - 
Method Detail- 
setAddrpublic void setAddr(java.lang.String addr) PIM Encoded Source Address.- Parameters:
- addr- IPv4 or IPv6
 
 - 
setAddrpublic void setAddr(IpPrefix spfx) PIM Encoded Source Address.- Parameters:
- spfx- IPv4 or IPv6 address prefix
 
 - 
getFamilypublic byte getFamily() Get the IP family of this address: 4 or 6.- Returns:
- the IP address family
 
 - 
getAddrpublic IpAddress getAddr() Get the address of this encoded address.- Returns:
- source address
 
 - 
getMasklenpublic int getMasklen() Get the masklen of the group address.- Returns:
- the masklen
 
 - 
getSBitpublic boolean getSBit() Return the sparse bit.- Returns:
- true or false
 
 - 
getWBitpublic boolean getWBit() Return the wBit, used in Join/Prune messages.- Returns:
- return true or false.
 
 - 
getRBitpublic boolean getRBit() Return the rBit. Used by Rendezvous Point.- Returns:
- the rBit.
 
 - 
getByteSizepublic int getByteSize() The size in bytes of a serialized address.- Returns:
- the number of bytes when serialized
 
 - 
serializepublic byte[] serialize() 
 - 
deserializepublic PIMAddrSource deserialize(byte[] data, int offset, int length) throws DeserializationException - Throws:
- DeserializationException
 
 - 
deserializepublic PIMAddrSource deserialize(java.nio.ByteBuffer bb) throws DeserializationException - Throws:
- DeserializationException
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-