Package jpcap.packet
Class ICMPPacket
java.lang.Object
jpcap.packet.Packet
jpcap.packet.IPPacket
jpcap.packet.ICMPPacket
- All Implemented Interfaces:
Serializable
This class represents ICMP packet.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyteAddress entry sizebyteThe number of advertised addressesshortAddress alive timeshortChecksumbyteICMP codestatic final shortecho requeststatic final shortecho replystatic final shortinformation requeststatic final shortinformation replystatic final shortaddress mask replystatic final shortaddress mask requeststatic final shortip header badstatic final shortip header bad code: error at param ptrstatic final shortip header bad code: bad lengthstatic final shortip header bad code: req.static final shortredirectstatic final shortredirect code: for hoststatic final shortredirect code: for networkstatic final shortredirect code: for tos and hoststatic final shortredirect code: for tos and netstatic final shortrouter advertisementstatic final shortrouter solicitationstatic final shortpacket lost, slow downstatic final shorttime exceededstatic final shorttime exceeded code: ttl==0 in transitstatic final shorttime exceeded code: ttl==0 in reassstatic final shorttimestamp requeststatic final shorttimestamp replystatic final shortdest unreachablestatic final shortdest unreachable code: admin prohibstatic final shortdest unreachable code: bad hoststatic final shortdest unreachable code: host prec vio.static final shortdest unreachable code: dittostatic final shortdest unreachable code: unknown hoststatic final shortdest unreachable code: src host isolatedstatic final shortdest unreachable code: IP_DF caused dropstatic final shortdest unreachable code: bad netstatic final shortdest unreachable code: prohibited accessstatic final shortdest unreachable code: unknown netstatic final shortdest unreachable code: bad portstatic final shortdest unreachable code: prec cutoffstatic final shortdest unreachable code: bad protocolstatic final shortdest unreachable code: src route failedstatic final shortdest unreachable code: bad tos for hoststatic final shortdest unreachable code: bad tos for netshortIDReturned IP packetshortMTUintOriginate timestampint[]PreferenceintReceive timestampRedirect addressAdvertised addressesshortSequence numberintSubnet maskintTransmit timestampbyteICMP typeFields inherited from class jpcap.packet.IPPacket
d_flag, dont_frag, dst_ip, flow_label, hop_limit, ident, IPPROTO_HOPOPT, IPPROTO_ICMP, IPPROTO_IGMP, IPPROTO_IP, IPPROTO_IPv6, IPPROTO_IPv6_Frag, IPPROTO_IPv6_ICMP, IPPROTO_IPv6_NoNxt, IPPROTO_IPv6_Opts, IPPROTO_IPv6_Route, IPPROTO_TCP, IPPROTO_UDP, length, more_frag, offset, option, options, priority, protocol, r_flag, rsv_frag, rsv_tos, src_ip, t_flag, version -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jpcap.packet.IPPacket
setIPv4Parameter, setIPv6Parameter
-
Field Details
-
ICMP_ECHOREPLY
public static final short ICMP_ECHOREPLYecho reply- See Also:
-
ICMP_UNREACH
public static final short ICMP_UNREACHdest unreachable- See Also:
-
ICMP_UNREACH_NET
public static final short ICMP_UNREACH_NETdest unreachable code: bad net- See Also:
-
ICMP_UNREACH_HOST
public static final short ICMP_UNREACH_HOSTdest unreachable code: bad host- See Also:
-
ICMP_UNREACH_PROTOCOL
public static final short ICMP_UNREACH_PROTOCOLdest unreachable code: bad protocol- See Also:
-
ICMP_UNREACH_PORT
public static final short ICMP_UNREACH_PORTdest unreachable code: bad port- See Also:
-
ICMP_UNREACH_NEEDFRAG
public static final short ICMP_UNREACH_NEEDFRAGdest unreachable code: IP_DF caused drop- See Also:
-
ICMP_UNREACH_SRCFAIL
public static final short ICMP_UNREACH_SRCFAILdest unreachable code: src route failed- See Also:
-
ICMP_UNREACH_NET_UNKNOWN
public static final short ICMP_UNREACH_NET_UNKNOWNdest unreachable code: unknown net- See Also:
-
ICMP_UNREACH_HOST_UNKNOWN
public static final short ICMP_UNREACH_HOST_UNKNOWNdest unreachable code: unknown host- See Also:
-
ICMP_UNREACH_ISOLATED
public static final short ICMP_UNREACH_ISOLATEDdest unreachable code: src host isolated- See Also:
-
ICMP_UNREACH_NET_PROHIB
public static final short ICMP_UNREACH_NET_PROHIBdest unreachable code: prohibited access- See Also:
-
ICMP_UNREACH_HOST_PROHIB
public static final short ICMP_UNREACH_HOST_PROHIBdest unreachable code: ditto- See Also:
-
ICMP_UNREACH_TOSNET
public static final short ICMP_UNREACH_TOSNETdest unreachable code: bad tos for net- See Also:
-
ICMP_UNREACH_TOSHOST
public static final short ICMP_UNREACH_TOSHOSTdest unreachable code: bad tos for host- See Also:
-
ICMP_UNREACH_FILTER_PROHIB
public static final short ICMP_UNREACH_FILTER_PROHIBdest unreachable code: admin prohib- See Also:
-
ICMP_UNREACH_HOST_PRECEDENCE
public static final short ICMP_UNREACH_HOST_PRECEDENCEdest unreachable code: host prec vio.- See Also:
-
ICMP_UNREACH_PRECEDENCE_CUTOFF
public static final short ICMP_UNREACH_PRECEDENCE_CUTOFFdest unreachable code: prec cutoff- See Also:
-
ICMP_SOURCEQUENCH
public static final short ICMP_SOURCEQUENCHpacket lost, slow down- See Also:
-
ICMP_REDIRECT
public static final short ICMP_REDIRECTredirect- See Also:
-
ICMP_REDIRECT_NET
public static final short ICMP_REDIRECT_NETredirect code: for network- See Also:
-
ICMP_REDIRECT_HOST
public static final short ICMP_REDIRECT_HOSTredirect code: for host- See Also:
-
ICMP_REDIRECT_TOSNET
public static final short ICMP_REDIRECT_TOSNETredirect code: for tos and net- See Also:
-
ICMP_REDIRECT_TOSHOST
public static final short ICMP_REDIRECT_TOSHOSTredirect code: for tos and host- See Also:
-
ICMP_ECHO
public static final short ICMP_ECHOecho request- See Also:
-
ICMP_ROUTERADVERT
public static final short ICMP_ROUTERADVERTrouter advertisement- See Also:
-
ICMP_ROUTERSOLICIT
public static final short ICMP_ROUTERSOLICITrouter solicitation- See Also:
-
ICMP_TIMXCEED
public static final short ICMP_TIMXCEEDtime exceeded- See Also:
-
ICMP_TIMXCEED_INTRANS
public static final short ICMP_TIMXCEED_INTRANStime exceeded code: ttl==0 in transit- See Also:
-
ICMP_TIMXCEED_REASS
public static final short ICMP_TIMXCEED_REASStime exceeded code: ttl==0 in reass- See Also:
-
ICMP_PARAMPROB
public static final short ICMP_PARAMPROBip header bad- See Also:
-
ICMP_PARAMPROB_ERRATPTR
public static final short ICMP_PARAMPROB_ERRATPTRip header bad code: error at param ptr- See Also:
-
ICMP_PARAMPROB_OPTABSENT
public static final short ICMP_PARAMPROB_OPTABSENTip header bad code: req. opt. absent- See Also:
-
ICMP_PARAMPROB_LENGTH
public static final short ICMP_PARAMPROB_LENGTHip header bad code: bad length- See Also:
-
ICMP_TSTAMP
public static final short ICMP_TSTAMPtimestamp request- See Also:
-
ICMP_TSTAMPREPLY
public static final short ICMP_TSTAMPREPLYtimestamp reply- See Also:
-
ICMP_IREQ
public static final short ICMP_IREQinformation request- See Also:
-
ICMP_IREQREPLY
public static final short ICMP_IREQREPLYinformation reply- See Also:
-
ICMP_MASKREQ
public static final short ICMP_MASKREQaddress mask request- See Also:
-
ICMP_MASKREPLY
public static final short ICMP_MASKREPLYaddress mask reply- See Also:
-
type
public byte typeICMP type -
code
public byte codeICMP code -
checksum
public short checksumChecksum -
id
public short idID -
seq
public short seqSequence number -
subnetmask
public int subnetmaskSubnet mask -
orig_timestamp
public int orig_timestampOriginate timestamp -
recv_timestamp
public int recv_timestampReceive timestamp -
trans_timestamp
public int trans_timestampTransmit timestamp -
mtu
public short mtuMTU -
ippacket
Returned IP packet -
redir_ip
Redirect address -
addr_num
public byte addr_numThe number of advertised addresses -
addr_entry_size
public byte addr_entry_sizeAddress entry size -
alive_time
public short alive_timeAddress alive time -
router_ip
Advertised addresses -
preference
public int[] preferencePreference
-
-
Constructor Details
-
ICMPPacket
public ICMPPacket()
-
-
Method Details