パッケージ org.pcap4j.packet
クラス IcmpV6CommonPacket
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.IcmpV6CommonPacket
-
- すべての実装されたインタフェース:
Serializable
,Iterable<Packet>
,Packet
public final class IcmpV6CommonPacket extends AbstractPacket
- 導入されたバージョン:
- pcap4j 0.9.15
- 作成者:
- Kaito Yamada
- 関連項目:
- 直列化された形式
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static class
IcmpV6CommonPacket.Builder
static class
IcmpV6CommonPacket.IcmpV6CommonHeader
static interface
IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
The interface representing an IPv6 neighbor discovery option.-
クラスから継承されたネストされたクラス/インタフェース org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
-
インタフェースから継承されたネストされたクラス/インタフェース org.pcap4j.packet.Packet
Packet.Header
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 IcmpV6CommonPacket.Builder
getBuilder()
Returns a new Builder object populated with this object's fields' values.IcmpV6CommonPacket.IcmpV6CommonHeader
getHeader()
Returns the Header object representing this packet's header.Packet
getPayload()
Returns the Packet object representing this packet's payload.boolean
hasValidChecksum(Inet6Address srcAddr, Inet6Address dstAddr, boolean acceptZero)
static IcmpV6CommonPacket
newPacket(byte[] rawData, int offset, int length)
A static factory method.-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toString
-
インタフェースから継承されたメソッド java.lang.Iterable
forEach, spliterator
-
-
-
-
メソッドの詳細
-
newPacket
public static IcmpV6CommonPacket newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int)
, which may throw exceptions undocumented here.- パラメータ:
rawData
- rawDataoffset
- offsetlength
- length- 戻り値:
- a new IcmpV6CommonPacket object.
- 例外:
IllegalRawDataException
- if parsing the raw data fails.
-
getHeader
public IcmpV6CommonPacket.IcmpV6CommonHeader getHeader()
クラスからコピーされた説明:AbstractPacket
Returns the Header object representing this packet's header. This subclass have to override this method if the packet represented by the subclass has a header.- 定義:
getHeader
インタフェース内Packet
- オーバーライド:
getHeader
クラス内AbstractPacket
- 戻り値:
- the Header object representing this packet's header. May be null if the header doesn't exist
-
getPayload
public Packet getPayload()
クラスからコピーされた説明:AbstractPacket
Returns the Packet object representing this packet's payload. This subclass have to override this method if the packet represented by the subclass has a payload.- 定義:
getPayload
インタフェース内Packet
- オーバーライド:
getPayload
クラス内AbstractPacket
- 戻り値:
- the Packet object representing this packet's payload. May be null if the payload doesn't exist
-
getBuilder
public IcmpV6CommonPacket.Builder getBuilder()
インタフェースからコピーされた説明:Packet
Returns a new Builder object populated with this object's fields' values.- 定義:
getBuilder
インタフェース内Packet
- 定義:
getBuilder
クラス内AbstractPacket
- 戻り値:
- a new Builder object populated with this object's fields values
-
hasValidChecksum
public boolean hasValidChecksum(Inet6Address srcAddr, Inet6Address dstAddr, boolean acceptZero)
- パラメータ:
srcAddr
- srcAddrdstAddr
- dstAddracceptZero
- acceptZero- 戻り値:
- true if the packet represented by this object has a valid checksum; false otherwise.
-
-