|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.jpcap.net.Packet
|
+--net.sourceforge.jpcap.net.EthernetPacket
|
+--net.sourceforge.jpcap.net.IPPacket
|
+--net.sourceforge.jpcap.net.IGMPPacket
An IGMP packet.
Extends an IP packet, adding an IGMP header and IGMP data payload.
| Fields inherited from interface net.sourceforge.jpcap.net.IGMPFields |
IGMP_CODE_LEN, IGMP_CODE_POS, IGMP_CSUM_LEN, IGMP_CSUM_POS, IGMP_GADDR_LEN, IGMP_GADDR_POS, IGMP_HEADER_LEN, IGMP_MRSP_LEN, IGMP_MRSP_POS |
| Fields inherited from interface net.sourceforge.jpcap.net.IPFields |
IP_CODE_LEN, IP_CODE_POS, IP_CSUM_LEN, IP_CSUM_POS, IP_DST_POS, IP_FRAG_LEN, IP_FRAG_POS, IP_HEADER_LEN, IP_ID_LEN, IP_ID_POS, IP_LEN_LEN, IP_LEN_POS, IP_SRC_POS, IP_TOS_LEN, IP_TOS_POS, IP_TTL_LEN, IP_TTL_POS, IP_VER_LEN, IP_VER_POS |
| Fields inherited from interface net.sourceforge.jpcap.net.EthernetFields |
ETH_CODE_LEN, ETH_CODE_POS, ETH_DST_POS, ETH_HEADER_LEN, ETH_SRC_POS |
| Constructor Summary | |
IGMPPacket(int lLen,
byte[] bytes)
|
|
| Method Summary | |
int |
getChecksum()
Fetch the IGMP header checksum. |
java.lang.String |
getColor()
Fetch ascii escape sequence of the color associated with this packet type. |
byte[] |
getData()
Fetch data portion of the igmp header. |
java.lang.String |
getGroupAddress()
Fetch the IGMP group address. |
byte[] |
getHeader()
Fetch the igmp header, excluding igmp data payload. |
byte[] |
getIGMPData()
Fetch data portion of the igmp header. |
byte[] |
getIGMPHeader()
Fetch the igmp header, excluding igmp data payload. |
int |
getMaxResponseTime()
Fetch the IGMP max response time. |
int |
getMessageType()
Fetch the IGMP message type, including subcode. |
java.lang.String |
toColoredString(boolean colored)
Generate string with contents describing this IGMP packet. |
java.lang.String |
toString()
Convert this IGMP packet to a readable string. |
| Methods inherited from class net.sourceforge.jpcap.net.IPPacket |
getDestinationAddress, getFragmentFlags, getFragmentOffset, getHeaderLength, getHeaderLength, getHeaderLength, getId, getIPData, getIPHeader, getIpHeaderLength, getLength, getProtocol, getSourceAddress, getTimeToLive, getTypeOfService, getVersion, toColoredVerboseString |
| Methods inherited from class net.sourceforge.jpcap.net.EthernetPacket |
getDestinationHwAddress, getEthernetData, getEthernetHeader, getSourceHwAddress |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IGMPPacket(int lLen,
byte[] bytes)
| Method Detail |
public byte[] getIGMPHeader()
public byte[] getIGMPData()
public byte[] getHeader()
getHeader in class IPPacketpublic byte[] getData()
getData in class IPPacketpublic int getMessageType()
public int getMaxResponseTime()
public int getChecksum()
getChecksum in class IPPacketpublic java.lang.String getGroupAddress()
public java.lang.String toString()
toString in class IPPacketpublic java.lang.String toColoredString(boolean colored)
toColoredString in class IPPacketcolored - whether or not the string should contain ansi
color escape sequences.public java.lang.String getColor()
getColor in class IPPacket
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||