tzsp

package module
v0.0.0-...-7230b77 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TZSPTypeReceived = 0
	TZSPEncap80211   = 18 << 8
	TZSPTagSignal    = 10
	TZSPTagRate      = 12
	TZSPTagFCS       = 17
	TZSPTagChannel   = 18
	TZSPTagOrigLen   = 41
	TZSPTagSensorMAC = 60
	TZSPTagEnd       = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewFromFile

func NewFromFile(fname string) (*Decoder, error)

func NewFromNetwork

func NewFromNetwork() (*Decoder, error)

func (*Decoder) Next

func (tzsp *Decoder) Next() (*Frame, error)

type Frame

type Frame map[string]interface{}

func (*Frame) DecodeIEEE80211

func (f *Frame) DecodeIEEE80211(buf []byte)

func (*Frame) DecodeTZSP

func (f *Frame) DecodeTZSP(buf []byte) (int, error)

func (*Frame) Print

func (f *Frame) Print()

type FrameIEEE80211

type FrameIEEE80211 struct {
	Control     uint16
	Duration    uint16
	Receiver    [6]uint8
	Transmitter [6]uint8
	Source      [6]uint8
}

type FrameTZSP

type FrameTZSP struct {
	Version       uint8
	Type          uint8
	Encapsulation uint16
	Tag           uint8
}

type TZSPTag

type TZSPTag struct {
	TZSPTag uint8
	Len     uint8
	Val     [6]uint8
}

Jump to

Keyboard shortcuts

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