scapy.contrib.gtp_v2

class scapy.contrib.gtp_v2.GTPHeader

Bases: scapy.packet.Packet

aliastypes
answers(other)
fields_desc
GTPHeader字段

version

BitField (3位)

2

P

BitField (1位)

1

T

BitField (1位)

1

SPARE

BitField (1位)

0

SPARE

BitField (1位)

0

SPARE

BitField (1位)

0

gtp_type

ByteEnumField

None

length

ShortField

None

teid

XIntField (Cond)

0

seq

ThreeBytesField

<RandShort>

SPARE

ByteField

0

hashret()
payload_guess

可能的子层: GTPV2CreateIndirectDataForwardingTunnelRequestGTPV2CreateIndirectDataForwardingTunnelResponseGTPV2CreateSessionRequestGTPV2CreateSessionResponseGTPV2DeleteBearerRequestGTPV2DeleteBearerResponseGTPV2DeleteIndirectDataForwardingTunnelRequestGTPV2DeleteIndirectDataForwardingTunnelResponseGTPV2DeleteSessionRequestGTPV2DeleteSessionResponseGTPV2DownlinkDataNotifAckGTPV2DownlinkDataNotifFailureIndicationGTPV2DownlinkDataNotifGTPV2EchoRequestGTPV2EchoResponseGTPV2ModifyBearerCommandGTPV2ModifyBearerFailureNotificationGTPV2ModifyBearerRequestGTPV2ModifyBearerResponseGTPV2ReleaseBearerRequestGTPV2ReleaseBearerResponseGTPV2ResumeAcknowledgeGTPV2ResumeNotificationGTPV2SuspendAcknowledgeGTPV2SuspendNotificationGTPV2UpdateBearerRequestGTPV2UpdateBearerResponse

post_build(p, pay)
class scapy.contrib.gtp_v2.GTPV2Command

Bases: scapy.packet.Packet

aliastypes
fields_desc
GTPV2Command字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateIndirectDataForwardingTunnelRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateIndirectDataForwardingTunnelRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateIndirectDataForwardingTunnelResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateIndirectDataForwardingTunnelResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateSessionRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateSessionRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateSessionResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateSessionResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteBearerRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteBearerResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteIndirectDataForwardingTunnelRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteIndirectDataForwardingTunnelRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteIndirectDataForwardingTunnelResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteIndirectDataForwardingTunnelResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteSessionRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteSessionRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteSessionResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteSessionResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotif

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DownlinkDataNotif字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotifAck

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DownlinkDataNotifAck字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotifFailureIndication

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DownlinkDataNotifFailureIndication字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2EchoRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2EchoRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2EchoResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2EchoResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerCommand

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerCommand字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerFailureNotification

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerFailureNotification字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ReleaseBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ReleaseBearerRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ReleaseBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ReleaseBearerResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ResumeAcknowledge

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ResumeAcknowledge字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ResumeNotification

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ResumeNotification字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2SuspendAcknowledge

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2SuspendAcknowledge字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2SuspendNotification

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2SuspendNotification字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2UpdateBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2UpdateBearerRequest字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2UpdateBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2UpdateBearerResponse字段

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.IE_AMBR

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_AMBR栏位

ietype

ByteEnumField

72

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

AMBR_Uplink

IntField

0

AMBR_Downlink

IntField

0

class scapy.contrib.gtp_v2.IE_APN

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_APN栏位

ietype

ByteEnumField

71

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

APN

APNStrLenField

b'internet'

class scapy.contrib.gtp_v2.IE_APN_Restriction

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_APN_Restriction字段

ietype

ByteEnumField

127

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

APN_Restriction

ByteField

0

class scapy.contrib.gtp_v2.IE_BearerContext

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_BearerContext字段

ietype

ByteEnumField

93

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4位)

0

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.IE_Bearer_QoS

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_Bearer_QoS字段

ietype

ByteEnumField

80

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

SPARE

BitField (1位)

0

PCI

BitField (1位)

0

PriorityLevel

BitField (4位)

0

SPARE

BitField (1位)

0

PVI

BitField (1位)

0

QCI

ByteField

0

MaxBitRateForUplink

BitField (40位)

0

MaxBitRateForDownlink

BitField (40位)

0

GuaranteedBitRateForUplink

BitField (40位)

0

GuaranteedBitRateForDownlink

