Skip to content

contrib/pfcp: PFCPSEReq-Flags (IE type 186) is not dissected #5283

Open

Description

@gomaja

Scapy does not dissect the PFCPSEReq-Flags IE (type 186), which a PFCP Session Establishment Request carries to signal a session restoration (RESTI). There is no class for it and no entry in the ietypecls table (scapy/contrib/pfcp.py:2274), so the IE decodes as IE_NotImplemented and its flags cannot be built or read through a typed layer. IE_PFCPSMReqFlags (scapy/contrib/pfcp.py:1110, type 49) is the different PFCPSMReq-Flags IE of the Session Modification Request.

Reproduced on 2.8.0 and on master (7a9fde6):

from scapy.contrib import pfcp

wire = bytes(pfcp.IE_NotImplemented(ietype=186, data=bytes([1])))
print(pfcp.ietypecls.get(186))                      # None
print(type(pfcp.IE_Dispatcher(wire)).__name__)      # IE_NotImplemented

TS 29.244 V20.1.0 clause 8.2.136 defines PFCPSEReq-Flags (type 186, extendable): octet 5 bit 1 RESTI (Restoration Indication), bit 2 SUMPC, bit 3 HRSBOM, bit 4 EPRI, bits 5 to 8 spare. Table 7.5.2.1-1 lists it as a conditional IE of the PFCP Session Establishment Request, included whenever at least one of its flags is set.

Expected: an IE_PFCPSEReqFlags class with those four flags, registered in ietypecls under 186, so that the IE above decodes with RESTI set and can be built.

Activity

  1. Shellghostt commented on Nov 12, 2026

    @Shellghostt

    I am working on this. I will add an IE_PFCPSEReqFlags class with RESTI, SUMPC, HRSBOM and EPRI in octet 5, register it as type 186 in ietypecls, and add a UTScapy case that dissects 00ba00010f and builds 00ba000101.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions