scapy.contrib.gtp module

class scapy.contrib.gtp.APNStrLenField(name, default, fld=None, length_from=None, max_length=None)

Bases: scapy.fields.StrLenField

i2m(pkt, s)

Convert internal value to machine value

m2i(pkt, s)

Convert machine value to internal value

class scapy.contrib.gtp.GTPCreatePDPContextRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPCreatePDPContextRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPCreatePDPContextRequest).IE_list>]
hashret()

DEV: returns a string that has the same value for a request and its answer.

class scapy.contrib.gtp.GTPCreatePDPContextResponse

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPCreatePDPContextResponse'>, <class 'scapy.packet.Packet'>]
answers(other)

DEV: true if self is an answer from other

fields_desc = [<Field (GTPCreatePDPContextResponse).IE_list>]
hashret()

DEV: returns a string that has the same value for a request and its answer.

class scapy.contrib.gtp.GTPDeletePDPContextRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPDeletePDPContextRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPDeletePDPContextRequest).IE_list>]
class scapy.contrib.gtp.GTPDeletePDPContextResponse

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPDeletePDPContextResponse'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPDeletePDPContextResponse).IE_list>]
class scapy.contrib.gtp.GTPEchoRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPEchoRequest'>, <class 'scapy.packet.Packet'>]
hashret()

DEV: returns a string that has the same value for a request and its answer.

class scapy.contrib.gtp.GTPEchoResponse

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPEchoResponse'>, <class 'scapy.packet.Packet'>]
answers(other)

DEV: true if self is an answer from other

fields_desc = [<Field (GTPEchoResponse).IE_list>]
hashret()

DEV: returns a string that has the same value for a request and its answer.

class scapy.contrib.gtp.GTPErrorIndication

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPErrorIndication'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPErrorIndication).IE_list>]
class scapy.contrib.gtp.GTPHeader

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPHeader'>, <class 'scapy.packet.Packet'>]
answers(other)

DEV: true if self is an answer from other

classmethod dispatch_hook(_pkt=None, *args, **kargs)
fields_desc = [<Field (GTPHeader,GTP_U_Header).version>, <Field (GTPHeader,GTP_U_Header).PT>, <Field (GTPHeader,GTP_U_Header).reserved>, <Field (GTPHeader,GTP_U_Header).E>, <Field (GTPHeader,GTP_U_Header).S>, <Field (GTPHeader,GTP_U_Header).PN>, <Field (GTPHeader,GTP_U_Header).gtp_type>, <Field (GTPHeader,GTP_U_Header).length>, <Field (GTPHeader,GTP_U_Header).teid>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
hashret()

DEV: returns a string that has the same value for a request and its answer.

payload_guess = [({'gtp_type': 1, 'S': 1}, <class 'scapy.contrib.gtp.GTPEchoRequest'>), ({'gtp_type': 2, 'S': 1}, <class 'scapy.contrib.gtp.GTPEchoResponse'>), ({'gtp_type': 16}, <class 'scapy.contrib.gtp.GTPCreatePDPContextRequest'>), ({'gtp_type': 17}, <class 'scapy.contrib.gtp.GTPCreatePDPContextResponse'>), ({'gtp_type': 18}, <class 'scapy.contrib.gtp.GTPUpdatePDPContextRequest'>), ({'gtp_type': 19}, <class 'scapy.contrib.gtp.GTPUpdatePDPContextResponse'>), ({'gtp_type': 20}, <class 'scapy.contrib.gtp.GTPDeletePDPContextRequest'>), ({'gtp_type': 21}, <class 'scapy.contrib.gtp.GTPDeletePDPContextResponse'>), ({'gtp_type': 27}, <class 'scapy.contrib.gtp.GTPPDUNotificationRequest'>), ({'gtp_type': 31, 'S': 1}, <class 'scapy.contrib.gtp.GTPSupportedExtensionHeadersNotification'>), ({'next_ex': 64, 'E': 1}, <class 'scapy.contrib.gtp.GTP_UDPPort_ExtensionHeader'>), ({'next_ex': 192, 'E': 1}, <class 'scapy.contrib.gtp.GTP_PDCP_PDU_ExtensionHeader'>)]
post_build(p, pay)

DEV: called right after the current layer is build.

Parameters:
  • pkt (str) – the current packet (build by self_buil function)
  • pay (str) – the packet payload (build by do_build_payload function)
Returns:

a string of the packet with the payload

class scapy.contrib.gtp.GTPPDUNotificationRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPPDUNotificationRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPPDUNotificationRequest).IE_list>]
class scapy.contrib.gtp.GTPSupportedExtensionHeadersNotification

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPSupportedExtensionHeadersNotification'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPSupportedExtensionHeadersNotification).IE_list>]
class scapy.contrib.gtp.GTPUpdatePDPContextRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPUpdatePDPContextRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPUpdatePDPContextRequest).IE_list>]
hashret()