BitField (40位)

0

class scapy.contrib.gtp_v2.IE_Cause

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_原因字段

ietype

ByteEnumField

2

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

Cause

ByteEnumField

1

SPARE

BitField (5位)

0

PCE

BitField (1位)

0

BCE

BitField (1位)

0

CS

BitField (1位)

0

class scapy.contrib.gtp_v2.IE_ChargingCharacteristics

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_ChargingCharacteristics字段

ietype

ByteEnumField

95

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

ChargingCharacteristric

XShortField

0

class scapy.contrib.gtp_v2.IE_ChargingID

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_ChargingID字段

ietype

ByteEnumField

94

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

ChargingID

IntField

0

scapy.contrib.gtp_v2.IE_Dispatcher(s)

选择正确的信息元素类.

class scapy.contrib.gtp_v2.IE_EPSBearerID

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_EPSBearerID字段

ietype

ByteEnumField

73

length

ShortField

0

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

EBI

ByteField

0

class scapy.contrib.gtp_v2.IE_FTEID

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_FTEID字段

ietype

ByteEnumField

87

length

ShortField

0

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

ipv4_present

BitField (1位)

0

ipv6_present

BitField (1位)

0

InterfaceType

BitEnumField (6位)

0

GRE_Key

XIntField

0

ipv4

IPField (Cond)

<RandIP>

ipv6

XBitField (Cond)(128位)

'2001::'

class scapy.contrib.gtp_v2.IE_IMSI

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_IMSI字段

ietype

ByteEnumField

1

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

IMSI

TBCDByteField

b'33607080910'

class scapy.contrib.gtp_v2.IE_IPv4

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_IPv4字段

ietype

ByteEnumField

74

length

ShortField

0

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

address

IPField

<RandIP>

class scapy.contrib.gtp_v2.IE_Indication

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_Indication栏位

ietype

ByteEnumField

77

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

DAF

BitField (1位)

0

DTF

BitField (1位)

0

HI

BitField (1位)

0

DFI

BitField (1位)

0

OI

BitField (1位)

0

ISRSI

BitField (1位)

0

ISRAI

BitField (1位)

0

SGWCI

BitField (1位)

0

SQCI

BitField (1位)

0

UIMSI

BitField (1位)

0

CFSI

BitField (1位)

0

CRSI

BitField (1位)

0

PS

BitField (1位)

0

PT

BitField (1位)

0

SI

BitField (1位)

0

MSV

BitField (1位)

0

RetLoc

BitField (条件)(1位)

0

PBIC

BitField (条件)(1位)

0

SRNI

BitField (条件)(1位)

0

S6AF

BitField (条件)(1位)

0

S4AF

BitField (条件)(1位)

0

MBMDT

BitField (条件)(1位)

0

ISRAU

BitField (条件)(1位)

0

CCRSI

BitField (条件)(1位)

0

CPRAI

BitField (条件)(1位)

0

ARRL

BitField (条件)(1位)

0

PPOFF

BitField (Cond) (1 bit)

0

PPON

BitField (条件)(1位)

0

PPSI

BitField (条件)(1位)

0

CSFBI

BitField (条件)(1位)

0

CLII

BitField (条件)(1位)

0

CPSR

BitField (条件)(1位)

0

class scapy.contrib.gtp_v2.IE_MEI

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_MEI栏位

ietype

ByteEnumField

75

length

ShortField

0

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

MEI

LongField

0

class scapy.contrib.gtp_v2.IE_MMBR

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_MMBR fields

ietype

ByteEnumField

72

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

uplink_rate

IntField

0

downlink_rate

IntField

0

class scapy.contrib.gtp_v2.IE_MSISDN

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_MSISDN字段

ietype

ByteEnumField

76

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

digits

TBCDByteField

b'33123456789'

class scapy.contrib.gtp_v2.IE_NotImplementedTLV

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_NotImplementedTLV字段

ietype

ByteEnumField

0

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

data

StrLenField

b''

class scapy.contrib.gtp_v2.IE_PAA

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_PAA栏位

ietype

ByteEnumField

79

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

SPARE

BitField (5位)

0

PDN_type

BitEnumField (3位)

None

ipv6_prefix_length

ByteField (Cond)

8

ipv6

XBitField (Cond)(128位)

'2001:db8:0:42::'

ipv4

IPField (Cond)

0

class scapy.contrib.gtp_v2.IE_PCO

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_PCO字段

ietype

ByteEnumField

78

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

Extension

BitField (1位)

0

SPARE

BitField (4位)

0

PPP

BitField (3位)

0

Protocols

PacketListField

[]

class scapy.contrib.gtp_v2.IE_PDN_type

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_PDN_type字段

ietype

ByteEnumField

99

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

SPARE

BitField (5位)

0

PDN_type

BitEnumField (3位)

None

class scapy.contrib.gtp_v2.IE_Port_Number

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_Port_Number字段

ietype

ByteEnumField

126

length

ShortField

2

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

PortNumber

ShortField

<RandShort>

class scapy.contrib.gtp_v2.IE_PrivateExtension

Bases: scapy.contrib.gtp.IE_Base

aliastypes
extract_padding(s)
fields_desc
IE_PrivateExtension字段

ietype

ByteEnumField

255

length

ShortField

None

SPARE

BitField (4位)

0

instance

BitField (4位)

0

enterprisenum

ShortEnumField

None

class scapy.contrib.gtp_v2.IE_RAT

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_RAT栏位

ietype

ByteEnumField

82

length

ShortField

0

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

RAT_type

ByteEnumField

None

class scapy.contrib.gtp_v2.IE_RecoveryRestart

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_RecoveryRestart字段

ietype

ByteEnumField

3

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

restart_counter

ByteField

0

class scapy.contrib.gtp_v2.IE_SelectionMode

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_SelectionMode字段

ietype

ByteEnumField

128

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

SPARE

BitField (6位)

0

SelectionMode

BitField (2位)

0

class scapy.contrib.gtp_v2.IE_ServingNetwork

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_ServingNetwork字段

ietype

ByteEnumField

83

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4位)

0

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

class scapy.contrib.gtp_v2.IE_UE_Timezone

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_UE_Timezone字段

ietype

ByteEnumField

114

length

ShortField

None

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

Timezone

ByteField

0

DST

ByteField

0

class scapy.contrib.gtp_v2.IE_ULI

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_ULI栏位

ietype

ByteEnumField

86

length

ShortField

0

CR_flag

BitField (4位)

0

instance

BitField (4位)

0

SPARE

BitField (2位)

0

LAI_Present

BitField (1位)

0

ECGI_Present

BitField (1位)

0

TAI_Present

BitField (1位)

0

RAI_Present

BitField (1位)

0

SAI_Present

BitField (1位)

0

CGI_Present

BitField (1位)

0

CGI

PacketField (Cond)

0

SAI

PacketField (Cond)

0

RAI

PacketField (Cond)

0

TAI

PacketField (Cond)

0

ECGI

PacketField (Cond)

0

LAI

PacketField (Cond)

0

class scapy.contrib.gtp_v2.PCO_ChallengeHandshakeAuthenticationProtocol

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_ChallengeHandshakeAuthenticationProtocol字段

type

ShortEnumField

None

length

ByteField

0

PPP

PacketField

None

class scapy.contrib.gtp_v2.PCO_DNS_Server_IPv4

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_DNS_Server_IPv4字段

type

ShortEnumField

None

length

ByteField

0

address

IPField (Cond)

<RandIP>

class scapy.contrib.gtp_v2.PCO_DNS_Server_IPv6

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_DNS_Server_IPv6字段

type

ShortEnumField

None

length

ByteField

0

address

XBitField (Cond)(128位)

'2001:db8:0:42::'

class scapy.contrib.gtp_v2.PCO_IPCP

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_IPCP字段

type

ShortEnumField

None

length

ByteField

0

PPP

PacketField

None

class scapy.contrib.gtp_v2.PCO_IP_Allocation_via_NAS

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_IP_Allocation_via_NAS字段

type

ShortEnumField

None

length

ByteField

0

Options

PacketListField

[]

class scapy.contrib.gtp_v2.PCO_IPv4

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_IPv4字段

type

ByteEnumField

None

length

ByteField

0

address

IPField

<RandIP>

Bases: scapy.contrib.gtp_v2.PCO_Option

PCO_IPv4_Link_MTU_Request字段

type

ShortEnumField

None

length

ByteField

0

MTU_size

ShortField (Cond)

1500

class scapy.contrib.gtp_v2.PCO_Option

Bases: scapy.packet.Packet

aliastypes
extract_padding(pkt)
class scapy.contrib.gtp_v2.PCO_PPP

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
extract_padding(pkt)
fields_desc
PCO_PPP栏位

