Documentation ¶
Overview ¶
Package message provides encoding/decoding feature of PFCP messages.
Index ¶
- Constants
- type AssociationReleaseRequest
- func (m *AssociationReleaseRequest) Marshal() ([]byte, error)
- func (m *AssociationReleaseRequest) MarshalLen() int
- func (m *AssociationReleaseRequest) MarshalTo(b []byte) error
- func (m *AssociationReleaseRequest) MessageTypeName() string
- func (m *AssociationReleaseRequest) SEID() uint64
- func (m *AssociationReleaseRequest) SetLength()
- func (m *AssociationReleaseRequest) UnmarshalBinary(b []byte) error
- type AssociationReleaseResponse
- func (m *AssociationReleaseResponse) Marshal() ([]byte, error)
- func (m *AssociationReleaseResponse) MarshalLen() int
- func (m *AssociationReleaseResponse) MarshalTo(b []byte) error
- func (m *AssociationReleaseResponse) MessageTypeName() string
- func (m *AssociationReleaseResponse) SEID() uint64
- func (m *AssociationReleaseResponse) SetLength()
- func (m *AssociationReleaseResponse) UnmarshalBinary(b []byte) error
- type AssociationSetupRequest
- func (m *AssociationSetupRequest) Marshal() ([]byte, error)
- func (m *AssociationSetupRequest) MarshalLen() int
- func (m *AssociationSetupRequest) MarshalTo(b []byte) error
- func (m *AssociationSetupRequest) MessageTypeName() string
- func (m *AssociationSetupRequest) SEID() uint64
- func (m *AssociationSetupRequest) SetLength()
- func (m *AssociationSetupRequest) UnmarshalBinary(b []byte) error
- type AssociationSetupResponse
- func (m *AssociationSetupResponse) Marshal() ([]byte, error)
- func (m *AssociationSetupResponse) MarshalLen() int
- func (m *AssociationSetupResponse) MarshalTo(b []byte) error
- func (m *AssociationSetupResponse) MessageTypeName() string
- func (m *AssociationSetupResponse) SEID() uint64
- func (m *AssociationSetupResponse) SetLength()
- func (m *AssociationSetupResponse) UnmarshalBinary(b []byte) error
- type AssociationUpdateRequest
- func (m *AssociationUpdateRequest) Marshal() ([]byte, error)
- func (m *AssociationUpdateRequest) MarshalLen() int
- func (m *AssociationUpdateRequest) MarshalTo(b []byte) error
- func (m *AssociationUpdateRequest) MessageTypeName() string
- func (m *AssociationUpdateRequest) SEID() uint64
- func (m *AssociationUpdateRequest) SetLength()
- func (m *AssociationUpdateRequest) UnmarshalBinary(b []byte) error
- type AssociationUpdateResponse
- func (m *AssociationUpdateResponse) Marshal() ([]byte, error)
- func (m *AssociationUpdateResponse) MarshalLen() int
- func (m *AssociationUpdateResponse) MarshalTo(b []byte) error
- func (m *AssociationUpdateResponse) MessageTypeName() string
- func (m *AssociationUpdateResponse) SEID() uint64
- func (m *AssociationUpdateResponse) SetLength()
- func (m *AssociationUpdateResponse) UnmarshalBinary(b []byte) error
- type Generic
- func (m *Generic) AddIE(ies ...*ie.IE)
- func (m *Generic) Marshal() ([]byte, error)
- func (m *Generic) MarshalLen() int
- func (m *Generic) MarshalTo(b []byte) error
- func (m *Generic) MessageTypeName() string
- func (m *Generic) SEID() uint64
- func (m *Generic) SetLength()
- func (m *Generic) UnmarshalBinary(b []byte) error
- type Header
- func NewHeader(ver, fo, mp, s, mtype uint8, seid uint64, seq uint32, pri uint8, ...) *Header
- func NewHeaderNodeRelated(ver, mtype uint8, seq uint32, payload []byte) *Header
- func NewHeaderSessionRelated(ver, fo, mp, s, mtype uint8, seid uint64, seq uint32, pri uint8, ...) *Header
- func ParseHeader(b []byte) (*Header, error)
- func (h *Header) HasFO() bool
- func (h *Header) HasMP() bool
- func (h *Header) HasSEID() bool
- func (h *Header) MP() uint8
- func (h *Header) Marshal() ([]byte, error)
- func (h *Header) MarshalLen() int
- func (h *Header) MarshalTo(b []byte) error
- func (h *Header) MessageType() uint8
- func (h *Header) Sequence() uint32
- func (h *Header) SetLength()
- func (h *Header) SetMP(mp uint8)
- func (h *Header) SetSEID(seid uint64)
- func (h *Header) SetSequenceNumber(seq uint32)
- func (h *Header) String() string
- func (h *Header) UnmarshalBinary(b []byte) error
- func (h *Header) Version() int
- type HeartbeatRequest
- func (m *HeartbeatRequest) Marshal() ([]byte, error)
- func (m *HeartbeatRequest) MarshalLen() int
- func (m *HeartbeatRequest) MarshalTo(b []byte) error
- func (m *HeartbeatRequest) MessageTypeName() string
- func (m *HeartbeatRequest) SEID() uint64
- func (m *HeartbeatRequest) SetLength()
- func (m *HeartbeatRequest) UnmarshalBinary(b []byte) error
- type HeartbeatResponse
- func (m *HeartbeatResponse) Marshal() ([]byte, error)
- func (m *HeartbeatResponse) MarshalLen() int
- func (m *HeartbeatResponse) MarshalTo(b []byte) error
- func (m *HeartbeatResponse) MessageTypeName() string
- func (m *HeartbeatResponse) SEID() uint64
- func (m *HeartbeatResponse) SetLength()
- func (m *HeartbeatResponse) UnmarshalBinary(b []byte) error
- type Message
- type NodeReportRequest
- func (m *NodeReportRequest) Marshal() ([]byte, error)
- func (m *NodeReportRequest) MarshalLen() int
- func (m *NodeReportRequest) MarshalTo(b []byte) error
- func (m *NodeReportRequest) MessageTypeName() string
- func (m *NodeReportRequest) SEID() uint64
- func (m *NodeReportRequest) SetLength()
- func (m *NodeReportRequest) UnmarshalBinary(b []byte) error
- type NodeReportResponse
- func (m *NodeReportResponse) Marshal() ([]byte, error)
- func (m *NodeReportResponse) MarshalLen() int
- func (m *NodeReportResponse) MarshalTo(b []byte) error
- func (m *NodeReportResponse) MessageTypeName() string
- func (m *NodeReportResponse) SEID() uint64
- func (m *NodeReportResponse) SetLength()
- func (m *NodeReportResponse) UnmarshalBinary(b []byte) error
- type PFDManagementRequest
- func (m *PFDManagementRequest) Marshal() ([]byte, error)
- func (m *PFDManagementRequest) MarshalLen() int
- func (m *PFDManagementRequest) MarshalTo(b []byte) error
- func (m *PFDManagementRequest) MessageTypeName() string
- func (m *PFDManagementRequest) SEID() uint64
- func (m *PFDManagementRequest) SetLength()
- func (m *PFDManagementRequest) UnmarshalBinary(b []byte) error
- type PFDManagementResponse
- func (m *PFDManagementResponse) Marshal() ([]byte, error)
- func (m *PFDManagementResponse) MarshalLen() int
- func (m *PFDManagementResponse) MarshalTo(b []byte) error
- func (m *PFDManagementResponse) MessageTypeName() string
- func (m *PFDManagementResponse) SEID() uint64
- func (m *PFDManagementResponse) SetLength()
- func (m *PFDManagementResponse) UnmarshalBinary(b []byte) error
- type SessionDeletionRequest
- func (m *SessionDeletionRequest) Marshal() ([]byte, error)
- func (m *SessionDeletionRequest) MarshalLen() int
- func (m *SessionDeletionRequest) MarshalTo(b []byte) error
- func (m *SessionDeletionRequest) MessageTypeName() string
- func (m *SessionDeletionRequest) SEID() uint64
- func (m *SessionDeletionRequest) SetLength()
- func (m *SessionDeletionRequest) UnmarshalBinary(b []byte) error
- type SessionDeletionResponse
- func (m *SessionDeletionResponse) Marshal() ([]byte, error)
- func (m *SessionDeletionResponse) MarshalLen() int
- func (m *SessionDeletionResponse) MarshalTo(b []byte) error
- func (m *SessionDeletionResponse) MessageTypeName() string
- func (m *SessionDeletionResponse) SEID() uint64
- func (m *SessionDeletionResponse) SetLength()
- func (m *SessionDeletionResponse) UnmarshalBinary(b []byte) error
- type SessionEstablishmentRequest
- func (m *SessionEstablishmentRequest) Marshal() ([]byte, error)
- func (m *SessionEstablishmentRequest) MarshalLen() int
- func (m *SessionEstablishmentRequest) MarshalTo(b []byte) error
- func (m *SessionEstablishmentRequest) MessageTypeName() string
- func (m *SessionEstablishmentRequest) SEID() uint64
- func (m *SessionEstablishmentRequest) SetLength()
- func (m *SessionEstablishmentRequest) UnmarshalBinary(b []byte) error
- type SessionEstablishmentResponse
- func (m *SessionEstablishmentResponse) Marshal() ([]byte, error)
- func (m *SessionEstablishmentResponse) MarshalLen() int
- func (m *SessionEstablishmentResponse) MarshalTo(b []byte) error
- func (m *SessionEstablishmentResponse) MessageTypeName() string
- func (m *SessionEstablishmentResponse) SEID() uint64
- func (m *SessionEstablishmentResponse) SetLength()
- func (m *SessionEstablishmentResponse) UnmarshalBinary(b []byte) error
- type SessionModificationRequest
- func (m *SessionModificationRequest) Marshal() ([]byte, error)
- func (m *SessionModificationRequest) MarshalLen() int
- func (m *SessionModificationRequest) MarshalTo(b []byte) error
- func (m *SessionModificationRequest) MessageTypeName() string
- func (m *SessionModificationRequest) SEID() uint64
- func (m *SessionModificationRequest) SetLength()
- func (m *SessionModificationRequest) UnmarshalBinary(b []byte) error
- type SessionModificationResponse
- func (m *SessionModificationResponse) Marshal() ([]byte, error)
- func (m *SessionModificationResponse) MarshalLen() int
- func (m *SessionModificationResponse) MarshalTo(b []byte) error
- func (m *SessionModificationResponse) MessageTypeName() string
- func (m *SessionModificationResponse) SEID() uint64
- func (m *SessionModificationResponse) SetLength()
- func (m *SessionModificationResponse) UnmarshalBinary(b []byte) error
- type SessionReportRequest
- func (m *SessionReportRequest) Marshal() ([]byte, error)
- func (m *SessionReportRequest) MarshalLen() int
- func (m *SessionReportRequest) MarshalTo(b []byte) error
- func (m *SessionReportRequest) MessageTypeName() string
- func (m *SessionReportRequest) SEID() uint64
- func (m *SessionReportRequest) SetLength()
- func (m *SessionReportRequest) UnmarshalBinary(b []byte) error
- type SessionReportResponse
- func (m *SessionReportResponse) Marshal() ([]byte, error)
- func (m *SessionReportResponse) MarshalLen() int
- func (m *SessionReportResponse) MarshalTo(b []byte) error
- func (m *SessionReportResponse) MessageTypeName() string
- func (m *SessionReportResponse) SEID() uint64
- func (m *SessionReportResponse) SetLength()
- func (m *SessionReportResponse) UnmarshalBinary(b []byte) error
- type SessionSetDeletionRequest
- func (m *SessionSetDeletionRequest) Marshal() ([]byte, error)
- func (m *SessionSetDeletionRequest) MarshalLen() int
- func (m *SessionSetDeletionRequest) MarshalTo(b []byte) error
- func (m *SessionSetDeletionRequest) MessageTypeName() string
- func (m *SessionSetDeletionRequest) SEID() uint64
- func (m *SessionSetDeletionRequest) SetLength()
- func (m *SessionSetDeletionRequest) UnmarshalBinary(b []byte) error
- type SessionSetDeletionResponse
- func (m *SessionSetDeletionResponse) Marshal() ([]byte, error)
- func (m *SessionSetDeletionResponse) MarshalLen() int
- func (m *SessionSetDeletionResponse) MarshalTo(b []byte) error
- func (m *SessionSetDeletionResponse) MessageTypeName() string
- func (m *SessionSetDeletionResponse) SEID() uint64
- func (m *SessionSetDeletionResponse) SetLength()
- func (m *SessionSetDeletionResponse) UnmarshalBinary(b []byte) error
- type VersionNotSupportedResponse
- func (m *VersionNotSupportedResponse) Marshal() ([]byte, error)
- func (m *VersionNotSupportedResponse) MarshalLen() int
- func (m *VersionNotSupportedResponse) MarshalTo(b []byte) error
- func (m *VersionNotSupportedResponse) MessageTypeName() string
- func (m *VersionNotSupportedResponse) SEID() uint64
- func (m *VersionNotSupportedResponse) SetLength()
- func (m *VersionNotSupportedResponse) UnmarshalBinary(b []byte) error
Constants ¶
const ( MsgTypeHeartbeatRequest uint8 = 1 MsgTypeHeartbeatResponse uint8 = 2 MsgTypePFDManagementRequest uint8 = 3 MsgTypePFDManagementResponse uint8 = 4 MsgTypeAssociationSetupRequest uint8 = 5 MsgTypeAssociationSetupResponse uint8 = 6 MsgTypeAssociationUpdateRequest uint8 = 7 MsgTypeAssociationUpdateResponse uint8 = 8 MsgTypeAssociationReleaseRequest uint8 = 9 MsgTypeAssociationReleaseResponse uint8 = 10 MsgTypeVersionNotSupportedResponse uint8 = 11 MsgTypeNodeReportRequest uint8 = 12 MsgTypeNodeReportResponse uint8 = 13 MsgTypeSessionSetDeletionRequest uint8 = 14 MsgTypeSessionSetDeletionResponse uint8 = 15 MsgTypeSessionEstablishmentRequest uint8 = 50 MsgTypeSessionEstablishmentResponse uint8 = 51 MsgTypeSessionModificationRequest uint8 = 52 MsgTypeSessionModificationResponse uint8 = 53 MsgTypeSessionDeletionRequest uint8 = 54 MsgTypeSessionDeletionResponse uint8 = 55 MsgTypeSessionReportRequest uint8 = 56 MsgTypeSessionReportResponse uint8 = 57 )
MessageType definitions.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociationReleaseRequest ¶
AssociationReleaseRequest is a AssociationReleaseRequest formed PFCP Header and its IEs above.
func NewAssociationReleaseRequest ¶
NewAssociationReleaseRequest creates a new AssociationReleaseRequest.
func ParseAssociationReleaseRequest ¶
func ParseAssociationReleaseRequest(b []byte) (*AssociationReleaseRequest, error)
ParseAssociationReleaseRequest decodes a given byte sequence as a AssociationReleaseRequest.
func (*AssociationReleaseRequest) Marshal ¶
func (m *AssociationReleaseRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a AssociationReleaseRequest.
func (*AssociationReleaseRequest) MarshalLen ¶
func (m *AssociationReleaseRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*AssociationReleaseRequest) MarshalTo ¶
func (m *AssociationReleaseRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*AssociationReleaseRequest) MessageTypeName ¶
func (m *AssociationReleaseRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*AssociationReleaseRequest) SEID ¶
func (m *AssociationReleaseRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*AssociationReleaseRequest) SetLength ¶
func (m *AssociationReleaseRequest) SetLength()
SetLength sets the length in Length field.
func (*AssociationReleaseRequest) UnmarshalBinary ¶
func (m *AssociationReleaseRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a AssociationReleaseRequest.
type AssociationReleaseResponse ¶
AssociationReleaseResponse is a AssociationReleaseResponse formed PFCP Header and its IEs above.
func NewAssociationReleaseResponse ¶
func NewAssociationReleaseResponse(seq uint32, id, cause *ie.IE, ies ...*ie.IE) *AssociationReleaseResponse
NewAssociationReleaseResponse creates a new AssociationReleaseResponse.
func ParseAssociationReleaseResponse ¶
func ParseAssociationReleaseResponse(b []byte) (*AssociationReleaseResponse, error)
ParseAssociationReleaseResponse decodes a given byte sequence as a AssociationReleaseResponse.
func (*AssociationReleaseResponse) Marshal ¶
func (m *AssociationReleaseResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a AssociationReleaseResponse.
func (*AssociationReleaseResponse) MarshalLen ¶
func (m *AssociationReleaseResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*AssociationReleaseResponse) MarshalTo ¶
func (m *AssociationReleaseResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*AssociationReleaseResponse) MessageTypeName ¶
func (m *AssociationReleaseResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*AssociationReleaseResponse) SEID ¶
func (m *AssociationReleaseResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*AssociationReleaseResponse) SetLength ¶
func (m *AssociationReleaseResponse) SetLength()
SetLength sets the length in Length field.
func (*AssociationReleaseResponse) UnmarshalBinary ¶
func (m *AssociationReleaseResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a AssociationReleaseResponse.
type AssociationSetupRequest ¶
type AssociationSetupRequest struct { *Header NodeID *ie.IE RecoveryTimeStamp *ie.IE UPFunctionFeatures *ie.IE CPFunctionFeatures *ie.IE UserPlaneIPResourceInformation []*ie.IE AlternativeSMFIPAddress []*ie.IE SMFSetID *ie.IE PFCPSessionRetentionInformation *ie.IE UEIPAddressPoolInformation []*ie.IE GTPUPathQoSControlInformation []*ie.IE ClockDriftControlInformation []*ie.IE UPFInstanceID *ie.IE PFCPASReqFlags *ie.IE IEs []*ie.IE }
AssociationSetupRequest is a AssociationSetupRequest formed PFCP Header and its IEs above.
func NewAssociationSetupRequest ¶
func NewAssociationSetupRequest(seq uint32, ies ...*ie.IE) *AssociationSetupRequest
NewAssociationSetupRequest creates a new AssociationSetupRequest.
func ParseAssociationSetupRequest ¶
func ParseAssociationSetupRequest(b []byte) (*AssociationSetupRequest, error)
ParseAssociationSetupRequest decodes a given byte sequence as a AssociationSetupRequest.
func (*AssociationSetupRequest) Marshal ¶
func (m *AssociationSetupRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a AssociationSetupRequest.
func (*AssociationSetupRequest) MarshalLen ¶
func (m *AssociationSetupRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*AssociationSetupRequest) MarshalTo ¶
func (m *AssociationSetupRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*AssociationSetupRequest) MessageTypeName ¶
func (m *AssociationSetupRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*AssociationSetupRequest) SEID ¶
func (m *AssociationSetupRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*AssociationSetupRequest) SetLength ¶
func (m *AssociationSetupRequest) SetLength()
SetLength sets the length in Length field.
func (*AssociationSetupRequest) UnmarshalBinary ¶
func (m *AssociationSetupRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a AssociationSetupRequest.
type AssociationSetupResponse ¶
type AssociationSetupResponse struct { *Header NodeID *ie.IE Cause *ie.IE RecoveryTimeStamp *ie.IE UPFunctionFeatures *ie.IE CPFunctionFeatures *ie.IE UserPlaneIPResourceInformation []*ie.IE AlternativeSMFIPAddress []*ie.IE PFCPASRspFlags *ie.IE UEIPAddressPoolInformation []*ie.IE GTPUPathQoSControlInformation []*ie.IE ClockDriftControlInformation []*ie.IE UPFInstanceID *ie.IE IEs []*ie.IE }
AssociationSetupResponse is a AssociationSetupResponse formed PFCP Header and its IEs above.
func NewAssociationSetupResponse ¶
func NewAssociationSetupResponse(seq uint32, ies ...*ie.IE) *AssociationSetupResponse
NewAssociationSetupResponse creates a new AssociationSetupResponse.
func ParseAssociationSetupResponse ¶
func ParseAssociationSetupResponse(b []byte) (*AssociationSetupResponse, error)
ParseAssociationSetupResponse decodes a given byte sequence as a AssociationSetupResponse.
func (*AssociationSetupResponse) Marshal ¶
func (m *AssociationSetupResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a AssociationSetupResponse.
func (*AssociationSetupResponse) MarshalLen ¶
func (m *AssociationSetupResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*AssociationSetupResponse) MarshalTo ¶
func (m *AssociationSetupResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*AssociationSetupResponse) MessageTypeName ¶
func (m *AssociationSetupResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*AssociationSetupResponse) SEID ¶
func (m *AssociationSetupResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*AssociationSetupResponse) SetLength ¶
func (m *AssociationSetupResponse) SetLength()
SetLength sets the length in Length field.
func (*AssociationSetupResponse) UnmarshalBinary ¶
func (m *AssociationSetupResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a AssociationSetupResponse.
type AssociationUpdateRequest ¶
type AssociationUpdateRequest struct { *Header NodeID *ie.IE UPFunctionFeatures *ie.IE CPFunctionFeatures *ie.IE PFCPAssociationReleaseRequest *ie.IE GracefulReleasePeriod *ie.IE PFCPAUReqFlags *ie.IE AlternativeSMFIPAddress []*ie.IE ClockDriftControlInformation []*ie.IE UEIPAddressPoolInformation []*ie.IE GTPUPathQoSControlInformation []*ie.IE UEIPAddressUsageInformation []*ie.IE IEs []*ie.IE }
AssociationUpdateRequest is a AssociationUpdateRequest formed PFCP Header and its IEs above.
func NewAssociationUpdateRequest ¶
func NewAssociationUpdateRequest(seq uint32, ies ...*ie.IE) *AssociationUpdateRequest
NewAssociationUpdateRequest creates a new AssociationUpdateRequest.
func ParseAssociationUpdateRequest ¶
func ParseAssociationUpdateRequest(b []byte) (*AssociationUpdateRequest, error)
ParseAssociationUpdateRequest decodes a given byte sequence as a AssociationUpdateRequest.
func (*AssociationUpdateRequest) Marshal ¶
func (m *AssociationUpdateRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a AssociationUpdateRequest.
func (*AssociationUpdateRequest) MarshalLen ¶
func (m *AssociationUpdateRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*AssociationUpdateRequest) MarshalTo ¶
func (m *AssociationUpdateRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*AssociationUpdateRequest) MessageTypeName ¶
func (m *AssociationUpdateRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*AssociationUpdateRequest) SEID ¶
func (m *AssociationUpdateRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*AssociationUpdateRequest) SetLength ¶
func (m *AssociationUpdateRequest) SetLength()
SetLength sets the length in Length field.
func (*AssociationUpdateRequest) UnmarshalBinary ¶
func (m *AssociationUpdateRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a AssociationUpdateRequest.
type AssociationUpdateResponse ¶
type AssociationUpdateResponse struct { *Header NodeID *ie.IE Cause *ie.IE UPFunctionFeatures *ie.IE CPFunctionFeatures *ie.IE IEs []*ie.IE }
AssociationUpdateResponse is a AssociationUpdateResponse formed PFCP Header and its IEs above.
func NewAssociationUpdateResponse ¶
func NewAssociationUpdateResponse(seq uint32, ies ...*ie.IE) *AssociationUpdateResponse
NewAssociationUpdateResponse creates a new AssociationUpdateResponse.
func ParseAssociationUpdateResponse ¶
func ParseAssociationUpdateResponse(b []byte) (*AssociationUpdateResponse, error)
ParseAssociationUpdateResponse decodes a given byte sequence as a AssociationUpdateResponse.
func (*AssociationUpdateResponse) Marshal ¶
func (m *AssociationUpdateResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a AssociationUpdateResponse.
func (*AssociationUpdateResponse) MarshalLen ¶
func (m *AssociationUpdateResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*AssociationUpdateResponse) MarshalTo ¶
func (m *AssociationUpdateResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*AssociationUpdateResponse) MessageTypeName ¶
func (m *AssociationUpdateResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*AssociationUpdateResponse) SEID ¶
func (m *AssociationUpdateResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*AssociationUpdateResponse) SetLength ¶
func (m *AssociationUpdateResponse) SetLength()
SetLength sets the length in Length field.
func (*AssociationUpdateResponse) UnmarshalBinary ¶
func (m *AssociationUpdateResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a AssociationUpdateResponse.
type Generic ¶
Generic is a Generic formed PFCP Header and its IEs above.
func NewGeneric ¶
NewGeneric creates a new Generic.
func NewGenericWithoutSEID ¶
NewGenericWithoutSEID creates a new Generic.
func ParseGeneric ¶
ParseGeneric decodes a given byte sequence as a Generic.
func (*Generic) MarshalLen ¶
MarshalLen returns the serial length of Data.
func (*Generic) MessageTypeName ¶
MessageTypeName returns the name of protocol.
func (*Generic) SetLength ¶
func (m *Generic) SetLength()
SetLength sets the length in Length field.
func (*Generic) UnmarshalBinary ¶
UnmarshalBinary decodes a given byte sequence as a Generic.
type Header ¶
type Header struct { Flags uint8 // Version + FO, MP, S flags Type uint8 Length uint16 SEID uint64 SequenceNumber uint32 // 3 octets MessagePriority uint8 // half octet Payload []byte }
Header represents a PFCP header.
func NewHeader ¶
func NewHeader(ver, fo, mp, s, mtype uint8, seid uint64, seq uint32, pri uint8, payload []byte) *Header
NewHeader creates a new Header.
func NewHeaderNodeRelated ¶
NewHeaderNodeRelated creates a new Header for Node Related Messages.
func NewHeaderSessionRelated ¶
func NewHeaderSessionRelated(ver, fo, mp, s, mtype uint8, seid uint64, seq uint32, pri uint8, payload []byte) *Header
NewHeaderSessionRelated creates a new Header for Session Related Messages.
func ParseHeader ¶
ParseHeader decodes given byte sequence as a PFCP header.
func (*Header) MP ¶
MP returns the value of MessagePriority.
Note that this returns the value set in the field even if the MP Flag is not set to 1.
func (*Header) MarshalLen ¶
MarshalLen returns field length in integer.
func (*Header) MessageType ¶
MessageType returns the type of messagg.
func (*Header) SetMP ¶
SetMP sets the M Flag to 1 and puts the MessagePriority given into MessagePriority field.
func (*Header) SetSequenceNumber ¶
SetSequenceNumber sets the SequenceNumber in Header.
func (*Header) UnmarshalBinary ¶
UnmarshalBinary sets the values retrieved from byte sequence in PFCP header.
type HeartbeatRequest ¶
type HeartbeatRequest struct { *Header RecoveryTimeStamp *ie.IE SourceIPAddress *ie.IE IEs []*ie.IE }
HeartbeatRequest is a HeartbeatRequest formed PFCP Header and its IEs above.
func NewHeartbeatRequest ¶
NewHeartbeatRequest creates a new HeartbeatRequest.
func ParseHeartbeatRequest ¶
func ParseHeartbeatRequest(b []byte) (*HeartbeatRequest, error)
ParseHeartbeatRequest decodes a given byte sequence as a HeartbeatRequest.
func (*HeartbeatRequest) Marshal ¶
func (m *HeartbeatRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a HeartbeatRequest.
func (*HeartbeatRequest) MarshalLen ¶
func (m *HeartbeatRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*HeartbeatRequest) MarshalTo ¶
func (m *HeartbeatRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*HeartbeatRequest) MessageTypeName ¶
func (m *HeartbeatRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*HeartbeatRequest) SEID ¶
func (m *HeartbeatRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*HeartbeatRequest) SetLength ¶
func (m *HeartbeatRequest) SetLength()
SetLength sets the length in Length field.
func (*HeartbeatRequest) UnmarshalBinary ¶
func (m *HeartbeatRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a HeartbeatRequest.
type HeartbeatResponse ¶
HeartbeatResponse is a HeartbeatResponse formed PFCP Header and its IEs above.
func NewHeartbeatResponse ¶
NewHeartbeatResponse creates a new HeartbeatResponse.
func ParseHeartbeatResponse ¶
func ParseHeartbeatResponse(b []byte) (*HeartbeatResponse, error)
ParseHeartbeatResponse decodes a given byte sequence as a HeartbeatResponse.
func (*HeartbeatResponse) Marshal ¶
func (m *HeartbeatResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a HeartbeatResponse.
func (*HeartbeatResponse) MarshalLen ¶
func (m *HeartbeatResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*HeartbeatResponse) MarshalTo ¶
func (m *HeartbeatResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*HeartbeatResponse) MessageTypeName ¶
func (m *HeartbeatResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*HeartbeatResponse) SEID ¶
func (m *HeartbeatResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*HeartbeatResponse) SetLength ¶
func (m *HeartbeatResponse) SetLength()
SetLength sets the length in Length field.
func (*HeartbeatResponse) UnmarshalBinary ¶
func (m *HeartbeatResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a HeartbeatResponse.
type Message ¶
type Message interface { MarshalTo([]byte) error UnmarshalBinary(b []byte) error MarshalLen() int MessageType() uint8 MessageTypeName() string Version() int SEID() uint64 Sequence() uint32 SetSequenceNumber(seq uint32) }
Message is an interface that defines PFCP messages.
type NodeReportRequest ¶
type NodeReportRequest struct { *Header NodeID *ie.IE NodeReportType *ie.IE UserPlanePathFailureReport *ie.IE UserPlanePathRecoveryReport *ie.IE ClockDriftReport []*ie.IE GTPUPathQoSReport []*ie.IE IEs []*ie.IE }
NodeReportRequest is a NodeReportRequest formed PFCP Header and its IEs above.
func NewNodeReportRequest ¶
func NewNodeReportRequest(seq uint32, ies ...*ie.IE) *NodeReportRequest
NewNodeReportRequest creates a new NodeReportRequest.
func ParseNodeReportRequest ¶
func ParseNodeReportRequest(b []byte) (*NodeReportRequest, error)
ParseNodeReportRequest decodes a given byte sequence as a NodeReportRequest.
func (*NodeReportRequest) Marshal ¶
func (m *NodeReportRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a NodeReportRequest.
func (*NodeReportRequest) MarshalLen ¶
func (m *NodeReportRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*NodeReportRequest) MarshalTo ¶
func (m *NodeReportRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*NodeReportRequest) MessageTypeName ¶
func (m *NodeReportRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*NodeReportRequest) SEID ¶
func (m *NodeReportRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*NodeReportRequest) SetLength ¶
func (m *NodeReportRequest) SetLength()
SetLength sets the length in Length field.
func (*NodeReportRequest) UnmarshalBinary ¶
func (m *NodeReportRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a NodeReportRequest.
type NodeReportResponse ¶
type NodeReportResponse struct { *Header NodeID *ie.IE Cause *ie.IE OffendingIE *ie.IE IEs []*ie.IE }
NodeReportResponse is a NodeReportResponse formed PFCP Header and its IEs above.
func NewNodeReportResponse ¶
func NewNodeReportResponse(seq uint32, id, cause, offending *ie.IE, ies ...*ie.IE) *NodeReportResponse
NewNodeReportResponse creates a new NodeReportResponse.
func ParseNodeReportResponse ¶
func ParseNodeReportResponse(b []byte) (*NodeReportResponse, error)
ParseNodeReportResponse decodes a given byte sequence as a NodeReportResponse.
func (*NodeReportResponse) Marshal ¶
func (m *NodeReportResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a NodeReportResponse.
func (*NodeReportResponse) MarshalLen ¶
func (m *NodeReportResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*NodeReportResponse) MarshalTo ¶
func (m *NodeReportResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*NodeReportResponse) MessageTypeName ¶
func (m *NodeReportResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*NodeReportResponse) SEID ¶
func (m *NodeReportResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*NodeReportResponse) SetLength ¶
func (m *NodeReportResponse) SetLength()
SetLength sets the length in Length field.
func (*NodeReportResponse) UnmarshalBinary ¶
func (m *NodeReportResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a NodeReportResponse.
type PFDManagementRequest ¶
PFDManagementRequest is a PFDManagementRequest formed PFCP Header and its IEs above.
func NewPFDManagementRequest ¶
func NewPFDManagementRequest(seq uint32, ies ...*ie.IE) *PFDManagementRequest
NewPFDManagementRequest creates a new PFDManagementRequest.
func ParsePFDManagementRequest ¶
func ParsePFDManagementRequest(b []byte) (*PFDManagementRequest, error)
ParsePFDManagementRequest decodes a given byte sequence as a PFDManagementRequest.
func (*PFDManagementRequest) Marshal ¶
func (m *PFDManagementRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a PFDManagementRequest.
func (*PFDManagementRequest) MarshalLen ¶
func (m *PFDManagementRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*PFDManagementRequest) MarshalTo ¶
func (m *PFDManagementRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*PFDManagementRequest) MessageTypeName ¶
func (m *PFDManagementRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*PFDManagementRequest) SEID ¶
func (m *PFDManagementRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*PFDManagementRequest) SetLength ¶
func (m *PFDManagementRequest) SetLength()
SetLength sets the length in Length field.
func (*PFDManagementRequest) UnmarshalBinary ¶
func (m *PFDManagementRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a PFDManagementRequest.
type PFDManagementResponse ¶
PFDManagementResponse is a PFDManagementResponse formed PFCP Header and its IEs above.
TODO: add Node ID IE.
func NewPFDManagementResponse ¶
func NewPFDManagementResponse(seq uint32, cause, offending *ie.IE, ies ...*ie.IE) *PFDManagementResponse
NewPFDManagementResponse creates a new PFDManagementResponse.
func ParsePFDManagementResponse ¶
func ParsePFDManagementResponse(b []byte) (*PFDManagementResponse, error)
ParsePFDManagementResponse decodes a given byte sequence as a PFDManagementResponse.
func (*PFDManagementResponse) Marshal ¶
func (m *PFDManagementResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a PFDManagementResponse.
func (*PFDManagementResponse) MarshalLen ¶
func (m *PFDManagementResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*PFDManagementResponse) MarshalTo ¶
func (m *PFDManagementResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*PFDManagementResponse) MessageTypeName ¶
func (m *PFDManagementResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*PFDManagementResponse) SEID ¶
func (m *PFDManagementResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*PFDManagementResponse) SetLength ¶
func (m *PFDManagementResponse) SetLength()
SetLength sets the length in Length field.
func (*PFDManagementResponse) UnmarshalBinary ¶
func (m *PFDManagementResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a PFDManagementResponse.
type SessionDeletionRequest ¶
SessionDeletionRequest is a SessionDeletionRequest formed PFCP Header and its IEs above.
func NewSessionDeletionRequest ¶
func NewSessionDeletionRequest(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionDeletionRequest
NewSessionDeletionRequest creates a new SessionDeletionRequest.
func ParseSessionDeletionRequest ¶
func ParseSessionDeletionRequest(b []byte) (*SessionDeletionRequest, error)
ParseSessionDeletionRequest decodes a given byte sequence as a SessionDeletionRequest.
func (*SessionDeletionRequest) Marshal ¶
func (m *SessionDeletionRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionDeletionRequest.
func (*SessionDeletionRequest) MarshalLen ¶
func (m *SessionDeletionRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionDeletionRequest) MarshalTo ¶
func (m *SessionDeletionRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionDeletionRequest) MessageTypeName ¶
func (m *SessionDeletionRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionDeletionRequest) SEID ¶
func (m *SessionDeletionRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionDeletionRequest) SetLength ¶
func (m *SessionDeletionRequest) SetLength()
SetLength sets the length in Length field.
func (*SessionDeletionRequest) UnmarshalBinary ¶
func (m *SessionDeletionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionDeletionRequest.
type SessionDeletionResponse ¶
type SessionDeletionResponse struct { *Header Cause *ie.IE OffendingIE *ie.IE LoadControlInformation *ie.IE OverloadControlInformation *ie.IE UsageReport []*ie.IE AdditionalUsageReportsInformation *ie.IE IEs []*ie.IE }
SessionDeletionResponse is a SessionDeletionResponse formed PFCP Header and its IEs above.
TODO: add Packet Rate Status Report and Session Report IE.
func NewSessionDeletionResponse ¶
func NewSessionDeletionResponse(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionDeletionResponse
NewSessionDeletionResponse creates a new SessionDeletionResponse.
func ParseSessionDeletionResponse ¶
func ParseSessionDeletionResponse(b []byte) (*SessionDeletionResponse, error)
ParseSessionDeletionResponse decodes a given byte sequence as a SessionDeletionResponse.
func (*SessionDeletionResponse) Marshal ¶
func (m *SessionDeletionResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionDeletionResponse.
func (*SessionDeletionResponse) MarshalLen ¶
func (m *SessionDeletionResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionDeletionResponse) MarshalTo ¶
func (m *SessionDeletionResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionDeletionResponse) MessageTypeName ¶
func (m *SessionDeletionResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionDeletionResponse) SEID ¶
func (m *SessionDeletionResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionDeletionResponse) SetLength ¶
func (m *SessionDeletionResponse) SetLength()
SetLength sets the length in Length field.
func (*SessionDeletionResponse) UnmarshalBinary ¶
func (m *SessionDeletionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionDeletionResponse.
type SessionEstablishmentRequest ¶
type SessionEstablishmentRequest struct { *Header NodeID *ie.IE CPFSEID *ie.IE CreatePDR []*ie.IE CreateFAR []*ie.IE CreateURR []*ie.IE CreateQER []*ie.IE CreateBAR *ie.IE CreateTrafficEndpoint []*ie.IE PDNType *ie.IE FQCSID *ie.IE UserPlaneInactivityTimer *ie.IE UserID *ie.IE TraceInformation *ie.IE APNDNN *ie.IE CreateMAR []*ie.IE PFCPSEReqFlags *ie.IE CreateBridgeInfoForTSC *ie.IE CreateSRR []*ie.IE ProvideATSSSControlInformation *ie.IE RecoveryTimeStamp *ie.IE SNSSAI *ie.IE ProvideRDSConfigurationInformation *ie.IE IEs []*ie.IE }
SessionEstablishmentRequest is a SessionEstablishmentRequest formed PFCP Header and its IEs above.
TODO: add S-NSSAI and Provide RDS configuration information.
func NewSessionEstablishmentRequest ¶
func NewSessionEstablishmentRequest(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionEstablishmentRequest
NewSessionEstablishmentRequest creates a new SessionEstablishmentRequest.
func ParseSessionEstablishmentRequest ¶
func ParseSessionEstablishmentRequest(b []byte) (*SessionEstablishmentRequest, error)
ParseSessionEstablishmentRequest decodes a given byte sequence as a SessionEstablishmentRequest.
func (*SessionEstablishmentRequest) Marshal ¶
func (m *SessionEstablishmentRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionEstablishmentRequest.
func (*SessionEstablishmentRequest) MarshalLen ¶
func (m *SessionEstablishmentRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionEstablishmentRequest) MarshalTo ¶
func (m *SessionEstablishmentRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionEstablishmentRequest) MessageTypeName ¶
func (m *SessionEstablishmentRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionEstablishmentRequest) SEID ¶
func (m *SessionEstablishmentRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionEstablishmentRequest) SetLength ¶
func (m *SessionEstablishmentRequest) SetLength()
SetLength sets the length in Length field.
func (*SessionEstablishmentRequest) UnmarshalBinary ¶
func (m *SessionEstablishmentRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionEstablishmentRequest.
type SessionEstablishmentResponse ¶
type SessionEstablishmentResponse struct { *Header NodeID *ie.IE Cause *ie.IE OffendingIE *ie.IE UPFSEID *ie.IE CreatedPDR []*ie.IE LoadControlInformation *ie.IE OverloadControlInformation *ie.IE FQCSID *ie.IE FailedRuleID *ie.IE CreatedTrafficEndpoint []*ie.IE CreatedBridgeInfoForTSC *ie.IE ATSSSControlParameters *ie.IE IEs []*ie.IE }
SessionEstablishmentResponse is a SessionEstablishmentResponse formed PFCP Header and its IEs above.
TODO: add RDS configuration information IE.
func NewSessionEstablishmentResponse ¶
func NewSessionEstablishmentResponse(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionEstablishmentResponse
NewSessionEstablishmentResponse creates a new SessionEstablishmentResponse.
func ParseSessionEstablishmentResponse ¶
func ParseSessionEstablishmentResponse(b []byte) (*SessionEstablishmentResponse, error)
ParseSessionEstablishmentResponse decodes a given byte sequence as a SessionEstablishmentResponse.
func (*SessionEstablishmentResponse) Marshal ¶
func (m *SessionEstablishmentResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionEstablishmentResponse.
func (*SessionEstablishmentResponse) MarshalLen ¶
func (m *SessionEstablishmentResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionEstablishmentResponse) MarshalTo ¶
func (m *SessionEstablishmentResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionEstablishmentResponse) MessageTypeName ¶
func (m *SessionEstablishmentResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionEstablishmentResponse) SEID ¶
func (m *SessionEstablishmentResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionEstablishmentResponse) SetLength ¶
func (m *SessionEstablishmentResponse) SetLength()
SetLength sets the length in Length field.
func (*SessionEstablishmentResponse) UnmarshalBinary ¶
func (m *SessionEstablishmentResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionEstablishmentResponse.
type SessionModificationRequest ¶
type SessionModificationRequest struct { *Header CPFSEID *ie.IE RemovePDR []*ie.IE RemoveFAR []*ie.IE RemoveURR []*ie.IE RemoveQER []*ie.IE RemoveBAR *ie.IE RemoveTrafficEndpoint []*ie.IE CreatePDR []*ie.IE CreateFAR []*ie.IE CreateURR []*ie.IE CreateQER []*ie.IE CreateBAR *ie.IE CreateTrafficEndpoint []*ie.IE UpdatePDR []*ie.IE UpdateFAR []*ie.IE UpdateURR []*ie.IE UpdateQER []*ie.IE UpdateBAR *ie.IE UpdateTrafficEndpoint []*ie.IE PFCPSMReqFlags *ie.IE QueryURR []*ie.IE FQCSID *ie.IE UserPlaneInactivityTimer *ie.IE QueryURRReference *ie.IE TraceInformation *ie.IE RemoveMAR []*ie.IE UpdateMAR []*ie.IE CreateMAR []*ie.IE NodeID *ie.IE TSCManagementInformation *ie.IE RemoveSRR []*ie.IE CreateSRR []*ie.IE UpdateSRR []*ie.IE ProvideATSSSControlInformation *ie.IE EthernetContextInformation *ie.IE AccessAvailabilityInformation []*ie.IE QueryPacketRateStatus []*ie.IE SNSSAI *ie.IE IEs []*ie.IE }
SessionModificationRequest is a SessionModificationRequest formed PFCP Header and its IEs above.
func NewSessionModificationRequest ¶
func NewSessionModificationRequest(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionModificationRequest
NewSessionModificationRequest creates a new SessionModificationRequest.
func ParseSessionModificationRequest ¶
func ParseSessionModificationRequest(b []byte) (*SessionModificationRequest, error)
ParseSessionModificationRequest decodes a given byte sequence as a SessionModificationRequest.
func (*SessionModificationRequest) Marshal ¶
func (m *SessionModificationRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionModificationRequest.
func (*SessionModificationRequest) MarshalLen ¶
func (m *SessionModificationRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionModificationRequest) MarshalTo ¶
func (m *SessionModificationRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionModificationRequest) MessageTypeName ¶
func (m *SessionModificationRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionModificationRequest) SEID ¶
func (m *SessionModificationRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionModificationRequest) SetLength ¶
func (m *SessionModificationRequest) SetLength()
SetLength sets the length in Length field.
func (*SessionModificationRequest) UnmarshalBinary ¶
func (m *SessionModificationRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionModificationRequest.
type SessionModificationResponse ¶
type SessionModificationResponse struct { *Header Cause *ie.IE OffendingIE *ie.IE CreatedPDR []*ie.IE LoadControlInformation *ie.IE OverloadControlInformation *ie.IE UsageReport []*ie.IE FailedRuleID *ie.IE AdditionalUsageReportsInformation *ie.IE CreatedUpdatedTrafficEndpoint []*ie.IE CreatedBridgeInfoForTSC *ie.IE ATSSSControlParameters *ie.IE UpdatedPDR []*ie.IE PacketRateStatusReport []*ie.IE IEs []*ie.IE }
SessionModificationResponse is a SessionModificationResponse formed PFCP Header and its IEs above.
TODO: add Packet Rate Status Report IE.
TODO: rename CreatedBridgeInfoForTSC => TSCManagementInformation
func NewSessionModificationResponse ¶
func NewSessionModificationResponse(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionModificationResponse
NewSessionModificationResponse creates a new SessionModificationResponse.
func ParseSessionModificationResponse ¶
func ParseSessionModificationResponse(b []byte) (*SessionModificationResponse, error)
ParseSessionModificationResponse decodes a given byte sequence as a SessionModificationResponse.
func (*SessionModificationResponse) Marshal ¶
func (m *SessionModificationResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionModificationResponse.
func (*SessionModificationResponse) MarshalLen ¶
func (m *SessionModificationResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionModificationResponse) MarshalTo ¶
func (m *SessionModificationResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionModificationResponse) MessageTypeName ¶
func (m *SessionModificationResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionModificationResponse) SEID ¶
func (m *SessionModificationResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionModificationResponse) SetLength ¶
func (m *SessionModificationResponse) SetLength()
SetLength sets the length in Length field.
func (*SessionModificationResponse) UnmarshalBinary ¶
func (m *SessionModificationResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionModificationResponse.
type SessionReportRequest ¶
type SessionReportRequest struct { *Header ReportType *ie.IE DownlinkDataReport *ie.IE UsageReport []*ie.IE ErrorIndicationReport *ie.IE LoadControlInformation *ie.IE OverloadControlInformation *ie.IE AdditionalUsageReportsInformation *ie.IE PFCPSRReqFlags *ie.IE OldCPFSEID *ie.IE PacketRateStatusReport *ie.IE PortManagementInformationForTSC *ie.IE SessionReport []*ie.IE IEs []*ie.IE }
SessionReportRequest is a SessionReportRequest formed PFCP Header and its IEs above.
TODO: rename PortManagementInformationForTSC => TSCManagementInformation
func NewSessionReportRequest ¶
func NewSessionReportRequest(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionReportRequest
NewSessionReportRequest creates a new SessionReportRequest.
func ParseSessionReportRequest ¶
func ParseSessionReportRequest(b []byte) (*SessionReportRequest, error)
ParseSessionReportRequest decodes a given byte sequence as a SessionReportRequest.
func (*SessionReportRequest) Marshal ¶
func (m *SessionReportRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionReportRequest.
func (*SessionReportRequest) MarshalLen ¶
func (m *SessionReportRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionReportRequest) MarshalTo ¶
func (m *SessionReportRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionReportRequest) MessageTypeName ¶
func (m *SessionReportRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionReportRequest) SEID ¶
func (m *SessionReportRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionReportRequest) SetLength ¶
func (m *SessionReportRequest) SetLength()
SetLength sets the length in Length field.
func (*SessionReportRequest) UnmarshalBinary ¶
func (m *SessionReportRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionReportRequest.
type SessionReportResponse ¶
type SessionReportResponse struct { *Header Cause *ie.IE OffendingIE *ie.IE UpdateBAR *ie.IE PFCPSRRspFlags *ie.IE CPFSEID *ie.IE N4UFTEID *ie.IE AlternativeSMFIPAddress *ie.IE IEs []*ie.IE }
SessionReportResponse is a SessionReportResponse formed PFCP Header and its IEs above.
func NewSessionReportResponse ¶
func NewSessionReportResponse(mp, fo uint8, seid uint64, seq uint32, pri uint8, ies ...*ie.IE) *SessionReportResponse
NewSessionReportResponse creates a new SessionReportResponse.
func ParseSessionReportResponse ¶
func ParseSessionReportResponse(b []byte) (*SessionReportResponse, error)
ParseSessionReportResponse decodes a given byte sequence as a SessionReportResponse.
func (*SessionReportResponse) Marshal ¶
func (m *SessionReportResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionReportResponse.
func (*SessionReportResponse) MarshalLen ¶
func (m *SessionReportResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionReportResponse) MarshalTo ¶
func (m *SessionReportResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionReportResponse) MessageTypeName ¶
func (m *SessionReportResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionReportResponse) SEID ¶
func (m *SessionReportResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionReportResponse) SetLength ¶
func (m *SessionReportResponse) SetLength()
SetLength sets the length in Length field.
func (*SessionReportResponse) UnmarshalBinary ¶
func (m *SessionReportResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionReportResponse.
type SessionSetDeletionRequest ¶
SessionSetDeletionRequest is a SessionSetDeletionRequest formed PFCP Header and its IEs above.
func NewSessionSetDeletionRequest ¶
func NewSessionSetDeletionRequest(seq uint32, id, csid *ie.IE, ies ...*ie.IE) *SessionSetDeletionRequest
NewSessionSetDeletionRequest creates a new SessionSetDeletionRequest.
func ParseSessionSetDeletionRequest ¶
func ParseSessionSetDeletionRequest(b []byte) (*SessionSetDeletionRequest, error)
ParseSessionSetDeletionRequest decodes a given byte sequence as a SessionSetDeletionRequest.
func (*SessionSetDeletionRequest) Marshal ¶
func (m *SessionSetDeletionRequest) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionSetDeletionRequest.
func (*SessionSetDeletionRequest) MarshalLen ¶
func (m *SessionSetDeletionRequest) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionSetDeletionRequest) MarshalTo ¶
func (m *SessionSetDeletionRequest) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionSetDeletionRequest) MessageTypeName ¶
func (m *SessionSetDeletionRequest) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionSetDeletionRequest) SEID ¶
func (m *SessionSetDeletionRequest) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionSetDeletionRequest) SetLength ¶
func (m *SessionSetDeletionRequest) SetLength()
SetLength sets the length in Length field.
func (*SessionSetDeletionRequest) UnmarshalBinary ¶
func (m *SessionSetDeletionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionSetDeletionRequest.
type SessionSetDeletionResponse ¶
type SessionSetDeletionResponse struct { *Header NodeID *ie.IE Cause *ie.IE OffendingIE *ie.IE IEs []*ie.IE }
SessionSetDeletionResponse is a SessionSetDeletionResponse formed PFCP Header and its IEs above.
func NewSessionSetDeletionResponse ¶
func NewSessionSetDeletionResponse(seq uint32, id, cause, offending *ie.IE, ies ...*ie.IE) *SessionSetDeletionResponse
NewSessionSetDeletionResponse creates a new SessionSetDeletionResponse.
func ParseSessionSetDeletionResponse ¶
func ParseSessionSetDeletionResponse(b []byte) (*SessionSetDeletionResponse, error)
ParseSessionSetDeletionResponse decodes a given byte sequence as a SessionSetDeletionResponse.
func (*SessionSetDeletionResponse) Marshal ¶
func (m *SessionSetDeletionResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a SessionSetDeletionResponse.
func (*SessionSetDeletionResponse) MarshalLen ¶
func (m *SessionSetDeletionResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*SessionSetDeletionResponse) MarshalTo ¶
func (m *SessionSetDeletionResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*SessionSetDeletionResponse) MessageTypeName ¶
func (m *SessionSetDeletionResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*SessionSetDeletionResponse) SEID ¶
func (m *SessionSetDeletionResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*SessionSetDeletionResponse) SetLength ¶
func (m *SessionSetDeletionResponse) SetLength()
SetLength sets the length in Length field.
func (*SessionSetDeletionResponse) UnmarshalBinary ¶
func (m *SessionSetDeletionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a SessionSetDeletionResponse.
type VersionNotSupportedResponse ¶
VersionNotSupportedResponse is a VersionNotSupportedResponse formed PFCP Header and its IEs above.
func NewVersionNotSupportedResponse ¶
func NewVersionNotSupportedResponse(seq uint32, ies ...*ie.IE) *VersionNotSupportedResponse
NewVersionNotSupportedResponse creates a new VersionNotSupportedResponse.
func ParseVersionNotSupportedResponse ¶
func ParseVersionNotSupportedResponse(b []byte) (*VersionNotSupportedResponse, error)
ParseVersionNotSupportedResponse decodes a given byte sequence as a VersionNotSupportedResponse.
func (*VersionNotSupportedResponse) Marshal ¶
func (m *VersionNotSupportedResponse) Marshal() ([]byte, error)
Marshal returns the byte sequence generated from a VersionNotSupportedResponse.
func (*VersionNotSupportedResponse) MarshalLen ¶
func (m *VersionNotSupportedResponse) MarshalLen() int
MarshalLen returns the serial length of Data.
func (*VersionNotSupportedResponse) MarshalTo ¶
func (m *VersionNotSupportedResponse) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*VersionNotSupportedResponse) MessageTypeName ¶
func (m *VersionNotSupportedResponse) MessageTypeName() string
MessageTypeName returns the name of protocol.
func (*VersionNotSupportedResponse) SEID ¶
func (m *VersionNotSupportedResponse) SEID() uint64
SEID returns the SEID in uint64.
func (*VersionNotSupportedResponse) SetLength ¶
func (m *VersionNotSupportedResponse) SetLength()
SetLength sets the length in Length field.
func (*VersionNotSupportedResponse) UnmarshalBinary ¶
func (m *VersionNotSupportedResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes a given byte sequence as a VersionNotSupportedResponse.
Source Files ¶
- association-release-request.go
- association-release-response.go
- association-setup-request.go
- association-setup-response.go
- association-update-request.go
- association-update-response.go
- doc.go
- generic.go
- header.go
- heartbeat-request.go
- heartbeat-response.go
- message.go
- misc.go
- node-report-request.go
- node-report-response.go
- pfd-management-request.go
- pfd-management-response.go
- session-deletion-request.go
- session-deletion-response.go
- session-establishment-request.go
- session-establishment-response.go
- session-modification-request.go
- session-modification-response.go
- session-report-request.go
- session-report-response.go
- session-set-deletion-request.go
- session-set-deletion-response.go
- version-not-supported-response.go