linkaudit

package
v0.16.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointIEEE802154 = gopacket.RegisterEndpointType(12003, gopacket.EndpointTypeMetadata{Name: "IEEE802.15.4", Formatter: func(b []byte) string { return fmt.Sprintf("%x", b) }})
View Source
var ErrUnsupported = errors.New("unsupported IEEE 802.15.4 format")
View Source
var LayerIEEE802154 = gopacket.RegisterLayerType(12003, gopacket.LayerTypeMetadata{Name: "IEEE802.15.4", Decoder: gopacket.DecodeFunc(DecodeIEEE802154)})
View Source
var LayerLinkFrame = gopacket.RegisterLayerType(12006, gopacket.LayerTypeMetadata{Name: "LinkFrame"})

Functions

func DecodeDot11 added in v0.16.7

func DecodeDot11(data []byte, p gopacket.PacketBuilder, present bool) error

Dot11's upstream decoder requires a checksum trailer. Only its scratch view is padded.

func DecodeDot11View added in v0.16.7

func DecodeDot11View(data []byte, p gopacket.PacketBuilder, present bool) error

func DecodeIEEE802154

func DecodeIEEE802154(data []byte, p gopacket.PacketBuilder) error

func DecodeIEEE802154FCS

func DecodeIEEE802154FCS(data []byte, p gopacket.PacketBuilder) error

func DecodeRadioTap added in v0.16.7

func DecodeRadioTap(data []byte, p gopacket.PacketBuilder, check *FrameCheck) error

Types

type ALPFrame added in v0.16.9

type ALPFrame struct {
	PacketType       uint8
	Segmented, Last  bool
	Sequence         uint8
	ComponentLengths []int
	Offset, Length   int
	SIDPresent       bool
	SID              uint8
	PLPPresent       bool
	PLP              uint8
	RDTs             []rohc.Description
}

type FrameCheck added in v0.16.7

type FrameCheck struct{ Known, Present bool }

func FrameCheckInfo added in v0.16.7

func FrameCheckInfo(ci gopacket.CaptureInfo) FrameCheck

type IEEE802154

type IEEE802154 struct {
	layers.BaseLayer
	FrameControl                                   uint16
	Sequence                                       byte
	SequenceSuppressed                             bool
	DestinationPAN, SourcePAN, Destination, Source []byte
	HeaderLength                                   int
	PayloadProtocol                                string
	HasFCS, FCSValid                               bool
	FCS                                            uint16
}

func (*IEEE802154) LayerType

func (*IEEE802154) LayerType() gopacket.LayerType

func (*IEEE802154) LinkFlow

func (l *IEEE802154) LinkFlow() gopacket.Flow

func (*IEEE802154) ScopeTag

func (l *IEEE802154) ScopeTag() string

type LinkFrame added in v0.16.9

type LinkFrame struct {
	Type                                           uint32
	Protocol, Source, Destination, PayloadProtocol string
	Header, Payload                                []byte
	Decoded                                        []byte
	Fields                                         map[string]string
	Qualifications                                 []string
	ALP                                            *ALPFrame
}

func (*LinkFrame) LayerContents added in v0.16.9

func (l *LinkFrame) LayerContents() []byte

func (*LinkFrame) LayerPayload added in v0.16.9

func (l *LinkFrame) LayerPayload() []byte

func (*LinkFrame) LayerType added in v0.16.9

func (*LinkFrame) LayerType() gopacket.LayerType

type USBMetadata added in v0.16.9

type USBMetadata struct{ Fields map[string]string }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL