| 583 | |
| 584 | |
| 585 | class 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 | |
| 607 | class APNStrLenField(StrLenField): |
no test coverage detected
searching dependent graphs…