DEV: returns a string that has the same value for a request and its answer.

class scapy.contrib.gtp.GTPUpdatePDPContextResponse

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPUpdatePDPContextResponse'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPUpdatePDPContextResponse).IE_list>]
hashret()

DEV: returns a string that has the same value for a request and its answer.

class scapy.contrib.gtp.GTP_ExtensionHeader

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTP_ExtensionHeader'>, <class 'scapy.packet.Packet'>]
classmethod dispatch_hook(_pkt=None, *args, **kargs)
class scapy.contrib.gtp.GTP_PDCP_PDU_ExtensionHeader

Bases: scapy.contrib.gtp.GTP_ExtensionHeader

aliastypes = [<class 'scapy.contrib.gtp.GTP_PDCP_PDU_ExtensionHeader'>, <class 'scapy.contrib.gtp.GTP_ExtensionHeader'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTP_PDCP_PDU_ExtensionHeader).length>, <Field (GTP_PDCP_PDU_ExtensionHeader).pdcp_pdu>, <Field (GTP_PDCP_PDU_ExtensionHeader).next_ex>]
class scapy.contrib.gtp.GTP_UDPPort_ExtensionHeader

Bases: scapy.contrib.gtp.GTP_ExtensionHeader

aliastypes = [<class 'scapy.contrib.gtp.GTP_UDPPort_ExtensionHeader'>, <class 'scapy.contrib.gtp.GTP_ExtensionHeader'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTP_UDPPort_ExtensionHeader).length>, <Field (GTP_UDPPort_ExtensionHeader).udp_port>, <Field (GTP_UDPPort_ExtensionHeader).next_ex>]
class scapy.contrib.gtp.GTP_U_Header

Bases: scapy.contrib.gtp.GTPHeader

aliastypes = [<class 'scapy.contrib.gtp.GTP_U_Header'>, <class 'scapy.contrib.gtp.GTPHeader'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPHeader,GTP_U_Header).version>, <Field (GTPHeader,GTP_U_Header).PT>, <Field (GTPHeader,GTP_U_Header).reserved>, <Field (GTPHeader,GTP_U_Header).E>, <Field (GTPHeader,GTP_U_Header).S>, <Field (GTPHeader,GTP_U_Header).PN>, <Field (GTPHeader,GTP_U_Header).gtp_type>, <Field (GTPHeader,GTP_U_Header).length>, <Field (GTPHeader,GTP_U_Header).teid>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
guess_payload_class(payload)

DEV: Guesses the next payload class from layer bonds. Can be overloaded to use a different mechanism.

