パッケージ org.pcap4j.packet
クラス GtpV1Packet.GtpV1Header
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractHeader
-
- org.pcap4j.packet.GtpV1Packet.GtpV1Header
-
- すべての実装されたインタフェース:
Serializable
,Packet.Header
- 含まれているクラス:
- GtpV1Packet
public static final class GtpV1Packet.GtpV1Header extends AbstractPacket.AbstractHeader
GTPv1 Header8 7 6 5 4 3 2 1 +-----+-----+-----+-----+-----+-----+-----+-----+ | Version | PT | (*) | E | S | PN | +-----+-----+-----+-----+-----+-----+-----+-----+ | Message Type | +-----+-----+-----+-----+-----+-----+-----+-----+ | Length (1st Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | Length (2nd Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | Tunnel Endpoint Identifier (1st Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | Tunnel Endpoint Identifier (2nd Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | Tunnel Endpoint Identifier (3rd Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | Tunnel Endpoint Identifier (4th Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | Sequence Number (1st Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | Sequence Number (2nd Octet) | +-----+-----+-----+-----+-----+-----+-----+-----+ | N-PDU Number | +-----+-----+-----+-----+-----+-----+-----+-----+ | Next Extension Header Type | +-----+-----+-----+-----+-----+-----+-----+-----+
- 導入されたバージョン:
- pcap4j 1.6.6
- 作成者:
- Waveform, Kaito Yamada
- 関連項目:
- ETSI TS 129 060 V12.6.0, 直列化された形式
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド 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.protected int
calcLength()
This method calculates the valuelength()
will return by adding up the lengths of byte arrays in the listgetRawFields()
returns.boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one using return values ofgetRawData()
.short
getLength()
int
getLengthAsInt()
GtpV1MessageType
getMessageType()
GtpV1ExtensionHeaderType
getNextExtensionHeaderType()
Byte
getNPduNumber()
Integer
getNPduNumberAsInt()
GtpV1Packet.ProtocolType
getProtocolType()
protected List<byte[]>
getRawFields()
Returns a list of byte arrays which represents this header's fields.boolean
getReserved()
Short
getSequenceNumber()
Integer
getSequenceNumberAsInt()
int
getTeid()
long
getTeidAsLong()
GtpVersion
getVersion()
boolean
isExtensionHeaderFieldPresent()
boolean
isNPduNumberFieldPresent()
boolean
isSequenceNumberFieldPresent()
-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
-
-
-
-
メソッドの詳細
-
getVersion
public GtpVersion getVersion()
- 戻り値:
- version
-
getProtocolType
public GtpV1Packet.ProtocolType getProtocolType()
- 戻り値:
- protocolType.
-
getReserved
public boolean getReserved()
- 戻り値:
- true if the reserved field is set to 1; false otherwise.
-
isExtensionHeaderFieldPresent
public boolean isExtensionHeaderFieldPresent()
- 戻り値:
- true if the extension header flag is set to 1; false otherwise.
-
isSequenceNumberFieldPresent
public boolean isSequenceNumberFieldPresent()
- 戻り値:
- true if the sequence number flag is set to 1; false otherwise.
-
isNPduNumberFieldPresent
public boolean isNPduNumberFieldPresent()
- 戻り値:
- true if the N-PDU number flag is set to 1; false otherwise.
-
getMessageType
public GtpV1MessageType getMessageType()
- 戻り値:
- messageType
-
getLength
public short getLength()
- 戻り値:
- length
-
getLengthAsInt
public int getLengthAsInt()
- 戻り値:
- length
-
getTeid
public int getTeid()
- 戻り値:
- teid
-
getTeidAsLong
public long getTeidAsLong()
- 戻り値:
- teid
-
getSequenceNumber
public Short getSequenceNumber()
- 戻り値:
- sequenceNumber. May be null.
-
getSequenceNumberAsInt
public Integer getSequenceNumberAsInt()
- 戻り値:
- sequenceNumber. May be null.
-
getNPduNumber
public Byte getNPduNumber()
- 戻り値:
- nPduNumber. May be null.
-
getNPduNumberAsInt
public Integer getNPduNumberAsInt()
- 戻り値:
- nPduNumber. May be null.
-
getNextExtensionHeaderType
public GtpV1ExtensionHeaderType getNextExtensionHeaderType()
- 戻り値:
- nextExtensionHeaderType. May be null.
-
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
-
calcLength
protected int calcLength()
クラスからコピーされた説明:AbstractPacket.AbstractHeader
This method calculates the valuelength()
will return by adding up the lengths of byte arrays in the listgetRawFields()
returns.- オーバーライド:
calcLength
クラス内AbstractPacket.AbstractHeader
- 戻り値:
- a calculated length
-
buildString
protected String buildString()
クラスからコピーされた説明:AbstractPacket.AbstractHeader
This method builds the valuetoString()
will return.- オーバーライド:
buildString
クラス内AbstractPacket.AbstractHeader
- 戻り値:
- a string representation of this object
-
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
-
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
-
-