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

Class IE_AccessPointName

scapy/contrib/gtp.py:630–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629
630class IE_AccessPointName(IE_Base):
631 # Sent by SGSN or by GGSN as defined in 3GPP TS 23.060
632 name = "Access Point Name"
633 fields_desc = [ByteEnumField("ietype", 131, IEType),
634 ShortField("length", None),
635 APNStrLenField("APN", "nternet", length_from=lambda x: x.length)] # noqa: E501
636
637 def post_build(self, p, pay):
638 if self.length is None:
639 tmp_len = len(p) - 3
640 p = p[:2] + struct.pack("!B", tmp_len) + p[3:]
641 return p
642
643
644class IE_ProtocolConfigurationOptions(IE_Base):

Callers 1

Calls 3

ByteEnumFieldClass · 0.90
ShortFieldClass · 0.90
APNStrLenFieldClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…