Documentation
¶
Index ¶
- Variables
- func DecodeDot11(data []byte, p gopacket.PacketBuilder, present bool) error
- func DecodeDot11View(data []byte, p gopacket.PacketBuilder, present bool) error
- func DecodeIEEE802154(data []byte, p gopacket.PacketBuilder) error
- func DecodeIEEE802154FCS(data []byte, p gopacket.PacketBuilder) error
- func DecodeRadioTap(data []byte, p gopacket.PacketBuilder, check *FrameCheck) error
- type ALPFrame
- type FrameCheck
- type IEEE802154
- type LinkFrame
- type USBMetadata
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 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 (*LinkFrame) LayerPayload ¶ added in v0.16.9
type USBMetadata ¶ added in v0.16.9
Click to show internal directories.
Click to hide internal directories.