gtp

package module
v0.0.0-...-d937fce Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Port = 2152
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GTP

type GTP struct {
	IFname             string
	LocalAddr          net.IP
	PeerAddr           net.IP
	LocalTEID          uint32
	PeerTEID           uint32
	QosFlowID          uint8
	HasExtensionHeader bool
}

func NewGTP

func NewGTP(lteid uint32, pteid uint32) (p *GTP)

func (*GTP) Decap

func (gtp *GTP) Decap(payload []byte) (raw []byte)

func (*GTP) Encap

func (gtp *GTP) Encap(raw []byte) (payload []byte)

func (*GTP) SetExtensionHeader

func (gtp *GTP) SetExtensionHeader(flag bool)

func (*GTP) SetQosFlowID

func (gtp *GTP) SetQosFlowID(id uint8)

type ULPduSessionInformation

type ULPduSessionInformation struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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