Merge pull request #668 from coderobe/patch-1

modules/wifi: fix SetSnapLen error message text
This commit is contained in:
Simone Margaritelli 2020-01-16 15:37:39 +01:00 committed by GitHub
commit 0e4f752ce4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -491,7 +491,7 @@ func (mod *WiFiModule) Configure() error {
if err = ihandle.SetRFMon(true); err != nil {
return fmt.Errorf("error while setting interface %s in monitor mode: %s", tui.Bold(ifName), err)
} else if err = ihandle.SetSnapLen(65536); err != nil {
return fmt.Errorf("error while settng span len: %s", err)
return fmt.Errorf("error while settng snapshot length: %s", err)
}
/*
* We don't want to pcap.BlockForever otherwise pcap_close(handle)