scapy.contrib.gtp_v2
- class scapy.contrib.gtp_v2.GTPHeader(_pkt, /, *, version=2, P=1, T=1, MP=0, SPARE1=0, SPARE2=0, gtp_type=None, length=None, teid=0, seq=<RandShort>, msg_priority=0, SPARE3=None)[source]
Bases:
GTPHeader
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |VERSI|P|T|M|S|S| GTP TYPE | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TEID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |MSG PRI| SPARE3 | +-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPHeader
GTPHeader fields version
BitField
(3 bits)2
P
BitField
(1 bit)1
T
BitField
(1 bit)1
MP
BitField
(1 bit)0
SPARE1
BitField
(1 bit)0
SPARE2
BitField
(1 bit)0
gtp_type
None
length
None
teid
XIntField
(Cond)0
seq
<RandShort>
msg_priority
BitField
(Cond) (4 bits)0
SPARE3
MultipleTypeField
(Cond, BitField, ByteField)0
- payload_guess
Possible sublayers:
GTPCreatePDPContextRequest
,GTPCreatePDPContextResponse
,GTPDeletePDPContextRequest
,GTPDeletePDPContextResponse
,GTPEchoRequest
,GTPEchoResponse
,GTPPDUNotificationRequest
,GTPSupportedExtensionHeadersNotification
,GTPUpdatePDPContextRequest
,GTPUpdatePDPContextResponse
,GTP_PDCP_PDU_ExtensionHeader
,GTP_UDPPort_ExtensionHeader
,GTPV2BearerResourceCommand
,GTPV2BearerResourceFailureIndication
,GTPV2ContextAcknowledge
,GTPV2ContextRequest
,GTPV2ContextResponse
,GTPV2CreateBearerRequest
,GTPV2CreateBearerResponse
,GTPV2CreateIndirectDataForwardingTunnelRequest
,GTPV2CreateIndirectDataForwardingTunnelResponse
,GTPV2CreateSessionRequest
,GTPV2CreateSessionResponse
,GTPV2DeleteBearerCommand
,GTPV2DeleteBearerFailureIndication
,GTPV2DeleteBearerRequest
,GTPV2DeleteBearerResponse
,GTPV2DeleteIndirectDataForwardingTunnelRequest
,GTPV2DeleteIndirectDataForwardingTunnelResponse
,GTPV2DeleteSessionRequest
,GTPV2DeleteSessionResponse
,GTPV2DownlinkDataNotifAck
,GTPV2DownlinkDataNotifFailureIndication
,GTPV2DownlinkDataNotif
,GTPV2EchoRequest
,GTPV2EchoResponse
,GTPV2ModifyBearerCommand
,GTPV2ModifyBearerFailureIndication
,GTPV2ModifyBearerRequest
,GTPV2ModifyBearerResponse
,GTPV2ReleaseBearerRequest
,GTPV2ReleaseBearerResponse
,GTPV2ResumeAcknowledge
,GTPV2ResumeNotification
,GTPV2SuspendAcknowledge
,GTPV2SuspendNotification
,GTPV2UpdateBearerRequest
,GTPV2UpdateBearerResponse
- class scapy.contrib.gtp_v2.GTPV2BearerResourceCommand(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2BearerResourceFailureIndication(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2BearerResourceFailureIndication
GTPV2BearerResourceFailureIndication fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2Command(_pkt, /, *, IE_list=[])[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ContextAcknowledge(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ContextRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ContextResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2CreateBearerRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2CreateBearerResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2CreateIndirectDataForwardingTunnelRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2CreateIndirectDataForwardingTunnelRequest
GTPV2CreateIndirectDataForwardingTunnelRequest fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2CreateIndirectDataForwardingTunnelResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2CreateIndirectDataForwardingTunnelResponse
GTPV2CreateIndirectDataForwardingTunnelResponse fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2CreateSessionRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2CreateSessionResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DeleteBearerCommand(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DeleteBearerFailureIndication(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2DeleteBearerFailureIndication
GTPV2DeleteBearerFailureIndication fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2DeleteBearerRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DeleteBearerResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DeleteIndirectDataForwardingTunnelRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2DeleteIndirectDataForwardingTunnelRequest
GTPV2DeleteIndirectDataForwardingTunnelRequest fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2DeleteIndirectDataForwardingTunnelResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2DeleteIndirectDataForwardingTunnelResponse
GTPV2DeleteIndirectDataForwardingTunnelResponse fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2DeleteSessionRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DeleteSessionResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotif(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotifAck(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2DownlinkDataNotifFailureIndication(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2DownlinkDataNotifFailureIndication
GTPV2DownlinkDataNotifFailureIndication fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2EchoRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2EchoResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ModifyBearerCommand(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ModifyBearerFailureIndication(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. GTPV2ModifyBearerFailureIndication
GTPV2ModifyBearerFailureIndication fields IE_list
[]
- class scapy.contrib.gtp_v2.GTPV2ModifyBearerRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ModifyBearerResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ReleaseBearerRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ReleaseBearerResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ResumeAcknowledge(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2ResumeNotification(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2SuspendAcknowledge(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2SuspendNotification(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2UpdateBearerRequest(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.GTPV2UpdateBearerResponse(_pkt, /, *, IE_list=[])[source]
Bases:
GTPV2Command
- aliastypes
- class scapy.contrib.gtp_v2.IE_AMBR(_pkt, /, *, ietype=72, length=None, CR_flag=0, instance=0, AMBR_Uplink=0, AMBR_Downlink=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AMBR UPLINK | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AMBR DOWNLINK | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_AMBR
IE_AMBR fields ietype
72
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
AMBR_Uplink
0
AMBR_Downlink
0
- class scapy.contrib.gtp_v2.IE_APCO(_pkt, /, *, ietype=163, length=None, CR_flag=0, instance=0, extension=0, SPARE=0, PPP=0, Protocols=[])[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |E| SPARE | PPP | PROTOCOLS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_APCO
IE_APCO fields ietype
163
length
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
[]
- class scapy.contrib.gtp_v2.IE_APN(_pkt, /, *, ietype=71, length=None, CR_flag=0, instance=0, APN=b'internet')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | APN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_APN
IE_APN fields ietype
71
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
APN
b'internet'
- class scapy.contrib.gtp_v2.IE_APN_Restriction(_pkt, /, *, ietype=127, length=None, CR_flag=0, instance=0, APN_Restriction=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |APN RESTRICTION| +-+-+-+-+-+-+-+-+ Fig. IE_APN_Restriction
IE_APN_Restriction fields ietype
127
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
APN_Restriction
0
- class scapy.contrib.gtp_v2.IE_BearerContext(_pkt, /, *, ietype=93, length=None, CR_flag=0, instance=0, IE_list=[])[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_BearerContext
IE_BearerContext fields ietype
93
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
IE_list
[]
- class scapy.contrib.gtp_v2.IE_BearerFlags(_pkt, /, *, ietype=97, length=None, CR_flag=0, instance=0, SPARE=0, ASI=0, Vind=0, VB=0, PPC=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPARE |A|V|V|P| +-+-+-+-+-+-+-+-+ Fig. IE_BearerFlags
IE_BearerFlags fields ietype
97
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
SPARE
BitField
(4 bits)0
ASI
BitField
(1 bit)0
Vind
BitField
(1 bit)0
VB
BitField
(1 bit)0
PPC
BitField
(1 bit)0
- class scapy.contrib.gtp_v2.IE_BearerTFT(_pkt, /, *, ietype=84, length=None, CR_flag=0, instance=0, Bearer_TFT=b'')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | BEARER TFT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_BearerTFT
IE_BearerTFT fields ietype
84
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
Bearer_TFT
b''
- class scapy.contrib.gtp_v2.IE_Bearer_QoS(_pkt, /, *, ietype=80, length=None, CR_flag=0, instance=0, SPARE1=0, PCI=0, PriorityLevel=0, SPARE2=0, PVI=0, QCI=0, MaxBitRateForUplink=0, MaxBitRateForDownlink=0, GuaranteedBitRateForUplink=0, GuaranteedBitRateForDownlink=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |S|P|PRIORIT|S|P| QCI | MAXBITRATEFORUPLINK | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | |MAXBITRATEFORDO| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GUARANTEEDBITRATEFORUPLINK | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | GUARANTEEDBITRATEFORDOWNLINK | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_Bearer_QoS
IE_Bearer_QoS fields ietype
80
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
SPARE1
BitField
(1 bit)0
PCI
BitField
(1 bit)0
PriorityLevel
BitField
(4 bits)0
SPARE2
BitField
(1 bit)0
PVI
BitField
(1 bit)0
QCI
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(_pkt, /, *, ietype=2, length=None, CR_flag=0, instance=0, Cause=1, SPARE=0, PCE=0, BCE=0, CS=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CAUSE | SPARE |P|B|C| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_Cause
IE_Cause fields ietype
2
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
Cause
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(_pkt, /, *, ietype=95, length=None, CR_flag=0, instance=0, ChargingCharacteristic=0)[source]
Bases:
IE_Base
- aliastypes
- deprecated_fields: Dict[str, Tuple[str, str]] = {'ChargingCharacteristric': ('ChargingCharacteristic', '2.6.0')}
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHARGINGCHARACTERISTIC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_ChargingCharacteristics
IE_ChargingCharacteristics fields ietype
95
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
ChargingCharacteristic
0
- class scapy.contrib.gtp_v2.IE_ChargingID(_pkt, /, *, ietype=94, length=None, CR_flag=0, instance=0, ChargingID=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHARGINGID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_ChargingID
IE_ChargingID fields ietype
94
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
ChargingID
0
- class scapy.contrib.gtp_v2.IE_EPCO(_pkt, /, *, ietype=197, length=None, CR_flag=0, instance=0, Extension=0, SPARE=0, PPP=0, Protocols=[])[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |E| SPARE | PPP | PROTOCOLS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_EPCO
IE_EPCO fields ietype
197
length
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
[]
- class scapy.contrib.gtp_v2.IE_EPSBearerID(_pkt, /, *, ietype=73, length=None, CR_flag=0, instance=0, EBI=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | EBI | +-+-+-+-+-+-+-+-+ Fig. IE_EPSBearerID
IE_EPSBearerID fields ietype
73
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
EBI
0
- class scapy.contrib.gtp_v2.IE_FQCSID(_pkt, /, *, ietype=132, length=None, CR_flag=0, instance=0, nodeid_type=0, num_csid=0, nodeid_v4=0, nodeid_v6='2001:db8:0:42::', nodeid_nonip=0, csid=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |NODEID |NUM CSI| NODEID V4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | NODEID V6 | +-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | NODEID NONIP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | CSID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_FQCSID
IE_FQCSID fields ietype
132
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
nodeid_type
BitField
(4 bits)0
num_csid
BitField
(4 bits)0
nodeid_v4
IPField
(Cond)0
nodeid_v6
XBitField
(Cond) (128 bits)'2001:db8:0:42::'
nodeid_nonip
BitField
(Cond) (32 bits)0
csid
0
- class scapy.contrib.gtp_v2.IE_FQDN(_pkt, /, *, ietype=136, length=None, CR_flag=0, instance=0, fqdn_tr_bit=0, fqdn=b'')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FQDN TR BIT | FQDN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_FQDN
IE_FQDN fields ietype
136
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
fqdn_tr_bit
0
fqdn
b''
- class scapy.contrib.gtp_v2.IE_FTEID(_pkt, /, *, ietype=87, length=None, CR_flag=0, instance=0, ipv4_present=0, ipv6_present=0, InterfaceType=0, GRE_Key=0, ipv4=<RandIP>, ipv6='2001::')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |I|I|INTERFACETY| GRE KEY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | IPV4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | IPV6 | +-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. IE_FTEID
IE_FTEID fields ietype
87
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
ipv4_present
BitField
(1 bit)0
ipv6_present
BitField
(1 bit)0
InterfaceType
0
GRE_Key
0
ipv4
IPField
(Cond)<RandIP>
ipv6
XBitField
(Cond) (128 bits)'2001::'
- class scapy.contrib.gtp_v2.IE_IMSI(_pkt, /, *, ietype=1, length=None, CR_flag=0, instance=0, IMSI=b'33607080910')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IMSI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_IMSI
IE_IMSI fields ietype
1
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
IMSI
b'33607080910'
- class scapy.contrib.gtp_v2.IE_IP_Address(_pkt, /, *, ietype=74, length=None, CR_flag=0, instance=0, address=<RandIP>, address6=None)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESS6 | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_IP_Address
IE_IP_Address fields ietype
74
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
address
IPField
(Cond)<RandIP>
address6
IP6Field
(Cond)None
- class scapy.contrib.gtp_v2.IE_Indication(_pkt, /, *, ietype=77, length=None, CR_flag=0, instance=0, DAF=0, DTF=0, HI=0, DFI=0, OI=0, ISRSI=0, ISRAI=0, SGWCI=0, SQCI=0, UIMSI=0, CFSI=0, CRSI=0, PS=0, PT=0, SI=0, MSV=0, RetLoc=0, PBIC=0, SRNI=0, S6AF=0, S4AF=0, MBMDT=0, ISRAU=0, CCRSI=0, CPRAI=0, ARRL=0, PPOFF=0, PPON=0, PPSI=0, CSFBI=0, CLII=0, CPSR=0, NSI=0, UASI=0, DTCI=0, BDWI=0, PSCI=0, PCRI=0, AOSI=0, AOPI=0, ROAAI=0, EPCOSI=0, CPOPCI=0, PMTSMI=0, S11TF=0, PNSI=0, UNACCSI=0, WPMSI=0, _5GSNN26=0, REPREFI=0, _5GSIWKI=0, EEVRSI=0, LTEMUI=0, LTEMPI=0, ENBCRSI=0, TSPCMI=0, SPARE1=0, SPARE2=0, SPARE3=0, N5GNMI=0, _5GCNRS=0, _5GCNRI=0, _5SRHOI=0, ETHPDN=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |D|D|H|D|O|I|I|S|S|U|C|C|P|P|S|M|R|P|S|S|S|M|I|C|C|A|P|P|P|C|C|C| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |N|U|D|B|P|P|A|A|R|E|C|P|S|P|U|W| |R| |E|L|L|E|T|S|S|S|N| | | |E| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_Indication
IE_Indication fields ietype
77
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
DAF
BitField
(Cond) (1 bit)0
DTF
BitField
(Cond) (1 bit)0
HI
BitField
(Cond) (1 bit)0
DFI
BitField
(Cond) (1 bit)0
OI
BitField
(Cond) (1 bit)0
ISRSI
BitField
(Cond) (1 bit)0
ISRAI
BitField
(Cond) (1 bit)0
SGWCI
BitField
(Cond) (1 bit)0
SQCI
BitField
(Cond) (1 bit)0
UIMSI
BitField
(Cond) (1 bit)0
CFSI
BitField
(Cond) (1 bit)0
CRSI
BitField
(Cond) (1 bit)0
PS
BitField
(Cond) (1 bit)0
PT
BitField
(Cond) (1 bit)0
SI
BitField
(Cond) (1 bit)0
MSV
BitField
(Cond) (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
NSI
BitField
(Cond) (1 bit)0
UASI
BitField
(Cond) (1 bit)0
DTCI
BitField
(Cond) (1 bit)0
BDWI
BitField
(Cond) (1 bit)0
PSCI
BitField
(Cond) (1 bit)0
PCRI
BitField
(Cond) (1 bit)0
AOSI
BitField
(Cond) (1 bit)0
AOPI
BitField
(Cond) (1 bit)0
ROAAI
BitField
(Cond) (1 bit)0
EPCOSI
BitField
(Cond) (1 bit)0
CPOPCI
BitField
(Cond) (1 bit)0
PMTSMI
BitField
(Cond) (1 bit)0
S11TF
BitField
(Cond) (1 bit)0
PNSI
BitField
(Cond) (1 bit)0
UNACCSI
BitField
(Cond) (1 bit)0
WPMSI
BitField
(Cond) (1 bit)0
_5GSNN26
BitField
(Cond) (1 bit)0
REPREFI
BitField
(Cond) (1 bit)0
_5GSIWKI
BitField
(Cond) (1 bit)0
EEVRSI
BitField
(Cond) (1 bit)0
LTEMUI
BitField
(Cond) (1 bit)0
LTEMPI
BitField
(Cond) (1 bit)0
ENBCRSI
BitField
(Cond) (1 bit)0
TSPCMI
BitField
(Cond) (1 bit)0
SPARE1
BitField
(Cond) (1 bit)0
SPARE2
BitField
(Cond) (1 bit)0
SPARE3
BitField
(Cond) (1 bit)0
N5GNMI
BitField
(Cond) (1 bit)0
_5GCNRS
BitField
(Cond) (1 bit)0
_5GCNRI
BitField
(Cond) (1 bit)0
_5SRHOI
BitField
(Cond) (1 bit)0
ETHPDN
BitField
(Cond) (1 bit)0
- class scapy.contrib.gtp_v2.IE_MEI(_pkt, /, *, ietype=75, length=None, CR_flag=0, instance=0, MEI=b'175675478970685')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MEI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_MEI
IE_MEI fields ietype
75
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
MEI
b'175675478970685'
- class scapy.contrib.gtp_v2.IE_MMBR(_pkt, /, *, ietype=161, length=None, CR_flag=0, instance=0, uplink_rate=0, downlink_rate=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | UPLINK RATE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DOWNLINK RATE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_MMBR
IE_MMBR fields ietype
161
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
uplink_rate
0
downlink_rate
0
- class scapy.contrib.gtp_v2.IE_MMContext_EPS(_pkt, /, *, ietype=107, length=None, CR_flag=0, instance=0, Sec_Mode=0, Nhi=0, Drxi=0, Ksi=0, Num_quint=0, Num_Quad=0, Uambri=0, Osci=0, Sambri=0, Nas_algo=0, Nas_cipher=0, Nas_dl_count=0, Nas_ul_count=0, Kasme=0, fields=b'')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |SEC M|N|D| KSI |NUM Q|NUM Q|U|O|S|NAS A|NAS CIP| NAS DL COUNT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | NAS UL COUNT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | KASME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + + | | + + | | + + | | + + | | + +-+-+-+-+-+-+-+-+ | | FIELDS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. IE_MMContext_EPS
IE_MMContext_EPS fields ietype
107
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
Sec_Mode
BitField
(3 bits)0
Nhi
BitField
(1 bit)0
Drxi
BitField
(1 bit)0
Ksi
BitField
(3 bits)0
Num_quint
BitField
(3 bits)0
Num_Quad
BitField
(3 bits)0
Uambri
BitField
(1 bit)0
Osci
BitField
(1 bit)0
Sambri
BitField
(1 bit)0
Nas_algo
BitField
(3 bits)0
Nas_cipher
BitField
(4 bits)0
Nas_dl_count
0
Nas_ul_count
0
Kasme
BitField
(256 bits)0
fields
StrLenField
(Cond)b''
- class scapy.contrib.gtp_v2.IE_MSISDN(_pkt, /, *, ietype=76, length=None, CR_flag=0, instance=0, digits=b'33123456789')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DIGITS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_MSISDN
IE_MSISDN fields ietype
76
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
digits
b'33123456789'
- class scapy.contrib.gtp_v2.IE_NotImplementedTLV(_pkt, /, *, ietype=0, length=None, CR_flag=0, instance=0, data=b'')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_NotImplementedTLV
IE_NotImplementedTLV fields ietype
0
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
data
b''
- class scapy.contrib.gtp_v2.IE_PAA(_pkt, /, *, ietype=79, length=None, CR_flag=0, instance=0, SPARE=0, PDN_type=None, ipv6_prefix_length=8, ipv6='2001:db8:0:42::', ipv4=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPARE |PDN T|IPV6 PREFIX LEN| IPV6 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | IPV4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_PAA
IE_PAA fields ietype
79
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
SPARE
BitField
(5 bits)0
PDN_type
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(_pkt, /, *, ietype=78, length=None, CR_flag=0, instance=0, Extension=0, SPARE=0, PPP=0, Protocols=[])[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |E| SPARE | PPP | PROTOCOLS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_PCO
IE_PCO fields ietype
78
length
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
[]
- class scapy.contrib.gtp_v2.IE_PDNConnection(_pkt, /, *, ietype=109, length=None, CR_flag=0, instance=0, IE_list=[])[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_PDNConnection
IE_PDNConnection fields ietype
109
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
IE_list
[]
- class scapy.contrib.gtp_v2.IE_PDN_type(_pkt, /, *, ietype=99, length=None, CR_flag=0, instance=0, SPARE=0, PDN_type=None)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPARE |PDN T| +-+-+-+-+-+-+-+-+ Fig. IE_PDN_type
IE_PDN_type fields ietype
99
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
SPARE
BitField
(5 bits)0
PDN_type
None
- class scapy.contrib.gtp_v2.IE_Port_Number(_pkt, /, *, ietype=126, length=None, CR_flag=0, instance=0, PortNumber=<RandShort>)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PORTNUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_Port_Number
IE_Port_Number fields ietype
126
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
PortNumber
<RandShort>
- class scapy.contrib.gtp_v2.IE_PrivateExtension(_pkt, /, *, ietype=255, length=None, SPARE=0, instance=0, enterprisenum=None, proprietaryvalue=b'')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH | SPARE |INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ENTERPRISENUM | PROPRIETARYVALUE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_PrivateExtension
IE_PrivateExtension fields ietype
255
length
None
SPARE
BitField
(4 bits)0
instance
BitField
(4 bits)0
enterprisenum
None
proprietaryvalue
b''
- class scapy.contrib.gtp_v2.IE_RAT(_pkt, /, *, ietype=82, length=None, CR_flag=0, instance=0, RAT_type=None)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RAT TYPE | +-+-+-+-+-+-+-+-+ Fig. IE_RAT
IE_RAT fields ietype
82
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
RAT_type
None
- class scapy.contrib.gtp_v2.IE_Ran_Nas_Cause(_pkt, /, *, ietype=172, length=None, CR_flag=0, instance=0, protocol_type=0, cause_type=0, cause_value=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |PROTOCO|CAUSE T| CAUSE VALUE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_Ran_Nas_Cause
IE_Ran_Nas_Cause fields ietype
172
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
protocol_type
BitField
(4 bits)0
cause_type
BitField
(4 bits)0
cause_value
0
- class scapy.contrib.gtp_v2.IE_RecoveryRestart(_pkt, /, *, ietype=3, length=None, CR_flag=0, instance=0, restart_counter=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |RESTART COUNTER| +-+-+-+-+-+-+-+-+ Fig. IE_RecoveryRestart
IE_RecoveryRestart fields ietype
3
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
restart_counter
0
- class scapy.contrib.gtp_v2.IE_SelectionMode(_pkt, /, *, ietype=128, length=None, CR_flag=0, instance=0, SPARE=0, SelectionMode=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPARE |SEL| +-+-+-+-+-+-+-+-+ Fig. IE_SelectionMode
IE_SelectionMode fields ietype
128
length
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(_pkt, /, *, ietype=83, length=None, CR_flag=0, instance=0, MCC=b'', MNC=b'')[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_ServingNetwork
IE_ServingNetwork fields ietype
83
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
MCC
b''
MNC
b''
- class scapy.contrib.gtp_v2.IE_UCI(_pkt, /, *, ietype=145, length=None, CR_flag=0, instance=0, MCC=b'', MNC=b'', SPARE1=0, CSG_ID=0, AccessMode=0, SPARE2=0, LCSG=0, CMI=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | SPARE1 |CSG I| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |ACC| SPARE2|L|C| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_UCI
IE_UCI fields ietype
145
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
MCC
b''
MNC
b''
SPARE1
BitField
(5 bits)0
CSG_ID
BitField
(27 bits)0
AccessMode
BitField
(2 bits)0
SPARE2
BitField
(4 bits)0
LCSG
BitField
(1 bit)0
CMI
BitField
(1 bit)0
- class scapy.contrib.gtp_v2.IE_UE_Timezone(_pkt, /, *, ietype=114, length=None, CR_flag=0, instance=0, Timezone=0, DST=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TIMEZONE | DST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_UE_Timezone
IE_UE_Timezone fields ietype
114
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
Timezone
0
DST
0
- class scapy.contrib.gtp_v2.IE_ULI(_pkt, /, *, ietype=86, length=None, CR_flag=0, instance=0, SPARE=0, LAI_Present=0, ECGI_Present=0, TAI_Present=0, RAI_Present=0, SAI_Present=0, CGI_Present=0, CGI=0, SAI=0, RAI=0, TAI=0, ECGI=0, LAI=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |SPA|L|E|T|R|S|C| CGI | SAI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | RAI | TAI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ECGI | LAI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. IE_ULI
IE_ULI fields ietype
86
length
None
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.IE_ULI_Timestamp(_pkt, /, *, ietype=170, length=None, CR_flag=0, instance=0, timestamp=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TIMESTAMP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IE_ULI_Timestamp
IE_ULI_Timestamp fields ietype
170
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
timestamp
0
- class scapy.contrib.gtp_v2.IE_UPF_SelInd_Flags(_pkt, /, *, ietype=202, length=None, CR_flag=0, instance=0, SPARE=0, DCNR=0)[source]
Bases:
IE_Base
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IETYPE | LENGTH |CR FLAG|INSTANC| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPARE |D| +-+-+-+-+-+-+-+-+ Fig. IE_UPF_SelInd_Flags
IE_UPF_SelInd_Flags fields ietype
202
length
None
CR_flag
BitField
(4 bits)0
instance
BitField
(4 bits)0
SPARE
BitField
(7 bits)0
DCNR
BitField
(1 bit)0
- class scapy.contrib.gtp_v2.PCO_5GSM_Cause_Value(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_5GSM_Cause_Value
PCO_5GSM_Cause_Value fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_ChallengeHandshakeAuthenticationProtocol(_pkt, /, *, type=None, length=None, PPP=None)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | PPP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_ChallengeHandshakeAuthenticationProtocol
PCO_ChallengeHandshakeAuthenticationProtocol fields type
None
length
None
PPP
None
- class scapy.contrib.gtp_v2.PCO_DNS_Server_IPv4(_pkt, /, *, type=None, length=None, address=<RandIP>)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_DNS_Server_IPv4
PCO_DNS_Server_IPv4 fields type
None
length
None
address
IPField
(Cond)<RandIP>
- class scapy.contrib.gtp_v2.PCO_DNS_Server_IPv6(_pkt, /, *, type=None, length=None, address='2001:db8:0:42::')[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_DNS_Server_IPv6
PCO_DNS_Server_IPv6 fields type
None
length
None
address
XBitField
(Cond) (128 bits)'2001:db8:0:42::'
- class scapy.contrib.gtp_v2.PCO_IM_CN_Subsystem_Signaling_Flag(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_IM_CN_Subsystem_Signaling_Flag
PCO_IM_CN_Subsystem_Signaling_Flag fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_IPCP(_pkt, /, *, type=None, length=None, PPP=None)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | PPP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_IPCP
PCO_IPCP fields type
None
length
None
PPP
None
- class scapy.contrib.gtp_v2.PCO_IP_Allocation_via_NAS(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_IP_Allocation_via_NAS
PCO_IP_Allocation_via_NAS fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_IPv4(_pkt, /, *, type=None, length=None, address=<RandIP>)[source]
Bases:
PCO_Option
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_IPv4
PCO_IPv4 fields type
None
length
None
address
<RandIP>
- class scapy.contrib.gtp_v2.PCO_IPv4_Link_MTU_Request(_pkt, /, *, type=None, length=None, MTU_size=1500)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | MTU SIZE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_IPv4_Link_MTU_Request
PCO_IPv4_Link_MTU_Request fields type
None
length
None
MTU_size
ShortField
(Cond)1500
- class scapy.contrib.gtp_v2.PCO_PDU_Session_Id(_pkt, /, *, type=None, length=1, PduSessionId=1)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | PDUSESSIONID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_PDU_Session_Id
PCO_PDU_Session_Id fields type
None
length
1
PduSessionId
1
- class scapy.contrib.gtp_v2.PCO_PPP(_pkt, /, *, Code=0, Identifier=0, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CODE | IDENTIFIER | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_PPP
PCO_PPP fields Code
0
Identifier
0
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_PPP_Auth(_pkt, /, *, Code=0, Identifier=0, length=None, PeerID_length=0, PeerID=b'', Password_length=0, Password=b'')[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CODE | IDENTIFIER | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PEERID LENGTH | PEERID |PASSWORD LENGTH| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PASSWORD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_PPP_Auth
PCO_PPP_Auth fields Code
0
Identifier
0
length
None
PeerID_length
0
PeerID
StrFixedLenField
(Cond)b''
Password_length
0
Password
StrFixedLenField
(Cond)b''
- class scapy.contrib.gtp_v2.PCO_PPP_Challenge(_pkt, /, *, Code=0, Identifier=0, length=None, value_size=0, value=b'', name='PPP Password Authentication Protocol')[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CODE | IDENTIFIER | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VALUE SIZE | VALUE | NAME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_PPP_Challenge
PCO_PPP_Challenge fields Code
0
Identifier
0
length
None
value_size
0
value
StrFixedLenField
(Cond)b''
name
'PPP Password Authentication Protocol'
- class scapy.contrib.gtp_v2.PCO_P_CSCF_IPv4_Address_Request(_pkt, /, *, type=None, length=None, address=<RandIP>)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_P_CSCF_IPv4_Address_Request
PCO_P_CSCF_IPv4_Address_Request fields type
None
length
None
address
IPField
(Cond)<RandIP>
- class scapy.contrib.gtp_v2.PCO_P_CSCF_IPv6_Address_Request(_pkt, /, *, type=None, length=None, address='2001:db8:0:42::')[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_P_CSCF_IPv6_Address_Request
PCO_P_CSCF_IPv6_Address_Request fields type
None
length
None
address
XBitField
(Cond) (128 bits)'2001:db8:0:42::'
- class scapy.contrib.gtp_v2.PCO_P_CSCF_Re_selection_Support(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_P_CSCF_Re_selection_Support
PCO_P_CSCF_Re_selection_Support fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_PasswordAuthentificationProtocol(_pkt, /, *, type=None, length=None, PPP=None)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | PPP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_PasswordAuthentificationProtocol
PCO_PasswordAuthentificationProtocol fields type
None
length
None
PPP
None
- class scapy.contrib.gtp_v2.PCO_Primary_DNS(_pkt, /, *, type=None, length=None, address=<RandIP>)[source]
Bases:
PCO_Option
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_Primary_DNS
PCO_Primary_DNS fields type
None
length
None
address
<RandIP>
- class scapy.contrib.gtp_v2.PCO_Primary_NBNS(_pkt, /, *, type=None, length=None, address=<RandIP>)[source]
Bases:
PCO_Option
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_Primary_NBNS
PCO_Primary_NBNS fields type
None
length
None
address
<RandIP>
- class scapy.contrib.gtp_v2.PCO_QoS_Flow_Descriptions(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_QoS_Flow_Descriptions
PCO_QoS_Flow_Descriptions fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_QoS_Flow_Descriptions_With_Support_Indicator(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_QoS_Flow_Descriptions_With_Support_Indicator
PCO_QoS_Flow_Descriptions_With_Support_Indicator fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_QoS_Rules_With_Support_Indicator(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_QoS_Rules_With_Support_Indicator
PCO_QoS_Rules_With_Support_Indicator fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_Qos_Rules(_pkt, /, *, type=None, length=None, Options=[])[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_Qos_Rules
PCO_Qos_Rules fields type
None
length
None
Options
[]
- class scapy.contrib.gtp_v2.PCO_SOF(_pkt, /, *, type=None, length=None)[source]
Bases:
PCO_Protocol
- aliastypes
- class scapy.contrib.gtp_v2.PCO_S_Nssai(_pkt, /, *, type=None, length=None, SST=0, SD=0, Hplmn_Sst=0, Hplmn_Sd=0)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | SST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SD | HPLMN SST | HPLMN SD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_S_Nssai
PCO_S_Nssai fields type
None
length
None
SST
ByteField
(Cond)0
SD
ShortField
(Cond)0
Hplmn_Sst
ByteField
(Cond)0
Hplmn_Sd
ShortField
(Cond)0
- class scapy.contrib.gtp_v2.PCO_Secondary_DNS(_pkt, /, *, type=None, length=None, address=<RandIP>)[source]
Bases:
PCO_Option
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_Secondary_DNS
PCO_Secondary_DNS fields type
None
length
None
address
<RandIP>
- class scapy.contrib.gtp_v2.PCO_Secondary_NBNS(_pkt, /, *, type=None, length=None, address=<RandIP>)[source]
Bases:
PCO_Option
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PCO_Secondary_NBNS
PCO_Secondary_NBNS fields type
None
length
None
address
<RandIP>
- class scapy.contrib.gtp_v2.PCO_Session_AMBR(_pkt, /, *, type=None, length=6, dlunit=0, dlambr=0, ulunit=0, ulambr=0)[source]
Bases:
PCO_Protocol
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | DLUNIT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DLAMBR | ULUNIT | ULAMBR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. PCO_Session_AMBR
PCO_Session_AMBR fields type
None
length
6
dlunit
0
dlambr
0
ulunit
0
ulambr
0
- class scapy.contrib.gtp_v2.ULI_CGI(_pkt, /, *, MCC=b'', MNC=b'', LAC=0, CI=0)[source]
Bases:
ULI_Field
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | LAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | CI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ULI_CGI
ULI_CGI fields MCC
b''
MNC
b''
LAC
0
CI
0
- class scapy.contrib.gtp_v2.ULI_ECGI(_pkt, /, *, MCC=b'', MNC=b'', SPARE=0, ECI=0)[source]
Bases:
ULI_Field
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | SPARE | ECI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ULI_ECGI
ULI_ECGI fields MCC
b''
MNC
b''
SPARE
BitField
(4 bits)0
ECI
BitField
(28 bits)0
- class scapy.contrib.gtp_v2.ULI_Field(_pkt, /)[source]
Bases:
Packet
Base class for ULI fields.
- aliastypes
- class scapy.contrib.gtp_v2.ULI_LAI(_pkt, /, *, MCC=b'', MNC=b'', LAC=0)[source]
Bases:
ULI_Field
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | LAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ULI_LAI
ULI_LAI fields MCC
b''
MNC
b''
LAC
0
- class scapy.contrib.gtp_v2.ULI_RAI(_pkt, /, *, MCC=b'', MNC=b'', LAC=0, RAC=0)[source]
Bases:
ULI_Field
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | LAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | RAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ULI_RAI
ULI_RAI fields MCC
b''
MNC
b''
LAC
0
RAC
0
- class scapy.contrib.gtp_v2.ULI_SAI(_pkt, /, *, MCC=b'', MNC=b'', LAC=0, SAC=0)[source]
Bases:
ULI_Field
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | LAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | SAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ULI_SAI
ULI_SAI fields MCC
b''
MNC
b''
LAC
0
SAC
0
- class scapy.contrib.gtp_v2.ULI_TAI(_pkt, /, *, MCC=b'', MNC=b'', TAC=0)[source]
Bases:
ULI_Field
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MCC | MNC | TAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ULI_TAI
ULI_TAI fields MCC
b''
MNC
b''
TAC
0