OpenEthernet → NewEthernetHandle, remove kludge

This commit is contained in:
Michael Stapelberg 2018-09-07 00:50:41 +02:00
parent aa404c3c54
commit ea4ffa7bec
2 changed files with 1 additions and 3 deletions

View File

@ -11,8 +11,6 @@ go:
install:
- go get -t -v -d ./...
# TODO: get rid of this once https://github.com/google/gopacket/pull/470 is merged
- (cd $GOPATH/src/github.com/google/gopacket && wget -qO- https://patch-diff.githubusercontent.com/raw/google/gopacket/pull/470.patch | patch -p1)
script:
# Check whether files are syntactically correct.

View File

@ -45,7 +45,7 @@ var (
func capturePackets(ctx context.Context) (chan gopacket.Packet, error) {
packets := make(chan gopacket.Packet)
for _, ifname := range []string{"uplink0", "lan0"} {
handle, err := pcapgo.OpenEthernet(ifname)
handle, err := pcapgo.NewEthernetHandle(ifname)
if err != nil {
return nil, err
}