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)})
Functions ¶
func DecodeIEEE802154 ¶
func DecodeIEEE802154(data []byte, p gopacket.PacketBuilder) error
func DecodeIEEE802154FCS ¶
func DecodeIEEE802154FCS(data []byte, p gopacket.PacketBuilder) error
Types ¶
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
Click to show internal directories.
Click to hide internal directories.