Enable promisc

This commit is contained in:
Josh Deprez 2024-04-05 13:27:43 +11:00
parent 59960986c9
commit ed877ae731
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -8,7 +8,7 @@ import (
// StartPcap opens an AppleTalk and AARP listening session on a network device.
func StartPcap(device string) (*pcap.Handle, error) {
handle, err := pcap.OpenLive(device, 4096, false, pcap.BlockForever)
handle, err := pcap.OpenLive(device, 4096, true, pcap.BlockForever)
if err != nil {
return nil, fmt.Errorf("opening device %q: %w", device, err)
}