mirror of
https://github.com/bettercap/bettercap
synced 2025-08-13 02:06:57 -07:00
fix: updating gopacket to v1.1.16 fixed a bug which made wifi.recon off to timeout
This commit is contained in:
parent
4c5a776f86
commit
b450747f4e
41 changed files with 4693 additions and 819 deletions
7
vendor/github.com/google/gopacket/doc.go
generated
vendored
7
vendor/github.com/google/gopacket/doc.go
generated
vendored
|
@ -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, ð, &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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue