scapy.contrib.gtp_v2

class scapy.contrib.gtp_v2.GTPHeader

Bases: scapy.packet.Packet

aliastypes
answers(other)
fields_desc
GTPHeader fields

version

BitField (3 bits)

2

P

BitField (1 bit)

1

T

BitField (1 bit)

1

SPARE

BitField (1 bit)

0

SPARE

BitField (1 bit)

0

SPARE

BitField (1 bit)

0

gtp_type

ByteEnumField

None

length

ShortField

None

teid

XIntField (Cond)

0

seq

ThreeBytesField

<RandShort>

SPARE

ByteField

0

hashret()
payload_guess

Possible sublayers: GTPV2CreateIndirectDataForwardingTunnelRequest, GTPV2CreateIndirectDataForwardingTunnelResponse, GTPV2CreateSessionRequest, GTPV2CreateSessionResponse, GTPV2DeleteBearerRequest, GTPV2DeleteBearerResponse, GTPV2DeleteIndirectDataForwardingTunnelRequest, GTPV2DeleteIndirectDataForwardingTunnelResponse, GTPV2DeleteSessionRequest, GTPV2DeleteSessionResponse, GTPV2DownlinkDataNotifAck, GTPV2DownlinkDataNotifFailureIndication, GTPV2DownlinkDataNotif, GTPV2EchoRequest, GTPV2EchoResponse, GTPV2ModifyBearerCommand, GTPV2ModifyBearerFailureNotification, GTPV2ModifyBearerRequest, GTPV2ModifyBearerResponse, GTPV2ReleaseBearerRequest, GTPV2ReleaseBearerResponse, GTPV2ResumeAcknowledge, GTPV2ResumeNotification, GTPV2SuspendAcknowledge, GTPV2SuspendNotification, GTPV2UpdateBearerRequest, GTPV2UpdateBearerResponse

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

Bases: scapy.packet.Packet

aliastypes
fields_desc
GTPV2Command fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateIndirectDataForwardingTunnelRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateIndirectDataForwardingTunnelRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateIndirectDataForwardingTunnelResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateIndirectDataForwardingTunnelResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateSessionRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateSessionRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2CreateSessionResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2CreateSessionResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteBearerRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteBearerResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteIndirectDataForwardingTunnelRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteIndirectDataForwardingTunnelRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteIndirectDataForwardingTunnelResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteIndirectDataForwardingTunnelResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteSessionRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteSessionRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DeleteSessionResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DeleteSessionResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotif

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DownlinkDataNotif fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotifAck

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DownlinkDataNotifAck fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotifFailureIndication

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2DownlinkDataNotifFailureIndication fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2EchoRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2EchoRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2EchoResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2EchoResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerCommand

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerCommand fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerFailureNotification

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerFailureNotification fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ModifyBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ModifyBearerResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ReleaseBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ReleaseBearerRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ReleaseBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ReleaseBearerResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ResumeAcknowledge

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ResumeAcknowledge fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2ResumeNotification

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2ResumeNotification fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2SuspendAcknowledge

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2SuspendAcknowledge fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2SuspendNotification

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2SuspendNotification fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2UpdateBearerRequest

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2UpdateBearerRequest fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.GTPV2UpdateBearerResponse

Bases: scapy.contrib.gtp_v2.GTPV2Command

aliastypes
fields_desc
GTPV2UpdateBearerResponse fields

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.IE_AMBR

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_AMBR fields

ietype

ByteEnumField

72

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

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 fields

ietype

ByteEnumField

71

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

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 fields

ietype

ByteEnumField

127

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

APN_Restriction

ByteField

0

class scapy.contrib.gtp_v2.IE_BearerContext

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_BearerContext fields

ietype

ByteEnumField

93

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

IE_list

PacketListField

[]

class scapy.contrib.gtp_v2.IE_Bearer_QoS

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_Bearer_QoS fields

ietype

ByteEnumField

80

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

SPARE

BitField (1 bit)

0

PCI

BitField (1 bit)

0

PriorityLevel

BitField (4 bits)

0

SPARE

BitField (1 bit)

0

PVI

BitField (1 bit)

0

QCI

ByteField

0

MaxBitRateForUplink

BitField (40 bits)

0

MaxBitRateForDownlink

BitField (40 bits)

0

GuaranteedBitRateForUplink

BitField (40 bits)

0

GuaranteedBitRateForDownlink

BitField (40 bits)

0

class scapy.contrib.gtp_v2.IE_Cause

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_Cause fields

ietype

ByteEnumField

2

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

Cause

ByteEnumField

1

SPARE

BitField (5 bits)

0

PCE

BitField (1 bit)

0

BCE

BitField (1 bit)

0

CS

BitField (1 bit)

0

class scapy.contrib.gtp_v2.IE_ChargingCharacteristics

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_ChargingCharacteristics fields

ietype

ByteEnumField

95

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

ChargingCharacteristric

XShortField

0

class scapy.contrib.gtp_v2.IE_ChargingID

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_ChargingID fields

ietype

ByteEnumField

94

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

ChargingID

IntField

0

scapy.contrib.gtp_v2.IE_Dispatcher(s)

Choose the correct Information Element class.

class scapy.contrib.gtp_v2.IE_EPSBearerID

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_EPSBearerID fields

ietype

ByteEnumField

73

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

EBI

ByteField

0

class scapy.contrib.gtp_v2.IE_FTEID

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_FTEID fields

ietype

ByteEnumField

87

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

ipv4_present

BitField (1 bit)

0

ipv6_present

BitField (1 bit)

0

InterfaceType

BitEnumField (6 bits)

0

GRE_Key

XIntField

0

ipv4

IPField (Cond)

<RandIP>

ipv6

XBitField (Cond) (128 bits)

'2001::'

class scapy.contrib.gtp_v2.IE_IMSI

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_IMSI fields

ietype

ByteEnumField

1

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

IMSI

TBCDByteField

b'33607080910'

class scapy.contrib.gtp_v2.IE_IPv4

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_IPv4 fields

ietype

ByteEnumField

74

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

address

IPField

<RandIP>

class scapy.contrib.gtp_v2.IE_Indication

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_Indication fields

ietype

ByteEnumField

77

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

DAF

BitField (1 bit)

0

DTF

BitField (1 bit)

0

HI

BitField (1 bit)

0

DFI

BitField (1 bit)

0

OI

BitField (1 bit)

0

ISRSI

BitField (1 bit)

0

ISRAI

BitField (1 bit)

0

SGWCI

BitField (1 bit)

0

SQCI

BitField (1 bit)

0

UIMSI

BitField (1 bit)

0

CFSI

BitField (1 bit)

0

CRSI

BitField (1 bit)

0

PS

BitField (1 bit)

0

PT

BitField (1 bit)

0

SI

BitField (1 bit)

0

MSV

BitField (1 bit)

0

RetLoc

BitField (Cond) (1 bit)

0

PBIC

BitField (Cond) (1 bit)

0

SRNI

BitField (Cond) (1 bit)

0

S6AF

BitField (Cond) (1 bit)

0

S4AF

BitField (Cond) (1 bit)

0

MBMDT

BitField (Cond) (1 bit)

0

ISRAU

BitField (Cond) (1 bit)

0

CCRSI

BitField (Cond) (1 bit)

0

CPRAI

BitField (Cond) (1 bit)

0

ARRL

BitField (Cond) (1 bit)

0

PPOFF

BitField (Cond) (1 bit)

0

PPON

BitField (Cond) (1 bit)

0

PPSI

BitField (Cond) (1 bit)

0

CSFBI

BitField (Cond) (1 bit)

0

CLII

BitField (Cond) (1 bit)

0

CPSR

BitField (Cond) (1 bit)

0

class scapy.contrib.gtp_v2.IE_MEI

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_MEI fields

ietype

ByteEnumField

75

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

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 bits)

0

instance

BitField (4 bits)

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 fields

ietype

ByteEnumField

76

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

digits

TBCDByteField

b'33123456789'

class scapy.contrib.gtp_v2.IE_NotImplementedTLV

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_NotImplementedTLV fields

ietype

ByteEnumField

