jpcap
クラス ICMPPacket

java.lang.Object
  |
  +--jpcap.Packet
        |
        +--jpcap.IPPacket
              |
              +--jpcap.ICMPPacket

public class ICMPPacket
extends IPPacket

ICMPパケットを表現するクラスです


フィールドの概要
 byte addr_entry_size
          エントリーサイズ
 byte addr_num
          アドレス広告数
 short alive_time
          アドレス生存時間
 short checksum
          チェックサム
 byte code
          ICMPコード
static short ICMP_ECHO
          echo request
static short ICMP_ECHOREPLY
          echo reply
static short ICMP_IREQ
          information request
static short ICMP_IREQREPLY
          information reply
static short ICMP_MASKREPLY
          address mask reply
static short ICMP_MASKREQ
          address mask request
static short ICMP_PARAMPROB
          ip header bad
static short ICMP_PARAMPROB_ERRATPTR
          ip header bad code: error at param ptr
static short ICMP_PARAMPROB_LENGTH
          ip header bad code: bad length
static short ICMP_PARAMPROB_OPTABSENT
          ip header bad code: req. opt. absent
static short ICMP_REDIRECT
          redirect
static short ICMP_REDIRECT_HOST
          redirect code: for host
static short ICMP_REDIRECT_NET
          redirect code: for network
static short ICMP_REDIRECT_TOSHOST
          redirect code: for tos and host
static short ICMP_REDIRECT_TOSNET
          redirect code: for tos and net
static short ICMP_ROUTERADVERT
          router advertisement
static short ICMP_ROUTERSOLICIT
          router solicitation
static short ICMP_SOURCEQUENCH
          packet lost, slow down
static short ICMP_TIMXCEED
          time exceeded
static short ICMP_TIMXCEED_INTRANS
          time exceeded code: ttl==0 in transit
static short ICMP_TIMXCEED_REASS
          time exceeded code: ttl==0 in reass
static short ICMP_TSTAMP
          timestamp request
static short ICMP_TSTAMPREPLY
          timestamp reply
static short ICMP_UNREACH
          dest unreachable
static short ICMP_UNREACH_FILTER_PROHIB
          dest unreachable code: admin prohib
static short ICMP_UNREACH_HOST
          dest unreachable code: bad host
static short ICMP_UNREACH_HOST_PRECEDENCE
          dest unreachable code: host prec vio.
static short ICMP_UNREACH_HOST_PROHIB
          dest unreachable code: ditto
static short ICMP_UNREACH_HOST_UNKNOWN
          dest unreachable code: unknown host
static short ICMP_UNREACH_ISOLATED
          dest unreachable code: src host isolated
static short ICMP_UNREACH_NEEDFRAG
          dest unreachable code: IP_DF caused drop
static short ICMP_UNREACH_NET
          dest unreachable code: bad net
static short ICMP_UNREACH_NET_PROHIB
          dest unreachable code: prohibited access
static short ICMP_UNREACH_NET_UNKNOWN
          dest unreachable code: unknown net
static short ICMP_UNREACH_PORT
          dest unreachable code: bad port
static short ICMP_UNREACH_PRECEDENCE_CUTOFF
          dest unreachable code: prec cutoff
static short ICMP_UNREACH_PROTOCOL
          dest unreachable code: bad protocol
static short ICMP_UNREACH_SRCFAIL
          dest unreachable code: src route failed
static short ICMP_UNREACH_TOSHOST
          dest unreachable code: bad tos for host
static short ICMP_UNREACH_TOSNET
          dest unreachable code: bad tos for net
 int id
          ID
 IPPacket ippacket
          返信されたIPヘッダ
 short mtu
          MTU
 long orig_timestamp
          タイムスタンプリクエスト
 int[] preference
          プリファレンス
 long recv_timestamp
          タイムスタンプリクエスト
 IPAddress redir_ip
          リダイレクト先アドレス
 IPAddress[] router_ip
          広告されたアドレス
 int seq
          シーケンス番号
 int subnetmask
          アドレスマスク
 long trans_timestamp
          タイムスタンプリクエスト
 byte type
          ICMPタイプ
 
クラス jpcap.IPPacket から継承したフィールド
d_flag, dont_frag, dst_ip, flow_label, hop_limit, ident, length, more_frag, offset, options, priority, protocol, r_flag, rsv_frag, src_ip, t_flag, version
 
クラス jpcap.Packet から継承したフィールド
caplen, data, datalink, header, len, sec, usec
 
コンストラクタの概要
ICMPPacket()
           
 
メソッドの概要
 java.lang.String toString()
          このパケットの内容を文字列で表現します

形式:type(type) code(code)
 
クラス jpcap.IPPacket から継承したメソッド
setIPv4Parameter, setIPv6Parameter
 
クラス java.lang.Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

ICMP_ECHOREPLY

public static final short ICMP_ECHOREPLY
echo reply

ICMP_UNREACH

public static final short ICMP_UNREACH
dest unreachable

ICMP_UNREACH_NET

public static final short ICMP_UNREACH_NET
dest unreachable code: bad net

ICMP_UNREACH_HOST

public static final short ICMP_UNREACH_HOST
dest unreachable code: bad host

ICMP_UNREACH_PROTOCOL

public static final short ICMP_UNREACH_PROTOCOL
dest unreachable code: bad protocol

ICMP_UNREACH_PORT

public static final short ICMP_UNREACH_PORT
dest unreachable code: bad port

