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 TypeFieldDescriptionbyte
Address entry sizebyte
The number of advertised addressesshort
Address alive timeshort
Checksumbyte
ICMP codestatic final short
echo requeststatic final short
echo replystatic final short
information requeststatic final short
information replystatic final short
address mask replystatic final short
address mask requeststatic final short
ip header badstatic final short
ip header bad code: error at param ptrstatic final short
ip header bad code: bad lengthstatic final short
ip header bad code: req.static final short
redirectstatic final short
redirect code: for hoststatic final short
redirect code: for networkstatic final short
redirect code: for tos and hoststatic final short
redirect code: for tos and netstatic final short
router advertisementstatic final short
router solicitationstatic final short
packet lost, slow downstatic final short
time exceededstatic final short
time exceeded code: ttl==0 in transitstatic final short
time exceeded code: ttl==0 in reassstatic final short
timestamp requeststatic final short
timestamp replystatic final short
dest unreachablestatic final short
dest unreachable code: admin prohibstatic final short
dest unreachable code: bad hoststatic final short
dest unreachable code: host prec vio.static final short
dest unreachable code: dittostatic final short
dest unreachable code: unknown hoststatic final short
dest unreachable code: src host isolatedstatic final short
dest unreachable code: IP_DF caused dropstatic final short
dest unreachable code: bad netstatic final short
dest unreachable code: prohibited accessstatic final short
dest unreachable code: unknown netstatic final short
dest unreachable code: bad portstatic final short
dest unreachable code: prec cutoffstatic final short
dest unreachable code: bad protocolstatic final short
dest unreachable code: src route failedstatic final short
dest unreachable code: bad tos for hoststatic final short
dest unreachable code: bad tos for netshort
IDReturned IP packetshort
MTUint
Originate timestampint[]
Preferenceint
Receive timestampRedirect addressAdvertised addressesshort
Sequence numberint
Subnet maskint
Transmit timestampbyte
ICMP 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