パッケージ org.pcap4j.packet
クラス Dot11ManagementPacket.Dot11ManagementHeader
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractHeader
-
- org.pcap4j.packet.Dot11ManagementPacket.Dot11ManagementHeader
-
- すべての実装されたインタフェース:
Serializable,Packet.Header
- 直系の既知のサブクラス:
Dot11ProbeRequestPacket.Dot11ProbeRequestHeader
- 含まれているクラス:
- Dot11ManagementPacket
public abstract static class Dot11ManagementPacket.Dot11ManagementHeader extends AbstractPacket.AbstractHeader
Header of IEEE802.11 management frame0 15 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Duration | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address1 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address2 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address3 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HT Control | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- 導入されたバージョン:
- pcap4j 1.7.0
- 作成者:
- Kaito Yamada
- 関連項目:
- IEEE802.11, 直列化された形式
-
-
コンストラクタの概要
コンストラクタ 修飾子 コンストラクタ 説明 protectedDot11ManagementHeader(byte[] rawData, int offset, int length)protectedDot11ManagementHeader(Dot11ManagementPacket.Builder builder)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected StringbuildString()This method builds the valuetoString()will return.protected intcalcHashCode()This method builds the valuehashCode()will return using the byte arraygetRawData()returns.intcalcLength()This method calculates the valuelength()will return by adding up the lengths of byte arrays in the listgetRawFields()returns.booleanequals(Object obj)Indicates whether some other object is "equal to" this one using return values ofgetRawData().MacAddressgetAddress1()MacAddressgetAddress2()MacAddressgetAddress3()shortgetDuration()intgetDurationAsInt()Dot11FrameControlgetFrameControl()protected abstract StringgetHeaderName()Dot11HtControlgetHtControl()protected List<byte[]>getRawFields()Returns a list of byte arrays which represents this header's fields.Dot11SequenceControlgetSequenceControl()-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
-
-
-
-
コンストラクタの詳細
-
Dot11ManagementHeader
protected Dot11ManagementHeader(byte[] rawData, int offset, int length) throws IllegalRawDataException- パラメータ:
rawData- rawDataoffset- offsetlength- length- 例外:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11ManagementHeader
protected Dot11ManagementHeader(Dot11ManagementPacket.Builder builder)
- パラメータ:
builder- builder
-
-
メソッドの詳細
-
getFrameControl
public Dot11FrameControl getFrameControl()
- 戻り値:
- frameControl
-
getDuration
public short getDuration()
- 戻り値:
- duration
-
getDurationAsInt
public int getDurationAsInt()
- 戻り値:
- duration
-
getAddress1
public MacAddress getAddress1()
- 戻り値:
- address1
-
getAddress2
public MacAddress getAddress2()
- 戻り値:
- address2
-
getAddress3
public MacAddress getAddress3()
- 戻り値:
- address3
-
getSequenceControl
public Dot11SequenceControl getSequenceControl()
- 戻り値:
- sequenceControl
-
getHtControl
public Dot11HtControl getHtControl()
- 戻り値:
- htControl. May be null.
-
getRawFields
protected List<byte[]> getRawFields()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderReturns 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
-
calcLength
public int calcLength()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderThis method calculates the valuelength()will return by adding up the lengths of byte arrays in the listgetRawFields()returns.- オーバーライド:
calcLengthクラス内AbstractPacket.AbstractHeader- 戻り値:
- a calculated length
-
getHeaderName
protected abstract String getHeaderName()
- 戻り値:
- the header name.
-
buildString
protected String buildString()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderThis method builds the valuetoString()will return.- オーバーライド:
buildStringクラス内AbstractPacket.AbstractHeader- 戻り値:
- a string representation of this object
-
calcHashCode
protected int calcHashCode()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderThis 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
-
equals
public boolean equals(Object obj)
クラスからコピーされた説明:AbstractPacket.AbstractHeaderIndicates 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
-
-