fix: updating gopacket to v1.1.16 fixed a bug which made wifi.recon off to timeout

This commit is contained in:
evilsocket 2019-02-06 12:24:00 +01:00
commit b450747f4e
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
41 changed files with 4693 additions and 819 deletions

View file

@ -22,6 +22,8 @@ useful, including:
Also, if you're looking to dive right into code, see the examples subdirectory
for numerous simple binaries built using gopacket libraries.
Minimum go version required is 1.5.
Basic Usage
gopacket takes in packet data as a []byte and decodes it into a packet with
@ -288,7 +290,10 @@ the packet's information. A quick example:
parser := gopacket.NewDecodingLayerParser(layers.LayerTypeEthernet, &eth, &ip4, &ip6, &tcp)
decoded := []gopacket.LayerType{}
for packetData := range somehowGetPacketData() {
err := parser.DecodeLayers(packetData, &decoded)
if err := parser.DecodeLayers(packetData, &decoded); err != nil {
fmt.Fprintf(os.Stderr, "Could not decode layers: %v\n", err)
continue
}
for _, layerType := range decoded {
switch layerType {
case layers.LayerTypeIPv6: