de-ip-hdmi
de-ip-hdmi copied to clipboard
not enough arguments in call to raw.ListenPacket
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?
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