gre

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GREHeaderFieldLength    = 8
	GREHeaderKeyFieldLength = 4
)

[TS 24.502] 9.3.3 GRE encapsulated user data packet

View Source
const (
	IPv4 uint16 = 0x0800
	IPv6 uint16 = 0x86DD
)

Ethertypes Specified by the IETF

Variables

This section is empty.

Functions

This section is empty.

Types

type GREPacket

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

func (*GREPacket) GetKeyField

func (p *GREPacket) GetKeyField() uint32

func (*GREPacket) GetKeyFlag

func (p *GREPacket) GetKeyFlag() bool

func (*GREPacket) GetPayload

func (p *GREPacket) GetPayload() ([]byte, uint16)

func (*GREPacket) GetQFI

func (p *GREPacket) GetQFI() uint8

func (*GREPacket) GetRQI

func (p *GREPacket) GetRQI() bool

func (*GREPacket) Marshal

func (p *GREPacket) Marshal() []byte

func (*GREPacket) SetPayload

func (p *GREPacket) SetPayload(payload []byte, protocolType uint16)

func (*GREPacket) SetQoS

func (p *GREPacket) SetQoS(qfi uint8, rqi bool)

func (*GREPacket) Unmarshal

func (p *GREPacket) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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