Documentation ¶
Index ¶
- Variables
- func PrintSegments(segs []*Segment, indent, sep string) string
- type AddrHdr
- type HostBad
- type Pld
- type SCMP
- func (s *SCMP) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
- func (s *SCMP) LayerType() gopacket.LayerType
- func (s *SCMP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
- func (s *SCMP) SetNetworkLayerForChecksum(l gopacket.NetworkLayer) error
- func (s *SCMP) String() string
- type Scion
- type ScionHBH
- type ScnPath
- type Segment
- type UDP
Constants ¶
This section is empty.
Variables ¶
View Source
var LayerTypeSCMP = gopacket.RegisterLayerType( 1361, gopacket.LayerTypeMetadata{ Name: "SCMP", Decoder: gopacket.DecodeFunc(decodeSCMP), }, )
View Source
var LayerTypeScion = gopacket.RegisterLayerType( newScnLayerID(), gopacket.LayerTypeMetadata{ Name: "SCION", Decoder: gopacket.DecodeFunc(decodeScion), }, )
View Source
var LayerTypeScionHBH gopacket.LayerType
Functions ¶
func PrintSegments ¶
Types ¶
type AddrHdr ¶
func NewAddrHdr ¶
func ParseRawAddrHdr ¶
func (*AddrHdr) NoPaddedLen ¶
type HostBad ¶ added in v0.5.0
func (HostBad) Type ¶ added in v0.5.0
func (h HostBad) Type() addr.HostAddrType
type SCMP ¶
func (*SCMP) DecodeFromBytes ¶
func (s *SCMP) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
func (*SCMP) SerializeTo ¶
func (s *SCMP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
func (*SCMP) SetNetworkLayerForChecksum ¶
func (s *SCMP) SetNetworkLayerForChecksum(l gopacket.NetworkLayer) error
type Scion ¶
type Scion struct { golayers.BaseLayer CmnHdr spkt.CmnHdr AddrHdr AddrHdr Path ScnPath // contains filtered or unexported fields }
Scion represents the gopacket SCION network layer, which contains the common, address and path "headers".
func (*Scion) DecodeFromBytes ¶
func (l *Scion) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
func (*Scion) NetworkFlow ¶
XXX required to implement NetworkLayer interface
func (*Scion) SerializeTo ¶
func (l *Scion) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
type ScionHBH ¶
func (*ScionHBH) LengthBytes ¶
type UDP ¶
UDP is a wrapper around layers.UDP to be able to leverage gopacket UDP checksum calculation
func (*UDP) SerializeTo ¶
func (udp *UDP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
func (*UDP) SetNetworkLayerForChecksum ¶
func (udp *UDP) SetNetworkLayerForChecksum(l gopacket.NetworkLayer) error
Click to show internal directories.
Click to hide internal directories.