Package org.onlab.packet
Class IGMPQuery
- java.lang.Object
- 
- org.onlab.packet.IGMPGroup
- 
- org.onlab.packet.IGMPQuery
 
 
- 
 public class IGMPQuery extends IGMPGroup 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IGMPGroupdeserialize(java.nio.ByteBuffer bb)Deserialize the IGMP Query group structure.booleanequals(java.lang.Object obj)bytegetQrv()Get the Querier Robustness Variable.bytegetResv()Get the reserved field.inthashCode()booleanisSbit()Is the S flag set? Telling adjacent routers to suppress normal timer updates.byte[]serialize(java.nio.ByteBuffer bb)Serialize this IGMPQuery.voidsetQrv(byte qrv)Set the Querier Robustness Variable.voidsetResv(byte resv)Set the reserved field.voidsetSbit(boolean sbit)Set the S flag.- 
Methods inherited from class org.onlab.packet.IGMPGroupaddSource, getAuxInfo, getGaddr, getSources, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
IGMPQuerypublic IGMPQuery(IpAddress gaddr, int auxInfo) Create IGMP Query message.- Parameters:
- gaddr- initiaze with a group address.
- auxInfo- auxillary info.
 
 - 
IGMPQuerypublic IGMPQuery() Create IGMP Query message.
 
- 
 - 
Method Detail- 
isSbitpublic boolean isSbit() Is the S flag set? Telling adjacent routers to suppress normal timer updates.- Returns:
- true if the flag is set, false otherwise
 
 - 
setSbitpublic void setSbit(boolean sbit) Set the S flag. Default is false.- Parameters:
- sbit- true or false
 
 - 
getQrvpublic byte getQrv() Get the Querier Robustness Variable.- Returns:
- querier robustness value
 
 - 
setQrvpublic void setQrv(byte qrv) Set the Querier Robustness Variable. Default is 2.- Parameters:
- qrv- new querier robustness value
 
 - 
getResvpublic byte getResv() Get the reserved field. Should be zero, but ignored regardless of it's value.- Returns:
- the reserved field.
 
 - 
setResvpublic void setResv(byte resv) Set the reserved field. Should be 0 and ignored by receivers.- Parameters:
- resv- the reserved field.
 
 - 
serializepublic byte[] serialize(java.nio.ByteBuffer bb) Serialize this IGMPQuery.
 - 
deserializepublic IGMPGroup deserialize(java.nio.ByteBuffer bb) throws DeserializationException Deserialize the IGMP Query group structure.- Specified by:
- deserializein class- IGMPGroup
- Parameters:
- bb- ByteBuffer pointing at the IGMP Query group address
- Returns:
- the IGMP Group object
- Throws:
- DeserializationException- on serializer error
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-