Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LayerTypeIPv6Routing = gopacket.OverrideLayerType(47, gopacket.LayerTypeMetadata{Name: "IPv6Routing", Decoder: gopacket.DecodeFunc(decodeIPv6Routing)})
Register our decoding function to use it instead of gopacket's one
Functions ¶
This section is empty.
Types ¶
type GopacketIpv6ExtensionBase ¶
type GopacketIpv6ExtensionBase struct {
layers.BaseLayer
NextHeader layers.IPProtocol
HeaderLength uint8
ActualLength int
}
Copy of ipv6ExtensionBase from gopacket's layers/ip6.go
type IPv6Routing ¶
type IPv6Routing struct {
GopacketIpv6ExtensionBase
RoutingType uint8
SegmentsLeft uint8
Reserved []byte // only for RoutingType != 4
LastEntry uint8
Flags uint8
Tag uint16
SourceRoutingIPs []net.IP // Segment List
}
Copy of IPv6Routing from gopacket's layers/ip6.go with the following modifications: - Added SRv6 Fields (`LastEntry`, `Flags`, `Tag`)
func (*IPv6Routing) DecodeFromBytes ¶
func (i *IPv6Routing) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
Copy of DecodeFromBytes from PR 1040
func (*IPv6Routing) LayerType ¶
func (i *IPv6Routing) LayerType() gopacket.LayerType
Copy of LayerType method from gopacket's layers/ip6.go
func (*IPv6Routing) SerializeTo ¶
func (i *IPv6Routing) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
Copy of SerializeTo from PR 1040
Click to show internal directories.
Click to hide internal directories.