パッケージ org.pcap4j.packet
クラス IpV6Packet.IpV6Header
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractHeader
-
- org.pcap4j.packet.IpV6Packet.IpV6Header
-
- すべての実装されたインタフェース:
Serializable
,IpPacket.IpHeader
,Packet.Header
- 含まれているクラス:
- IpV6Packet
public static final class IpV6Packet.IpV6Header extends AbstractPacket.AbstractHeader implements IpPacket.IpHeader
- 導入されたバージョン:
- pcap4j 0.9.10
- 作成者:
- Kaito Yamada
- 関連項目:
- 直列化された形式
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected String
buildString()
This method builds the valuetoString()
will return.protected int
calcHashCode()
This method builds the valuehashCode()
will return using the byte arraygetRawData()
returns.boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one using return values ofgetRawData()
.Inet6Address
getDstAddr()
IpV6Packet.IpV6FlowLabel
getFlowLabel()
byte
getHopLimit()
int
getHopLimitAsInt()
IpNumber
getNextHeader()
short
getPayloadLength()
int
getPayloadLengthAsInt()
IpNumber
getProtocol()
protected List<byte[]>
getRawFields()
Returns a list of byte arrays which represents this header's fields.Inet6Address
getSrcAddr()
IpV6Packet.IpV6TrafficClass
getTrafficClass()
IpVersion
getVersion()
int
length()
Returns the header length in bytes.-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, calcLength, getRawData, hashCode, toHexString, toString
-
インタフェースから継承されたメソッド org.pcap4j.packet.Packet.Header
getRawData
-
-
-
-
メソッドの詳細
-
getVersion
public IpVersion getVersion()
- 定義:
getVersion
インタフェース内IpPacket.IpHeader
- 戻り値:
- version
-
getTrafficClass
public IpV6Packet.IpV6TrafficClass getTrafficClass()
- 戻り値:
- trafficClass
-
getFlowLabel
public IpV6Packet.IpV6FlowLabel getFlowLabel()
- 戻り値:
- flowLabel
-
getPayloadLength
public short getPayloadLength()
- 戻り値:
- payloadLength
-
getPayloadLengthAsInt
public int getPayloadLengthAsInt()
- 戻り値:
- payloadLength
-
getNextHeader
public IpNumber getNextHeader()
- 戻り値:
- nextHeader
-
getProtocol
public IpNumber getProtocol()
- 定義:
getProtocol
インタフェース内IpPacket.IpHeader
- 戻り値:
- an IpNumber object which indicates the protocol of the following header.
-
getHopLimit
public byte getHopLimit()
- 戻り値:
- hopLimit
-
getHopLimitAsInt
public int getHopLimitAsInt()
- 戻り値:
- hopLimit
-
getSrcAddr
public Inet6Address getSrcAddr()
- 定義:
getSrcAddr
インタフェース内IpPacket.IpHeader
- 戻り値:
- srcAddr
-
getDstAddr
public Inet6Address getDstAddr()
- 定義:
getDstAddr
インタフェース内IpPacket.IpHeader
- 戻り値:
- dstAddr
-
getRawFields
protected List<byte[]> getRawFields()
クラスからコピーされた説明:AbstractPacket.AbstractHeader
Returns a list of byte arrays which represents this header's fields. This method is called bycalcLength()
andbuildRawData()
.- 定義:
getRawFields
クラス内AbstractPacket.AbstractHeader
- 戻り値:
- a list of byte arrays which represents this header's fields
-
length
public int length()
クラスからコピーされた説明:AbstractPacket.AbstractHeader
Returns the header length in bytes. This method callscalcLength()
and caches the return value when it is called for the first time, and then, this method returns the cached value from the second time.- 定義:
length
インタフェース内Packet.Header
- オーバーライド:
length
クラス内AbstractPacket.AbstractHeader
- 戻り値:
- the length of the byte stream of the header represented by this object in bytes
-
buildString
protected String buildString()
クラスからコピーされた説明:AbstractPacket.AbstractHeader
This method builds the valuetoString()
will return.- オーバーライド:
buildString
クラス内AbstractPacket.AbstractHeader
- 戻り値:
- a string representation of this object
-
equals
public boolean equals(Object obj)
クラスからコピーされた説明:AbstractPacket.AbstractHeader
Indicates whether some other object is "equal to" this one using return values ofgetRawData()
. This method should be overridden so that it does more strict comparisons more efficiently.- オーバーライド:
equals
クラス内AbstractPacket.AbstractHeader
-
calcHashCode
protected int calcHashCode()
クラスからコピーされた説明:AbstractPacket.AbstractHeader
This method builds the valuehashCode()
will return using the byte arraygetRawData()
returns. This method may be better to be overridden for performance reason.- オーバーライド:
calcHashCode
クラス内AbstractPacket.AbstractHeader
- 戻り値:
- a calculated hash code value for the object
-
-