パッケージ 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 classIcmpV6CommonPacket.Builderstatic classIcmpV6CommonPacket.IcmpV6CommonHeaderstatic interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOptionThe interface representing an IPv6 neighbor discovery option.-
クラスから継承されたネストされたクラス/インタフェース org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
-
インタフェースから継承されたネストされたクラス/インタフェース org.pcap4j.packet.Packet
Packet.Header
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 IcmpV6CommonPacket.BuildergetBuilder()Returns a new Builder object populated with this object's fields' values.IcmpV6CommonPacket.IcmpV6CommonHeadergetHeader()Returns the Header object representing this packet's header.PacketgetPayload()Returns the Packet object representing this packet's payload.booleanhasValidChecksum(Inet6Address srcAddr, Inet6Address dstAddr, boolean acceptZero)static IcmpV6CommonPacketnewPacket(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()
クラスからコピーされた説明:AbstractPacketReturns 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()
クラスからコピーされた説明:AbstractPacketReturns 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()
インタフェースからコピーされた説明:PacketReturns 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.
-
-