Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + const E2EDebugLen + const ExtnSCMPErrorFlag + const ExtnSCMPHBHFlag + const OneHopPathLen + var LayerToHeaderMap = map[gopacket.LayerType]common.L4ProtocolType + var LayerTypeEndToEndExtension = gopacket.RegisterLayerType(1102, gopacket.LayerTypeMetadata{ ... }) + var LayerTypeHopByHopExtension = gopacket.RegisterLayerType(1101, gopacket.LayerTypeMetadata{ ... }) + var LayerTypeSCIONUDP = gopacket.RegisterLayerType(1103, gopacket.LayerTypeMetadata{ ... }) + var LayerTypeSCMP = gopacket.RegisterLayerType(1104, gopacket.LayerTypeMetadata{ ... }) + func ExtensionFactory(class common.L4ProtocolType, extension *Extension) (common.Extension, error) + type Extension struct + Data []byte + NextHeader common.L4ProtocolType + NumLines uint8 + Type uint8 + func ExtensionDataToExtensionLayer(nextHdr common.L4ProtocolType, data common.Extension) (*Extension, error) + func (e *Extension) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error + func (e *Extension) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error + type ExtnE2EDebug struct + ID [5]byte + func NewExtnE2EDebugFromLayer(extension *Extension) (*ExtnE2EDebug, error) + func (o *ExtnE2EDebug) DecodeFromLayer(extension *Extension) error + func (o ExtnE2EDebug) Class() common.L4ProtocolType + func (o ExtnE2EDebug) Copy() common.Extension + func (o ExtnE2EDebug) Len() int + func (o ExtnE2EDebug) Pack() (common.RawBytes, error) + func (o ExtnE2EDebug) Reverse() (bool, error) + func (o ExtnE2EDebug) String() string + func (o ExtnE2EDebug) Type() common.ExtnType + func (o ExtnE2EDebug) Write(b common.RawBytes) error + type ExtnOHP struct + func NewExtnOHPFromLayer(extension *Extension) (*ExtnOHP, error) + func (o *ExtnOHP) DecodeFromLayer(extension *Extension) error + func (o ExtnOHP) Class() common.L4ProtocolType + func (o ExtnOHP) Copy() common.Extension + func (o ExtnOHP) Len() int + func (o ExtnOHP) Pack() (common.RawBytes, error) + func (o ExtnOHP) Reverse() (bool, error) + func (o ExtnOHP) String() string + func (o ExtnOHP) Type() common.ExtnType + func (o ExtnOHP) Write(b common.RawBytes) error + type ExtnSCMP struct + Error bool + HopByHop bool + func ExtnSCMPFromRaw(b common.RawBytes) (*ExtnSCMP, error) + func NewExtnSCMPFromLayer(extension *Extension) (*ExtnSCMP, error) + func (e *ExtnSCMP) Class() common.L4ProtocolType + func (e *ExtnSCMP) Copy() common.Extension + func (e *ExtnSCMP) DecodeFromBytes(b []byte) error + func (e *ExtnSCMP) DecodeFromLayer(extension *Extension) error + func (e *ExtnSCMP) Len() int + func (e *ExtnSCMP) Pack() (common.RawBytes, error) + func (e *ExtnSCMP) Reverse() (bool, error) + func (e *ExtnSCMP) String() string + func (e *ExtnSCMP) Type() common.ExtnType + func (e *ExtnSCMP) Write(b common.RawBytes) error + type ExtnUnknown struct + ClassField common.L4ProtocolType + Length int + TypeField uint8 + func NewExtnUnknownFromLayer(class common.L4ProtocolType, extension *Extension) (*ExtnUnknown, error) + func (u *ExtnUnknown) DecodeFromLayer(extension *Extension) error + func (u ExtnUnknown) Class() common.L4ProtocolType + func (u ExtnUnknown) Copy() common.Extension + func (u ExtnUnknown) Len() int + func (u ExtnUnknown) Pack() (common.RawBytes, error) + func (u ExtnUnknown) Reverse() (bool, error) + func (u ExtnUnknown) String() string + func (u ExtnUnknown) Type() common.ExtnType + func (u ExtnUnknown) Write(b common.RawBytes) error