Documentation
¶
Index ¶
Constants ¶
View Source
const IPV6_TLV_PAD1 = 0
View Source
const MAX_SEGMENTLIST_ENTRIES = 10
Variables ¶
View Source
var HBHLayerType = gopacket.RegisterLayerType( 2002, gopacket.LayerTypeMetadata{ Name: "HBHLayerType", Decoder: gopacket.DecodeFunc(decodeHBHLayer), }, )
View Source
var Srv6LayerType = gopacket.RegisterLayerType( 2001, gopacket.LayerTypeMetadata{ Name: "Srv6LayerType", Decoder: gopacket.DecodeFunc(decodeSrv6Layer), }, )
Functions ¶
This section is empty.
Types ¶
type HBHLayer ¶
type HBHLayer struct {
layers.BaseLayer
NextHeader uint8
Length uint8
Options []IoamOption
}
func (*HBHLayer) DecodeFromBytes ¶
func (l *HBHLayer) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
func (*HBHLayer) NextLayerType ¶
func (*HBHLayer) SerializeTo ¶
func (l *HBHLayer) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
type IoamOption ¶
type ProbeData ¶
type Srv6Layer ¶
type Srv6Layer struct {
layers.BaseLayer
NextHeader uint8
HdrExtLen uint8
RoutingType uint8
SegmentsLeft uint8
LastEntry uint8
Flags uint8
Tag uint16
Segments []netip.Addr
}
func (*Srv6Layer) DecodeFromBytes ¶
func (i *Srv6Layer) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
func (*Srv6Layer) NextLayerType ¶
func (*Srv6Layer) SerializeTo ¶
func (i *Srv6Layer) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
Click to show internal directories.
Click to hide internal directories.