Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + var LayerTypeSCMP = gopacket.RegisterLayerType(1361, gopacket.LayerTypeMetadata{ ... }) + var LayerTypeScion = gopacket.RegisterLayerType(newScnLayerID(), gopacket.LayerTypeMetadata{ ... }) + var LayerTypeScionHBH gopacket.LayerType + func PrintSegments(segs []*Segment, indent, sep string) string + type AddrHdr struct + DstHost addr.HostAddr + DstIA addr.IA + SrcHost addr.HostAddr + SrcIA addr.IA + func NewAddrHdr(srcIA, srcHost, dstIA, dstHost string) *AddrHdr + func ParseRawAddrHdr(b common.RawBytes, srcT, dstT addr.HostAddrType) (*AddrHdr, error) + func (a *AddrHdr) Equal(o *AddrHdr) bool + func (a *AddrHdr) Len() int + func (a *AddrHdr) NoPaddedLen() int + func (a *AddrHdr) Parse(b common.RawBytes, srcT, dstT addr.HostAddrType) (int, error) + func (a *AddrHdr) String() string + func (a *AddrHdr) Write(b common.RawBytes) int + type Pld = scmp.Payload + type SCMP struct + 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 struct + AddrHdr AddrHdr + CmnHdr spkt.CmnHdr + Path ScnPath + func (l *Scion) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error + func (l *Scion) LayerType() gopacket.LayerType + func (l *Scion) NetworkFlow() gopacket.Flow + func (l *Scion) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error + type ScionHBH struct + func (l *ScionHBH) LayerType() gopacket.LayerType + func (l *ScionHBH) LengthBytes() int + type ScnPath struct + Segs []*Segment + func (p *ScnPath) Len() int + func (p *ScnPath) Parse(b common.RawBytes) error + func (p *ScnPath) String() string + func (p *ScnPath) WriteTo(b common.RawBytes) error + type Segment struct + Hops []*spath.HopField + Inf *spath.InfoField + func (s *Segment) Len() int + func (s *Segment) Parse(b common.RawBytes) (int, error) + func (s *Segment) String() string + func (s *Segment) WriteTo(b common.RawBytes) (int, error) + type UDP struct + func (udp *UDP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error + func (udp *UDP) SetNetworkLayerForChecksum(l gopacket.NetworkLayer) error