Parameters:payload (str) – the layer’s payload
Returns:the payload class
payload_guess = [({'gtp_type': 1, 'S': 1}, <class 'scapy.contrib.gtp.GTPEchoRequest'>), ({'gtp_type': 2, 'S': 1}, <class 'scapy.contrib.gtp.GTPEchoResponse'>), ({'gtp_type': 16}, <class 'scapy.contrib.gtp.GTPCreatePDPContextRequest'>), ({'gtp_type': 17}, <class 'scapy.contrib.gtp.GTPCreatePDPContextResponse'>), ({'gtp_type': 18}, <class 'scapy.contrib.gtp.GTPUpdatePDPContextRequest'>), ({'gtp_type': 19}, <class 'scapy.contrib.gtp.GTPUpdatePDPContextResponse'>), ({'gtp_type': 20}, <class 'scapy.contrib.gtp.GTPDeletePDPContextRequest'>), ({'gtp_type': 21}, <class 'scapy.contrib.gtp.GTPDeletePDPContextResponse'>), ({'gtp_type': 27}, <class 'scapy.contrib.gtp.GTPPDUNotificationRequest'>), ({'gtp_type': 31, 'S': 1}, <class 'scapy.contrib.gtp.GTPSupportedExtensionHeadersNotification'>), ({'next_ex': 64, 'E': 1}, <class 'scapy.contrib.gtp.GTP_UDPPort_ExtensionHeader'>), ({'next_ex': 192, 'E': 1}, <class 'scapy.contrib.gtp.GTP_PDCP_PDU_ExtensionHeader'>), ({'gtp_type': 26, 'S': 1}, <class 'scapy.contrib.gtp.GTPErrorIndication'>)]
class scapy.contrib.gtp.GTPmorethan1500

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.GTPmorethan1500'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GTPmorethan1500).IE_Cause>, <Field (GTPmorethan1500).IE>]
class scapy.contrib.gtp.IE_APNRestriction

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_APNRestriction'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_APNRestriction).ietype>, <Field (IE_APNRestriction).length>, <Field (IE_APNRestriction).restriction_type_value>]
class scapy.contrib.gtp.IE_AccessPointName

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_AccessPointName'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_AccessPointName).ietype>, <Field (IE_AccessPointName).length>, <Field (IE_AccessPointName).APN>]
post_build(p, pay)

DEV: called right after the current layer is build.

Parameters:
  • pkt (str) – the current packet (build by self_buil function)
  • pay (str) – the packet payload (build by do_build_payload function)
Returns:

a string of the packet with the payload

class scapy.contrib.gtp.IE_Base

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
extract_padding(pkt)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
class scapy.contrib.gtp.IE_BearerControlMode

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_BearerControlMode'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_BearerControlMode).ietype>, <Field (IE_BearerControlMode).length>, <Field (IE_BearerControlMode).bearer_control_mode>]
class scapy.contrib.gtp.IE_Cause

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_Cause'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_Cause).ietype>, <Field (IE_Cause).CauseValue>]
class scapy.contrib.gtp.IE_CharginGatewayAddress

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_CharginGatewayAddress'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_CharginGatewayAddress).ietype>, <Field (IE_CharginGatewayAddress).length>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
class scapy.contrib.gtp.IE_ChargingCharacteristics

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_ChargingCharacteristics'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_ChargingCharacteristics).ietype>, <Field (IE_ChargingCharacteristics).Ch_ChSpare>, <Field (IE_ChargingCharacteristics).normal_charging>, <Field (IE_ChargingCharacteristics).prepaid_charging>, <Field (IE_ChargingCharacteristics).flat_rate_charging>, <Field (IE_ChargingCharacteristics).hot_billing_charging>, <Field (IE_ChargingCharacteristics).Ch_ChReserved>]
class scapy.contrib.gtp.IE_ChargingId

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_ChargingId'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_ChargingId).ietype>, <Field (IE_ChargingId).Charging_id>]
class scapy.contrib.gtp.IE_CommonFlags

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_CommonFlags'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_CommonFlags).ietype>, <Field (IE_CommonFlags).length>, <Field (IE_CommonFlags).dual_addr_bearer_fl>, <Field (IE_CommonFlags).upgrade_qos_supported>, <Field (IE_CommonFlags).nrsn>, <Field (IE_CommonFlags).no_qos_nego>, <Field (IE_CommonFlags).mbms_cnting_info>, <Field (IE_CommonFlags).ran_procedure_ready>, <Field (IE_CommonFlags).mbms_service_type>, <Field (IE_CommonFlags).prohibit_payload_compression>]
class scapy.contrib.gtp.IE_DirectTunnelFlags

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_DirectTunnelFlags'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_DirectTunnelFlags).ietype>, <Field (IE_DirectTunnelFlags).length>, <Field (IE_DirectTunnelFlags).Spare>, <Field (IE_DirectTunnelFlags).Spare>, <Field (IE_DirectTunnelFlags).Spare>, <Field (IE_DirectTunnelFlags).Spare>, <Field (IE_DirectTunnelFlags).Spare>, <Field (IE_DirectTunnelFlags).EI>, <Field (IE_DirectTunnelFlags).GCSI>, <Field (IE_DirectTunnelFlags).DTI>]
scapy.contrib.gtp.IE_Dispatcher(s)

