MCPcopy Create free account
hub / github.com/secdev/scapy / IE_EndUserAddress

Class IE_EndUserAddress

scapy/contrib/gtp.py:585–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583
584
585class IE_EndUserAddress(IE_Base):
586 # Supply protocol specific information of the external packet
587 name = "End User Address"
588 fields_desc = [ByteEnumField("ietype", 128, IEType),
589 # data network accessed by the GGPRS subscribers.
590 # - Request
591 # 1 Type (1byte)
592 # 2-3 Length (2bytes) - value 2
593 # 4 Spare + PDP Type Organization
594 # 5 PDP Type Number
595 # - Response
596 # 6-n PDP Address
597 ShortField("length", 2),
598 BitField("SPARE", 15, 4),
599 BitField("PDPTypeOrganization", 1, 4),
600 XByteField("PDPTypeNumber", None),
601 ConditionalField(IPField("PDPAddress", RandIP()),
602 lambda pkt: pkt.length == 6 or pkt.length == 22), # noqa: E501
603 ConditionalField(IP6Field("IPv6_PDPAddress", '::1'),
604 lambda pkt: pkt.length == 18 or pkt.length == 22)] # noqa: E501
605
606
607class APNStrLenField(StrLenField):

Callers 1

Calls 8

ByteEnumFieldClass · 0.90
ShortFieldClass · 0.90
BitFieldClass · 0.90
XByteFieldClass · 0.90
ConditionalFieldClass · 0.90
IPFieldClass · 0.90
RandIPClass · 0.90
IP6FieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…