benjojo / de-ip-hdmi

Convert a IP HDMI converter into a MKV stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not enough arguments in call to raw.ListenPacket

spenco100 opened this issue · 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?

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