Code

ByteField

0

Identifier

ByteField

0

length

ShortField

0

Options

PacketListField

[]

class scapy.contrib.gtp_v2.PCO_PPP_Auth

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_PPP_Auth字段

Code

ByteField

0

Identifier

ByteField

0

length

ShortField

0

PeerID_length

ByteField

0

PeerID

StrFixedLenField (Cond)

b''

Password_length

ByteField

0

Password

StrFixedLenField (Cond)

b''

class scapy.contrib.gtp_v2.PCO_PPP_Challenge

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_PPP_Challenge字段

Code

ByteField

0

Identifier

ByteField

0

length

ShortField

0

value_size

ByteField

0

value

StrFixedLenField (Cond)

b''

name

StrFixedLenField

'PPP Password Authentication Protocol'

class scapy.contrib.gtp_v2.PCO_P_CSCF_IPv4_Address_Request

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_P_CSCF_IPv4_Address_Request字段

type

ShortEnumField

None

length

ByteField

0

address

IPField (Cond)

<RandIP>

class scapy.contrib.gtp_v2.PCO_P_CSCF_IPv6_Address_Request

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_P_CSCF_IPv6_Address_Request字段

type

ShortEnumField

None

length

ByteField

0

address

XBitField (Cond)(128位)

'2001:db8:0:42::'

class scapy.contrib.gtp_v2.PCO_PasswordAuthentificationProtocol

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_PasswordAuthentificationProtocol字段

type

ShortEnumField

None

length

ByteField

0

PPP

PacketField

None

class scapy.contrib.gtp_v2.PCO_Primary_DNS

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_Primary_DNS字段

type

ByteEnumField

None

length

ByteField

0

address

IPField

<RandIP>

class scapy.contrib.gtp_v2.PCO_Primary_NBNS

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_Primary_NBNS字段

type

ByteEnumField

None

length

ByteField

0

address

IPField

<RandIP>

class scapy.contrib.gtp_v2.PCO_SOF

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_SOF字段

type

ShortEnumField

None

length

ByteField

0

class scapy.contrib.gtp_v2.PCO_Secondary_DNS

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_Secondary_DNS字段

type

ByteEnumField

None

length

ByteField

0

address

IPField

<RandIP>

class scapy.contrib.gtp_v2.PCO_Secondary_NBNS

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_Secondary_NBNS字段

type

ByteEnumField

None

length

ByteField

0

address

IPField

<RandIP>

scapy.contrib.gtp_v2.PCO_option_dispatcher(s)

选择正确的PCO元素.

scapy.contrib.gtp_v2.PCO_protocol_dispatcher(s)

Choose the correct PCO element.

class scapy.contrib.gtp_v2.ULI_CGI

Bases: scapy.contrib.gtp_v2.ULI_Field

aliastypes
fields_desc
ULI_CGI字段

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

LAC

BitField (4位)

0

CI

BitField (28 bits)

0

class scapy.contrib.gtp_v2.ULI_ECGI

Bases: scapy.contrib.gtp_v2.ULI_Field

aliastypes
fields_desc
ULI_ECGI字段

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

SPARE

BitField (4位)

0

ECI

BitField (28位)

0

class scapy.contrib.gtp_v2.ULI_Field

Bases: scapy.packet.Packet

ULI字段的基类.

aliastypes
extract_padding(s)
class scapy.contrib.gtp_v2.ULI_LAI

Bases: scapy.contrib.gtp_v2.ULI_Field

aliastypes
fields_desc
ULI_LAI fields

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

LAC

ShortField

0

class scapy.contrib.gtp_v2.ULI_RAI

Bases: scapy.contrib.gtp_v2.ULI_Field

aliastypes
fields_desc
ULI_RAI字段

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

LAC

ShortField

0

RAC

ShortField

0

class scapy.contrib.gtp_v2.ULI_SAI

Bases: scapy.contrib.gtp_v2.ULI_Field

aliastypes
fields_desc
ULI_SAI字段

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

LAC

ShortField

0

SAC

ShortField

0

class scapy.contrib.gtp_v2.ULI_TAI

Bases: scapy.contrib.gtp_v2.ULI_Field

aliastypes
fields_desc
ULI_TAI字段

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

TAC

ShortField

0

scapy.contrib.gtp_v2.len_options(pkt)