Choose the correct Information Element class.

class scapy.contrib.gtp.IE_EndUserAddress

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_EndUserAddress'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_EndUserAddress).ietype>, <Field (IE_EndUserAddress).length>, <Field (IE_EndUserAddress).SPARE>, <Field (IE_EndUserAddress).PDPTypeOrganization>, <Field (IE_EndUserAddress).PDPTypeNumber>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
class scapy.contrib.gtp.IE_EvolvedAllocationRetentionPriority

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_EvolvedAllocationRetentionPriority'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_EvolvedAllocationRetentionPriority).ietype>, <Field (IE_EvolvedAllocationRetentionPriority).length>, <Field (IE_EvolvedAllocationRetentionPriority).Spare>, <Field (IE_EvolvedAllocationRetentionPriority).PCI>, <Field (IE_EvolvedAllocationRetentionPriority).PL>, <Field (IE_EvolvedAllocationRetentionPriority).Spare>, <Field (IE_EvolvedAllocationRetentionPriority).PVI>]
class scapy.contrib.gtp.IE_ExtensionHeaderList

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_ExtensionHeaderList'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_ExtensionHeaderList).ietype>, <Field (IE_ExtensionHeaderList).length>, <Field (IE_ExtensionHeaderList).extension_headers>]
class scapy.contrib.gtp.IE_GSNAddress

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_GSNAddress'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_GSNAddress).ietype>, <Field (IE_GSNAddress).length>, <Field (IE_GSNAddress).address>]
class scapy.contrib.gtp.IE_IMEI

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_IMEI'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_IMEI).ietype>, <Field (IE_IMEI).length>, <Field (IE_IMEI).IMEI>]
class scapy.contrib.gtp.IE_IMSI

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_IMSI'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_IMSI).ietype>, <Field (IE_IMSI).imsi>]
class scapy.contrib.gtp.IE_MSInfoChangeReportingAction

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_MSInfoChangeReportingAction'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_MSInfoChangeReportingAction).ietype>, <Field (IE_MSInfoChangeReportingAction).length>, <Field (IE_MSInfoChangeReportingAction).Action>]
class scapy.contrib.gtp.IE_MSInternationalNumber

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_MSInternationalNumber'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_MSInternationalNumber).ietype>, <Field (IE_MSInternationalNumber).length>, <Field (IE_MSInternationalNumber).flags>, <Field (IE_MSInternationalNumber).digits>]
class scapy.contrib.gtp.IE_MSTimeZone

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_MSTimeZone'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_MSTimeZone).ietype>, <Field (IE_MSTimeZone).length>, <Field (IE_MSTimeZone).timezone>, <Field (IE_MSTimeZone).Spare>, <Field (IE_MSTimeZone).Spare>, <Field (IE_MSTimeZone).Spare>, <Field (IE_MSTimeZone).Spare>, <Field (IE_MSTimeZone).Spare>, <Field (IE_MSTimeZone).Spare>, <Field (IE_MSTimeZone).daylight_saving_time>]
class scapy.contrib.gtp.IE_NSAPI

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_NSAPI'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_NSAPI).ietype>, <Field (IE_NSAPI).sparebits>, <Field (IE_NSAPI).NSAPI>]
class scapy.contrib.gtp.IE_NotImplementedTLV

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.gtp.IE_NotImplementedTLV'>, <class 'scapy.packet.Packet'>]
extract_padding(pkt)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (IE_NotImplementedTLV).ietype>, <Field (IE_NotImplementedTLV).length>, <Field (IE_NotImplementedTLV).data>]
class scapy.contrib.gtp.IE_PrivateExtension

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_PrivateExtension'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_PrivateExtension).ietype>, <Field (IE_PrivateExtension).length>, <Field (IE_PrivateExtension).extension identifier>, <Field (IE_PrivateExtension).extention_value>]
class scapy.contrib.gtp.IE_ProtocolConfigurationOptions

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_ProtocolConfigurationOptions'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_ProtocolConfigurationOptions).ietype>, <Field (IE_ProtocolConfigurationOptions).length>, <Field (IE_ProtocolConfigurationOptions).Protocol_Configuration>]
class scapy.contrib.gtp.IE_QoS

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_QoS'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_QoS).ietype>, <Field (IE_QoS).length>, <Field (IE_QoS).allocation_retention_prioiry>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
class scapy.contrib.gtp.IE_RATType

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_RATType'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_RATType).ietype>, <Field (IE_RATType).length>, <Field (IE_RATType).RAT_Type>]
class scapy.contrib.gtp.IE_Recovery

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_Recovery'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_Recovery).ietype>, <Field (IE_Recovery).restart_counter>]
class scapy.contrib.gtp.IE_ReorderingRequired

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_ReorderingRequired'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_ReorderingRequired).ietype>, <Field (IE_ReorderingRequired).reordering_required>]
class scapy.contrib.gtp.IE_Routing

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_Routing'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_Routing).ietype>, <Field (IE_Routing).MCC>, <Field (IE_Routing).MNC>, <Field (IE_Routing).LAC>, <Field (IE_Routing).RAC>]
class scapy.contrib.gtp.IE_SelectionMode

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_SelectionMode'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_SelectionMode).ietype>, <Field (IE_SelectionMode).SelectionMode>]
class scapy.contrib.gtp.IE_TEICP

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_TEICP'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_TEICP).ietype>, <Field (IE_TEICP).TEICI>]
class scapy.contrib.gtp.IE_TEIDI

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_TEIDI'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_TEIDI).ietype>, <Field (IE_TEIDI).TEIDI>]
class scapy.contrib.gtp.IE_Teardown

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_Teardown'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_Teardown).ietype>, <Field (IE_Teardown).indicator>]
class scapy.contrib.gtp.IE_TraceReference

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_TraceReference'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_TraceReference).ietype>, <Field (IE_TraceReference).Trace_reference>]
class scapy.contrib.gtp.IE_TraceType

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_TraceType'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_TraceType).ietype>, <Field (IE_TraceType).Trace_type>]
class scapy.contrib.gtp.IE_UserLocationInformation

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.IE_UserLocationInformation'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IE_UserLocationInformation).ietype>, <Field (IE_UserLocationInformation).length>, <Field (IE_UserLocationInformation).type>, <Field (IE_UserLocationInformation).MCC>, <Field (IE_UserLocationInformation).MNC>, <Field (IE_UserLocationInformation).LAC>, <Field (IE_UserLocationInformation).SAC>]
class scapy.contrib.gtp.QoS_Profile

