l2vpn

package
v0.0.0-...-708c4fd Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LayerTypePWMCW = gopacket.RegisterLayerType(2001, gopacket.LayerTypeMetadata{Name: "PWMCW", Decoder: gopacket.DecodeFunc(decodePWMCW)})
View Source
var LayerTypeVPLS = gopacket.RegisterLayerType(1024, gopacket.LayerTypeMetadata{Name: "VPLS", Decoder: gopacket.DecodeFunc(decodeVPLS)})

Functions

This section is empty.

Types

type PWMCW

type PWMCW struct {
	SequenceNumber uint32
	layers.BaseLayer
}

func (*PWMCW) CanDecode

func (cw *PWMCW) CanDecode() gopacket.LayerClass

func (*PWMCW) DecodeFromBytes

func (cw *PWMCW) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error

func (*PWMCW) LayerType

func (cw *PWMCW) LayerType() gopacket.LayerType

func (*PWMCW) NextLayerType

func (cw *PWMCW) NextLayerType() gopacket.LayerType

func (*PWMCW) SerializeTo

func (cw *PWMCW) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error

type PWMCWDecoder

type PWMCWDecoder struct {
	ControlWord bool
}

func (*PWMCWDecoder) Decode

func (c *PWMCWDecoder) Decode(data []byte, p gopacket.PacketBuilder) error

type VPLS

type VPLS layers.MPLS

func (*VPLS) CanDecode

func (v *VPLS) CanDecode() gopacket.LayerClass

func (*VPLS) DecodeFromBytes

func (v *VPLS) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error

func (*VPLS) LayerType

func (v *VPLS) LayerType() gopacket.LayerType

func (*VPLS) NextLayerType

func (v *VPLS) NextLayerType() gopacket.LayerType

Jump to

Keyboard shortcuts

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