0

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

data

StrLenField

b''

class scapy.contrib.gtp_v2.IE_PAA

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_PAA fields

ietype

ByteEnumField

79

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

SPARE

BitField (5 bits)

0

PDN_type

BitEnumField (3 bits)

None

ipv6_prefix_length

ByteField (Cond)

8

ipv6

XBitField (Cond) (128 bits)

'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 fields

ietype

ByteEnumField

78

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

Extension

BitField (1 bit)

0

SPARE

BitField (4 bits)

0

PPP

BitField (3 bits)

0

Protocols

PacketListField

[]

class scapy.contrib.gtp_v2.IE_PDN_type

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_PDN_type fields

ietype

ByteEnumField

99

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

SPARE

BitField (5 bits)

0

PDN_type

BitEnumField (3 bits)

None

class scapy.contrib.gtp_v2.IE_Port_Number

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_Port_Number fields

ietype

ByteEnumField

126

length

ShortField

2

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

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 fields

ietype

ByteEnumField

255

length

ShortField

None

SPARE

BitField (4 bits)

0

instance

BitField (4 bits)

0

enterprisenum

ShortEnumField

None

class scapy.contrib.gtp_v2.IE_RAT

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_RAT fields

ietype

ByteEnumField

82

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

RAT_type

ByteEnumField

None

class scapy.contrib.gtp_v2.IE_RecoveryRestart

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_RecoveryRestart fields

ietype

ByteEnumField

3

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

restart_counter

ByteField

0

class scapy.contrib.gtp_v2.IE_SelectionMode

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_SelectionMode fields

ietype

ByteEnumField

128

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

SPARE

BitField (6 bits)

0

SelectionMode

BitField (2 bits)

0

class scapy.contrib.gtp_v2.IE_ServingNetwork

Bases: scapy.contrib.gtp.IE_Base

aliastypes
fields_desc
IE_ServingNetwork fields

ietype

ByteEnumField

83

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

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 fields

ietype

ByteEnumField

114

length

ShortField

None

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

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 fields

ietype

ByteEnumField

86

length

ShortField

0

CR_flag

BitField (4 bits)

0

instance

BitField (4 bits)

0

SPARE

BitField (2 bits)

0

LAI_Present

BitField (1 bit)

0

ECGI_Present

BitField (1 bit)

0

TAI_Present

BitField (1 bit)

0

RAI_Present

BitField (1 bit)

0

SAI_Present

BitField (1 bit)

0

CGI_Present

BitField (1 bit)

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 fields

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 fields

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 fields

type

ShortEnumField

None

length

ByteField

0

address

XBitField (Cond) (128 bits)

'2001:db8:0:42::'

class scapy.contrib.gtp_v2.PCO_IPCP

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_IPCP fields

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 fields

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 fields

type

ByteEnumField

None

length

ByteField

0

address

IPField

<RandIP>

Bases: scapy.contrib.gtp_v2.PCO_Option

PCO_IPv4_Link_MTU_Request fields

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 fields

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 fields

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 fields

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 fields

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 fields

type

ShortEnumField

None

length

ByteField

0

address

XBitField (Cond) (128 bits)

'2001:db8:0:42::'

class scapy.contrib.gtp_v2.PCO_PasswordAuthentificationProtocol

Bases: scapy.contrib.gtp_v2.PCO_Option

aliastypes
fields_desc
PCO_PasswordAuthentificationProtocol fields

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 fields

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 fields

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 fields

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 fields

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 fields

type

ByteEnumField

None

length

ByteField

0

address

IPField

<RandIP>

scapy.contrib.gtp_v2.PCO_option_dispatcher(s)

Choose the correct PCO element.

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 fields

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

LAC

BitField (4 bits)

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 fields

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

SPARE

BitField (4 bits)

0

ECI

BitField (28 bits)

0

class scapy.contrib.gtp_v2.ULI_Field

Bases: scapy.packet.Packet

Base class for ULI fields.

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 fields

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 fields

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 fields

MCC

TBCDByteField

b''

MNC

TBCDByteField

b''

TAC

ShortField

0

scapy.contrib.gtp_v2.len_options(pkt)