Bases: scapy.contrib.gtp.IE_Base

aliastypes = [<class 'scapy.contrib.gtp.QoS_Profile'>, <class 'scapy.contrib.gtp.IE_Base'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (QoS_Profile).qos_ei>, <Field (QoS_Profile).length>, <Field (QoS_Profile).spare>, <Field (QoS_Profile).delay_class>, <Field (QoS_Profile).reliability_class>, <Field (QoS_Profile).peak_troughput>, <Field (QoS_Profile).spare>, <Field (QoS_Profile).precedence_class>, <Field (QoS_Profile).spare>, <Field (QoS_Profile).mean_troughput>, <Field (QoS_Profile).traffic_class>, <Field (QoS_Profile).delivery_order>, <Field (QoS_Profile).delivery_of_err_sdu>, <Field (QoS_Profile).max_sdu_size>, <Field (QoS_Profile).max_bitrate_up>, <Field (QoS_Profile).max_bitrate_down>, <Field (QoS_Profile).redidual_ber>, <Field (QoS_Profile).sdu_err_ratio>, <Field (QoS_Profile).transfer_delay>, <Field (QoS_Profile).traffic_handling_prio>, <Field (QoS_Profile).guaranteed_bit_rate_up>, <Field (QoS_Profile).guaranteed_bit_rate_down>]
class scapy.contrib.gtp.TBCDByteField(name, default, length=None, length_from=None)

Bases: scapy.fields.StrFixedLenField

i2h(pkt, val)

Convert internal value to human value

i2m(pkt, val)

Convert internal value to machine value

m2i(pkt, val)

Convert machine value to internal value