Documentation ¶
Index ¶
- Constants
- Variables
- func Chan2Freq(channel int) int
- func Compress(data []byte) (bool, []byte, error)
- func Decompress(data []byte) ([]byte, error)
- func Freq2Chan(freq int) int
- func Info(id layers.Dot11InformationElementID, info []byte) *layers.Dot11InformationElement
- func IsBroadcast(dot11 *layers.Dot11) bool
- func Pack(from, to net.HardwareAddr, payload []byte, compress bool) (error, []byte)
- func PackOneOf(from, to net.HardwareAddr, peerID []byte, signature []byte, streamID uint64, ...) (error, []byte)
- func Parse(packet gopacket.Packet) (ok bool, radio *layers.RadioTap, dot11 *layers.Dot11)
- func Serialize(layers ...gopacket.SerializableLayer) (error, []byte)
- func Unpack(pkt gopacket.Packet, radio *layers.RadioTap, dot11 *layers.Dot11) (error, []byte)
Constants ¶
View Source
const ( IDWhisperPayload layers.Dot11InformationElementID = 222 IDWhisperCompression layers.Dot11InformationElementID = 223 IDWhisperIdentity layers.Dot11InformationElementID = 224 IDWhisperSignature layers.Dot11InformationElementID = 225 IDWhisperStreamHeader layers.Dot11InformationElementID = 226 )
Variables ¶
View Source
var ( SignatureAddr = net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad} SignatureAddrStr = "de:ad:be:ef:de:ad" BroadcastAddr = net.HardwareAddr{0xff, 0xff, 0xff, 0xff, 0xff, 0xff} )
View Source
var SerializationOptions = gopacket.SerializeOptions{ FixLengths: true, ComputeChecksums: true, }
Functions ¶
func Decompress ¶
func Info ¶
func Info(id layers.Dot11InformationElementID, info []byte) *layers.Dot11InformationElement
func IsBroadcast ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.