message

package
v0.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: MIT Imports: 5 Imported by: 16

Documentation

Overview

Package message provides encoding/decoding feature of PFCP messages.

Index

Constants

View Source
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

type AssociationReleaseRequest struct {
	*Header
	NodeID *ie.IE
	IEs    []*ie.IE
}

AssociationReleaseRequest is a AssociationReleaseRequest formed PFCP Header and its IEs above.

func NewAssociationReleaseRequest

func NewAssociationReleaseRequest(seq uint32, id *ie.IE, ies ...*ie.IE) *AssociationReleaseRequest

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

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

type AssociationReleaseResponse struct {
	*Header
	NodeID *ie.IE
	Cause  *ie.IE
	IEs    []*ie.IE
}

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

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

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

type Generic struct {
	*Header
	IEs []*ie.IE
}

Generic is a Generic formed PFCP Header and its IEs above.

func NewGeneric

func NewGeneric(msgType uint8, seid uint64, seq uint32, ies ...*ie.IE) *Generic

NewGeneric creates a new Generic.

func NewGenericWithoutSEID

func NewGenericWithoutSEID(msgType uint8, seq uint32, ies ...*ie.IE) *Generic

NewGenericWithoutSEID creates a new Generic.

func ParseGeneric

func ParseGeneric(b []byte) (*Generic, error)

ParseGeneric decodes a given byte sequence as a Generic.

func (*Generic) AddIE

func (m *Generic) AddIE(ies ...*ie.IE)

AddIE add IEs to Generic type of PFCP message and update Length field.

func (*Generic) Marshal

func (m *Generic) Marshal() ([]byte, error)

Marshal returns the byte sequence generated from a Generic.

func (*Generic) MarshalLen

func (m *Generic) MarshalLen() int

MarshalLen returns the serial length of Data.

func (*Generic) MarshalTo

func (m *Generic) MarshalTo(b []byte) error

MarshalTo puts the byte sequence in the byte array given as b.

func (*Generic) MessageTypeName

func (m *Generic) MessageTypeName() string

MessageTypeName returns the name of protocol.

func (*Generic) SEID

func (m *Generic) SEID() uint64

SEID returns the SEID in uint64.

func (*Generic) SetLength

func (m *Generic) SetLength()

SetLength sets the length in Length field.

func (*Generic) UnmarshalBinary

func (m *Generic) UnmarshalBinary(b []byte) error

UnmarshalBinary decodes a given byte sequence as a Generic.

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

func NewHeaderNodeRelated(ver, mtype uint8, seq uint32, payload []byte) *Header

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

func ParseHeader(b []byte) (*Header, error)

ParseHeader decodes given byte sequence as a PFCP header.

func (*Header) HasFO

func (h *Header) HasFO() bool

HasFO reports whether Header has Follow On message(FO flag is set or not).

func (*Header) HasMP

func (h *Header) HasMP() bool

HasMP reports whether Header has MessagePriority(MP flag is set or not).

func (*Header) HasSEID

func (h *Header) HasSEID() bool

HasSEID reports whether Header has SEID(S flag is set or not).

func (*Header) MP

func (h *Header) MP() uint8

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) Marshal

func (h *Header) Marshal() ([]byte, error)

Marshal returns the byte sequence generated from a Header instance.

func (*Header) MarshalLen

func (h *Header) MarshalLen() int

MarshalLen returns field length in integer.

func (*Header) MarshalTo

func (h *Header) MarshalTo(b []byte) error

MarshalTo puts the byte sequence in the byte array given as b.

func (*Header) MessageType

func (h *Header) MessageType() uint8

MessageType returns the type of messagg.

func (*Header) Sequence

func (h *Header) Sequence() uint32

Sequence returns SequenceNumber in uint32.

func (*Header) SetLength

func (h *Header) SetLength()

SetLength sets the length in Length field.

func (*Header) SetMP

func (h *Header) SetMP(mp uint8)

SetMP sets the M Flag to 1 and puts the MessagePriority given into MessagePriority field.

func (*Header) SetSEID

func (h *Header) SetSEID(seid uint64)

SetSEID sets the S Flag to 1 and puts the SEID given into SEID field.

func (*Header) SetSequenceNumber

func (h *Header) SetSequenceNumber(seq uint32)

SetSequenceNumber sets the SequenceNumber in Header.

func (*Header) String

func (h *Header) String() string

String returns the PFCP header values in human readable format.

func (*Header) UnmarshalBinary

func (h *Header) UnmarshalBinary(b []byte) error

UnmarshalBinary sets the values retrieved from byte sequence in PFCP header.

func (*Header) Version

func (h *Header) Version() int

Version returns the PFCP version.

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

func NewHeartbeatRequest(seq uint32, ts, ip *ie.IE, ies ...*ie.IE) *HeartbeatRequest

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

type HeartbeatResponse struct {
	*Header
	RecoveryTimeStamp *ie.IE
	IEs               []*ie.IE
}

HeartbeatResponse is a HeartbeatResponse formed PFCP Header and its IEs above.

func NewHeartbeatResponse

func NewHeartbeatResponse(seq uint32, ts *ie.IE, ies ...*ie.IE) *HeartbeatResponse

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.

func Parse

func Parse(b []byte) (Message, error)

Parse parses the given bytes as Message.

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

type PFDManagementRequest struct {
	*Header
	ApplicationIDsPFDs []*ie.IE
	IEs                []*ie.IE
}

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

type PFDManagementResponse struct {
	*Header
	Cause       *ie.IE
	OffendingIE *ie.IE
	IEs         []*ie.IE
}

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

type SessionDeletionRequest struct {
	*Header
	IEs []*ie.IE
}

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

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

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

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

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

type SessionSetDeletionRequest struct {
	*Header
	NodeID *ie.IE
	FQCSID *ie.IE
	IEs    []*ie.IE
}

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

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

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

type VersionNotSupportedResponse struct {
	*Header
	IEs []*ie.IE
}

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL