| 628 | |
| 629 | |
| 630 | class 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 | |
| 644 | class IE_ProtocolConfigurationOptions(IE_Base): |
no test coverage detected
searching dependent graphs…