rtr7 / router7

router7 is a small home internet router completely written in Go. It is implemented as a gokrazy appliance.
https://router7.org
Apache License 2.0
2.69k stars 110 forks source link

undefined: pcapgo.OpenEthernet #1

Closed bkaradzic closed 6 years ago

bkaradzic commented 6 years ago

I'm running into issue while building: src/github.com/rtr7/router7/cmd/captured/captured.go:48:18: undefined: pcapgo.OpenEthernet

I can't find OpenEthernet function in github.com/google/gopacket, there is only OpenLive, OpenOffline.

bkaradzic commented 6 years ago

I poked pcapgo module to just skip OpenEthernet, now getting: runtime.main_main·f: function main is undeclared in the main package

I'm building with: go version go1.11beta1 linux/amd64

ghost commented 6 years ago

https://travis-ci.org/rtr7/router7/jobs/403967134#L522 shows it's a patch added from https://patch-diff.githubusercontent.com/raw/google/gopacket/pull/470.patch

bkaradzic commented 6 years ago

That worked! Thanks!