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