OpenEthernet → NewEthernetHandle, remove kludge
This commit is contained in:
parent
aa404c3c54
commit
ea4ffa7bec
@ -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.
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user