msg

package
v0.0.0-...-c3ce9eb Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Head struct {
	Version  byte
	MP       bool
	S        bool
	Type     PFCPMsgType
	Length   uint16
	SEID     uint64
	Sequence uint32 //3byte
	Priority byte
}

type Msg

type Msg struct {
	Head
	Cause             //Cause
	NodeID            //NodeID
	RecoveryTimeStamp //RecoveryTimeStamp
	FSEID             //FSEID
	PDNType           //PDNType
	CreatePDR         //CreatePDR
	CreateFAR         //CreateFAR
	CreateURR         //CreateURR
	CreateQER         //CreateQER
}

func Parse

func Parse(buf *bytes.Buffer) *Msg

解析函数

func (*Msg) Pack

func (m *Msg) Pack() *bytes.Buffer

封装函数

type PFCPMsgType

type PFCPMsgType byte
const (
	PFCPMsgTypeHeartbeatRequest  PFCPMsgType = 1
	PFCPMsgTypeHeartbeatResponse PFCPMsgType = 2

	PFCPMsgTypePFDManagementRequest  PFCPMsgType = 3
	PFCPMsgTypePFDManagementResponse PFCPMsgType = 4

	PFCPMsgTypeAssociationSetupRequest    PFCPMsgType = 5
	PFCPMsgTypeAssociationSetupResponse   PFCPMsgType = 6
	PFCPMsgTypeAssociationUpdateRequest   PFCPMsgType = 7
	PFCPMsgTypeAssociationUpdateResponse  PFCPMsgType = 8
	PFCPMsgTypeAssociationReleaseRequest  PFCPMsgType = 9
	PFCPMsgTypeAssociationReleaseResponse PFCPMsgType = 10

	PFCPMsgTypeVersionNotSupported PFCPMsgType = 11

	PFCPMsgTypeNodeReportRequest  PFCPMsgType = 12
	PFCPMsgTypeNodeReportResponse PFCPMsgType = 13

	PFCPMsgTypeSessionSetDeletionRequest    PFCPMsgType = 14
	PFCPMsgTypeSessionSetDeletionResponse   PFCPMsgType = 15
	PFCPMsgTypeSessionEstablishmentRequest  PFCPMsgType = 50
	PFCPMsgTypeSessionEstablishmentResponse PFCPMsgType = 51
	PFCPMsgTypeSessionModificationRequest   PFCPMsgType = 52
	PFCPMsgTypeSessionModificationResponse  PFCPMsgType = 53
	PFCPMsgTypeSessionDeletionRequest       PFCPMsgType = 54
	PFCPMsgTypeSessionDeletionResponse      PFCPMsgType = 55
	PFCPMsgTypeSessionReportRequest         PFCPMsgType = 56
	PFCPMsgTypeSessionReportResponse        PFCPMsgType = 57
)

Jump to

Keyboard shortcuts

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