Package org.onlab.packet
Class IGMPMembership
- java.lang.Object
- 
- org.onlab.packet.IGMPGroup
- 
- org.onlab.packet.IGMPMembership
 
 
- 
 public class IGMPMembership extends IGMPGroup 
- 
- 
Field SummaryFields Modifier and Type Field Description static byteALLOW_NEW_SOURCESprotected byte[]auxDataprotected byteauxDataLengthstatic byteBLOCK_OLD_SOURCESstatic byteCHANGE_TO_EXCLUDE_MODEstatic byteCHANGE_TO_INCLUDE_MODEstatic byteMODE_IS_EXCLUDEstatic byteMODE_IS_INCLUDEprotected byterecordType
 - 
Constructor SummaryConstructors Constructor Description IGMPMembership()Default constructor.IGMPMembership(Ip4Address gaddr)Constructor initialized with a multicast group address.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IGMPGroupdeserialize(ByteBuffer bb)Deserialize the IGMP Membership report packet.booleanequals(Object obj)bytegetRecordType()Gets the IGMP record type.inthashCode()byte[]serialize(ByteBuffer bb)Serialize this Membership Report.voidsetRecordType(byte type)Sets the IGMP record type.- 
Methods inherited from class org.onlab.packet.IGMPGroupaddSource, getAuxInfo, getGaddr, getSources, toString
 
- 
 
- 
- 
- 
Field Detail- 
MODE_IS_INCLUDEpublic static final byte MODE_IS_INCLUDE - See Also:
- Constant Field Values
 
 - 
MODE_IS_EXCLUDEpublic static final byte MODE_IS_EXCLUDE - See Also:
- Constant Field Values
 
 - 
CHANGE_TO_INCLUDE_MODEpublic static final byte CHANGE_TO_INCLUDE_MODE - See Also:
- Constant Field Values
 
 - 
CHANGE_TO_EXCLUDE_MODEpublic static final byte CHANGE_TO_EXCLUDE_MODE - See Also:
- Constant Field Values
 
 - 
ALLOW_NEW_SOURCESpublic static final byte ALLOW_NEW_SOURCES - See Also:
- Constant Field Values
 
 - 
BLOCK_OLD_SOURCESpublic static final byte BLOCK_OLD_SOURCES - See Also:
- Constant Field Values
 
 - 
recordTypeprotected byte recordType 
 - 
auxDataLengthprotected byte auxDataLength 
 - 
auxDataprotected byte[] auxData 
 
- 
 - 
Constructor Detail- 
IGMPMembershippublic IGMPMembership(Ip4Address gaddr) Constructor initialized with a multicast group address.- Parameters:
- gaddr- A multicast group address.
 
 - 
IGMPMembershippublic IGMPMembership() Default constructor.
 
- 
 - 
Method Detail- 
getRecordTypepublic byte getRecordType() Gets the IGMP record type.- Returns:
- record type
 
 - 
setRecordTypepublic void setRecordType(byte type) Sets the IGMP record type.- Parameters:
- type- A multicast record type, like MODE_IS_INCLUDE or MODE_IS_EXCLUDE.
 
 - 
serializepublic byte[] serialize(ByteBuffer bb) Serialize this Membership Report.
 - 
deserializepublic IGMPGroup deserialize(ByteBuffer bb) throws DeserializationException Deserialize the IGMP Membership report packet.- Specified by:
- deserializein class- IGMPGroup
- Parameters:
- bb- the ByteBuffer wrapping the serialized message. The position of the ByteBuffer should be pointing at the head of either message type.
- Returns:
- IGMP Group
- Throws:
- DeserializationException- if deserialization fails
 
 
- 
 
-