guepacket

package module
v0.0.0-...-44a7938 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GUELayerType gopacket.LayerType

GUELayerType should be populated when GUE has been registered with gopacket

Functions

func DecodeGUE

func DecodeGUE(data []byte, p gopacket.PacketBuilder) error

Types

type GUE

type GUE struct {
	Version    uint8
	C          bool
	Protocol   gplayers.IPProtocol
	Flags      uint16
	Extensions []byte
	Data       []byte
}

GUE represents a packet encoded with Generic UDP Encapsulation It should sit "under" a UDP layer

For more information about the meaning of the fields, see https://tools.ietf.org/html/draft-ietf-intarea-gue-04#section-3.1

func (GUE) CanDecode

func (l GUE) CanDecode() gopacket.LayerClass

func (*GUE) DecodeFromBytes

func (l *GUE) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error

func (GUE) LayerContents

func (l GUE) LayerContents() []byte

func (GUE) LayerPayload

func (l GUE) LayerPayload() []byte

func (GUE) LayerType

func (l GUE) LayerType() gopacket.LayerType

func (GUE) NextLayerType

func (l GUE) NextLayerType() gopacket.LayerType

func (GUE) SerializeTo

func (l GUE) SerializeTo(buf gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error

Jump to

Keyboard shortcuts

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