de-ip-hdmi icon indicating copy to clipboard operation
de-ip-hdmi copied to clipboard

not enough arguments in call to raw.ListenPacket

Open spenco100 opened this issue 5 years ago • 1 comments

I am using MacOS Mojave trying to use your package. When I run go install main.go All I get is: './main.go:256:32: not enough arguments in call to raw.ListenPacket ./main.go:256:38: undefined: raw.ProtocolARP' I am suspecting there is some problem with my Go installation or PCAP since I am a total noob to Go and programming in general. Can anyone offer some help?

spenco100 avatar Feb 18 '19 08:02 spenco100

ProtocolARP doesn't appear to be defined. I changed that line to read: conn, err := raw.ListenPacket(ifc, 54, nil)

and it compiled fine. 54 is the protocol number for ARP according to https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

jcherniak avatar Jul 07 '19 04:07 jcherniak