Package jpcap.packet
Class ICMPPacket
- java.lang.Object
-
- jpcap.packet.Packet
-
- jpcap.packet.IPPacket
-
- jpcap.packet.ICMPPacket
-
- All Implemented Interfaces:
java.io.Serializable
public class ICMPPacket extends IPPacket
This class represents ICMP packet.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description byte
addr_entry_size
Address entry sizebyte
addr_num
The number of advertised addressesshort
alive_time
Address alive timeshort
checksum
Checksumbyte
code
ICMP codestatic short
ICMP_ECHO
echo requeststatic short
ICMP_ECHOREPLY
echo replystatic short
ICMP_IREQ
information requeststatic short
ICMP_IREQREPLY
information replystatic short
ICMP_MASKREPLY
address mask replystatic short
ICMP_MASKREQ
address mask requeststatic short
ICMP_PARAMPROB
ip header badstatic short
ICMP_PARAMPROB_ERRATPTR
ip header bad code: error at param ptrstatic short
ICMP_PARAMPROB_LENGTH
ip header bad code: bad lengthstatic short
ICMP_PARAMPROB_OPTABSENT
ip header bad code: req.static short
ICMP_REDIRECT
redirectstatic short
ICMP_REDIRECT_HOST
redirect code: for hoststatic short
ICMP_REDIRECT_NET
redirect code: for networkstatic short
ICMP_REDIRECT_TOSHOST
redirect code: for tos and hoststatic short
ICMP_REDIRECT_TOSNET
redirect code: for tos and netstatic short
ICMP_ROUTERADVERT
router advertisementstatic short
ICMP_ROUTERSOLICIT
router solicitationstatic short
ICMP_SOURCEQUENCH
packet lost, slow downstatic short
ICMP_TIMXCEED
time exceededstatic short
ICMP_TIMXCEED_INTRANS
time exceeded code: ttl==0 in transitstatic short
ICMP_TIMXCEED_REASS
time exceeded code: ttl==0 in reassstatic short
ICMP_TSTAMP
timestamp requeststatic short
ICMP_TSTAMPREPLY
timestamp replystatic short
ICMP_UNREACH
dest unreachablestatic short
ICMP_UNREACH_FILTER_PROHIB
dest unreachable code: admin prohibstatic short
ICMP_UNREACH_HOST
dest unreachable code: bad hoststatic short
ICMP_UNREACH_HOST_PRECEDENCE
dest unreachable code: host prec vio.static short
ICMP_UNREACH_HOST_PROHIB
dest unreachable code: dittostatic short
ICMP_UNREACH_HOST_UNKNOWN
dest unreachable code: unknown hoststatic short
ICMP_UNREACH_ISOLATED
dest unreachable code: src host isolatedstatic short
ICMP_UNREACH_NEEDFRAG
dest unreachable code: IP_DF caused dropstatic short
ICMP_UNREACH_NET
dest unreachable code: bad netstatic short
ICMP_UNREACH_NET_PROHIB
dest unreachable code: prohibited accessstatic short
ICMP_UNREACH_NET_UNKNOWN
dest unreachable code: unknown netstatic short
ICMP_UNREACH_PORT
dest unreachable code: bad portstatic short
ICMP_UNREACH_PRECEDENCE_CUTOFF
dest unreachable code: prec cutoffstatic short
ICMP_UNREACH_PROTOCOL
dest unreachable code: bad protocolstatic short
ICMP_UNREACH_SRCFAIL
dest unreachable code: src route failedstatic short
ICMP_UNREACH_TOSHOST
dest unreachable code: bad tos for hoststatic short
ICMP_UNREACH_TOSNET
dest unreachable code: bad tos for netshort
id
IDIPPacket
ippacket
Returned IP packetshort
mtu
MTUint
orig_timestamp
Originate timestampint[]
preference
Preferenceint
recv_timestamp
Receive timestampjava.net.InetAddress
redir_ip
Redirect addressjava.net.InetAddress[]
router_ip
Advertised addressesshort
seq
Sequence numberint
subnetmask
Subnet maskint
trans_timestamp
Transmit timestampbyte
type
ICMP type-
Fields 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 Constructor Description ICMPPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Returns a string representation of this ICMP packet.
Format: Ftype(type) code(code)-
Methods inherited from class jpcap.packet.IPPacket
setIPv4Parameter, setIPv6Parameter
-
-
-
-
Field Detail
-
ICMP_ECHOREPLY
public static final short ICMP_ECHOREPLY
echo reply- See Also:
- Constant Field Values
-
ICMP_UNREACH
public static final short ICMP_UNREACH
dest unreachable- See Also:
- Constant Field Values
-
ICMP_UNREACH_NET
public static final short ICMP_UNREACH_NET
dest unreachable code: bad net- See Also:
- Constant Field Values
-
ICMP_UNREACH_HOST
public static final short ICMP_UNREACH_HOST
dest unreachable code: bad host- See Also:
- Constant Field Values
-
ICMP_UNREACH_PROTOCOL
public static final short ICMP_UNREACH_PROTOCOL
dest unreachable code: bad protocol- See Also:
- Constant Field Values
-
ICMP_UNREACH_PORT
public static final short ICMP_UNREACH_PORT
dest unreachable code: bad port- See Also:
- Constant Field Values
-
ICMP_UNREACH_NEEDFRAG
public static final short ICMP_UNREACH_NEEDFRAG
dest unreachable code: IP_DF caused drop- See Also:
- Constant Field Values
-
ICMP_UNREACH_SRCFAIL
public static final short ICMP_UNREACH_SRCFAIL
dest unreachable code: src route failed- See Also:
- Constant Field Values
-
ICMP_UNREACH_NET_UNKNOWN
public static final short ICMP_UNREACH_NET_UNKNOWN
dest unreachable code: unknown net- See Also:
- Constant Field Values
-
ICMP_UNREACH_HOST_UNKNOWN
public static final short ICMP_UNREACH_HOST_UNKNOWN
dest unreachable code: unknown host- See Also:
- Constant Field Values
-
ICMP_UNREACH_ISOLATED
public static final short ICMP_UNREACH_ISOLATED
dest unreachable code: src host isolated- See Also:
- Constant Field Values
-
ICMP_UNREACH_NET_PROHIB
public static final short ICMP_UNREACH_NET_PROHIB
dest unreachable code: prohibited access- See Also:
- Constant Field Values
-
ICMP_UNREACH_HOST_PROHIB
public static final short ICMP_UNREACH_HOST_PROHIB
dest unreachable code: ditto- See Also:
- Constant Field Values
-
ICMP_UNREACH_TOSNET
public static final short ICMP_UNREACH_TOSNET
dest unreachable code: bad tos for net- See Also:
- Constant Field Values
-
ICMP_UNREACH_TOSHOST
public static final short ICMP_UNREACH_TOSHOST
dest unreachable code: bad tos for host- See Also:
- Constant Field Values
-
ICMP_UNREACH_FILTER_PROHIB
public static final short ICMP_UNREACH_FILTER_PROHIB
dest unreachable code: admin prohib- See Also:
- Constant Field Values
-
ICMP_UNREACH_HOST_PRECEDENCE
public static final short ICMP_UNREACH_HOST_PRECEDENCE
dest unreachable code: host prec vio.- See Also:
- Constant Field Values
-
ICMP_UNREACH_PRECEDENCE_CUTOFF
public static final short ICMP_UNREACH_PRECEDENCE_CUTOFF
dest unreachable code: prec cutoff- See Also:
- Constant Field Values
-
ICMP_SOURCEQUENCH
public static final short ICMP_SOURCEQUENCH
packet lost, slow down- See Also:
- Constant Field Values
-
ICMP_REDIRECT
public static final short ICMP_REDIRECT
redirect- See Also:
- Constant Field Values
-
ICMP_REDIRECT_NET
public static final short ICMP_REDIRECT_NET
redirect code: for network- See Also:
- Constant Field Values
-
ICMP_REDIRECT_HOST
public static final short ICMP_REDIRECT_HOST
redirect code: for host- See Also:
- Constant Field Values
-
ICMP_REDIRECT_TOSNET
public static final short ICMP_REDIRECT_TOSNET
redirect code: for tos and net- See Also:
- Constant Field Values
-
ICMP_REDIRECT_TOSHOST
public static final short ICMP_REDIRECT_TOSHOST
redirect code: for tos and host- See Also:
- Constant Field Values
-
ICMP_ECHO
public static final short ICMP_ECHO
echo request- See Also:
- Constant Field Values
-
ICMP_ROUTERADVERT
public static final short ICMP_ROUTERADVERT
router advertisement- See Also:
- Constant Field Values
-
ICMP_ROUTERSOLICIT
public static final short ICMP_ROUTERSOLICIT
router solicitation- See Also:
- Constant Field Values
-
ICMP_TIMXCEED
public static final short ICMP_TIMXCEED
time exceeded- See Also:
- Constant Field Values
-
ICMP_TIMXCEED_INTRANS
public static final short ICMP_TIMXCEED_INTRANS
time exceeded code: ttl==0 in transit- See Also:
- Constant Field Values
-
ICMP_TIMXCEED_REASS
public static final short ICMP_TIMXCEED_REASS
time exceeded code: ttl==0 in reass- See Also:
- Constant Field Values
-
ICMP_PARAMPROB
public static final short ICMP_PARAMPROB
ip header bad- See Also:
- Constant Field Values
-
ICMP_PARAMPROB_ERRATPTR
public static final short ICMP_PARAMPROB_ERRATPTR
ip header bad code: error at param ptr- See Also:
- Constant Field Values
-
ICMP_PARAMPROB_OPTABSENT
public static final short ICMP_PARAMPROB_OPTABSENT
ip header bad code: req. opt. absent- See Also:
- Constant Field Values
-
ICMP_PARAMPROB_LENGTH
public static final short ICMP_PARAMPROB_LENGTH
ip header bad code: bad length- See Also:
- Constant Field Values
-
ICMP_TSTAMP
public static final short ICMP_TSTAMP
timestamp request- See Also:
- Constant Field Values
-
ICMP_TSTAMPREPLY
public static final short ICMP_TSTAMPREPLY
timestamp reply- See Also:
- Constant Field Values
-
ICMP_IREQ
public static final short ICMP_IREQ
information request- See Also:
- Constant Field Values
-
ICMP_IREQREPLY
public static final short ICMP_IREQREPLY
information reply- See Also:
- Constant Field Values
-
ICMP_MASKREQ
public static final short ICMP_MASKREQ
address mask request- See Also:
- Constant Field Values
-
ICMP_MASKREPLY
public static final short ICMP_MASKREPLY
address mask reply- See Also:
- Constant Field Values
-
type
public byte type
ICMP type
-
code
public byte code
ICMP code
-
checksum
public short checksum
Checksum
-
id
public short id
ID
-
seq
public short seq
Sequence number
-
subnetmask
public int subnetmask
Subnet mask
-
orig_timestamp
public int orig_timestamp
Originate timestamp
-
recv_timestamp
public int recv_timestamp
Receive timestamp
-
trans_timestamp
public int trans_timestamp
Transmit timestamp
-
mtu
public short mtu
MTU
-
ippacket
public IPPacket ippacket
Returned IP packet
-
redir_ip
public java.net.InetAddress redir_ip
Redirect address
-
addr_num
public byte addr_num
The number of advertised addresses
-
addr_entry_size
public byte addr_entry_size
Address entry size
-
alive_time
public short alive_time
Address alive time
-
router_ip
public java.net.InetAddress[] router_ip
Advertised addresses
-
preference
public int[] preference
Preference
-
-