ICMP_UNREACH_NEEDFRAG

public static final short ICMP_UNREACH_NEEDFRAG
dest unreachable code: IP_DF caused drop

ICMP_UNREACH_SRCFAIL

public static final short ICMP_UNREACH_SRCFAIL
dest unreachable code: src route failed

ICMP_UNREACH_NET_UNKNOWN

public static final short ICMP_UNREACH_NET_UNKNOWN
dest unreachable code: unknown net

ICMP_UNREACH_HOST_UNKNOWN

public static final short ICMP_UNREACH_HOST_UNKNOWN
dest unreachable code: unknown host

ICMP_UNREACH_ISOLATED

public static final short ICMP_UNREACH_ISOLATED
dest unreachable code: src host isolated

ICMP_UNREACH_NET_PROHIB

public static final short ICMP_UNREACH_NET_PROHIB
dest unreachable code: prohibited access

ICMP_UNREACH_HOST_PROHIB

public static final short ICMP_UNREACH_HOST_PROHIB
dest unreachable code: ditto

ICMP_UNREACH_TOSNET

public static final short ICMP_UNREACH_TOSNET
dest unreachable code: bad tos for net

ICMP_UNREACH_TOSHOST

public static final short ICMP_UNREACH_TOSHOST
dest unreachable code: bad tos for host

ICMP_UNREACH_FILTER_PROHIB

public static final short ICMP_UNREACH_FILTER_PROHIB
dest unreachable code: admin prohib

ICMP_UNREACH_HOST_PRECEDENCE

public static final short ICMP_UNREACH_HOST_PRECEDENCE
dest unreachable code: host prec vio.

ICMP_UNREACH_PRECEDENCE_CUTOFF

public static final short ICMP_UNREACH_PRECEDENCE_CUTOFF
dest unreachable code: prec cutoff

ICMP_SOURCEQUENCH

public static final short ICMP_SOURCEQUENCH
packet lost, slow down

ICMP_REDIRECT

public static final short ICMP_REDIRECT
redirect

ICMP_REDIRECT_NET

public static final short ICMP_REDIRECT_NET
redirect code: for network

ICMP_REDIRECT_HOST

public static final short ICMP_REDIRECT_HOST
redirect code: for host

ICMP_REDIRECT_TOSNET

public static final short ICMP_REDIRECT_TOSNET
redirect code: for tos and net

ICMP_REDIRECT_TOSHOST

public static final short ICMP_REDIRECT_TOSHOST
redirect code: for tos and host

ICMP_ECHO

public static final short ICMP_ECHO
echo request

ICMP_ROUTERADVERT

public static final short ICMP_ROUTERADVERT
router advertisement

ICMP_ROUTERSOLICIT

public static final short ICMP_ROUTERSOLICIT
router solicitation

ICMP_TIMXCEED

public static final short ICMP_TIMXCEED
time exceeded

ICMP_TIMXCEED_INTRANS

public static final short ICMP_TIMXCEED_INTRANS
time exceeded code: ttl==0 in transit

ICMP_TIMXCEED_REASS

public static final short ICMP_TIMXCEED_REASS
time exceeded code: ttl==0 in reass

ICMP_PARAMPROB

public static final short ICMP_PARAMPROB
ip header bad

ICMP_PARAMPROB_ERRATPTR

public static final short ICMP_PARAMPROB_ERRATPTR
ip header bad code: error at param ptr

ICMP_PARAMPROB_OPTABSENT

public static final short ICMP_PARAMPROB_OPTABSENT
ip header bad code: req. opt. absent

ICMP_PARAMPROB_LENGTH

public static final short ICMP_PARAMPROB_LENGTH
ip header bad code: bad length

ICMP_TSTAMP

public static final short ICMP_TSTAMP
timestamp request

ICMP_TSTAMPREPLY

public static final short ICMP_TSTAMPREPLY
timestamp reply

ICMP_IREQ

public static final short ICMP_IREQ
information request

ICMP_IREQREPLY

public static final short ICMP_IREQREPLY
information reply

ICMP_MASKREQ

public static final short ICMP_MASKREQ
address mask request

ICMP_MASKREPLY

public static final short ICMP_MASKREPLY
address mask reply

type

public byte type
ICMPタイプ

code

public byte code
ICMPコード

checksum

public short checksum
チェックサム

id

public int id
ID

seq

public int seq
シーケンス番号

subnetmask

public int subnetmask
アドレスマスク

orig_timestamp

public long orig_timestamp
タイムスタンプリクエスト

recv_timestamp

public long recv_timestamp
タイムスタンプリクエスト

trans_timestamp

public long trans_timestamp
タイムスタンプリクエスト

mtu

public short mtu
MTU

ippacket

public IPPacket ippacket
返信されたIPヘッダ

redir_ip

public IPAddress redir_ip
リダイレクト先アドレス

addr_num

public byte addr_num
アドレス広告数

addr_entry_size

public byte addr_entry_size
エントリーサイズ

alive_time

public short alive_time
アドレス生存時間

router_ip

public IPAddress[] router_ip
広告されたアドレス

preference

public int[] preference
プリファレンス
コンストラクタの詳細

ICMPPacket

public ICMPPacket()
メソッドの詳細

toString

public java.lang.String toString()
このパケットの内容を文字列で表現します

形式:type(type) code(code)
オーバーライド:
クラス IPPacket 内の toString