diff --git a/atalk/raw.go b/atalk/raw.go index 6ec3f19..a7de7aa 100644 --- a/atalk/raw.go +++ b/atalk/raw.go @@ -2,13 +2,14 @@ package atalk import ( "fmt" + "time" "github.com/google/gopacket/pcap" ) // 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, true, pcap.BlockForever) + handle, err := pcap.OpenLive(device, 4096, true, 100*time.Millisecond) if err != nil { return nil, fmt.Errorf("opening device %q: %w", device, err) }