From c0464084f143799f0e58d80c0fbd939300dda259 Mon Sep 17 00:00:00 2001 From: Mark Dietzer Date: Wed, 4 Jan 2023 21:34:31 -0800 Subject: [PATCH] use new fork package (#31) --- go.mod | 4 +--- go.sum | 4 ++-- syscalls_darwin.go | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 7aa23d9..878fc2c 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/Doridian/water go 1.19 require ( - github.com/google/gopacket v1.1.19 + github.com/Doridian/gopacket v1.2.0 golang.org/x/sys v0.4.0 golang.zx2c4.com/wireguard v0.0.0-20220703234212-c31a7b1ab478 ) @@ -12,5 +12,3 @@ require ( golang.org/x/net v0.5.0 // indirect golang.zx2c4.com/wintun v0.0.0-20211104114900-415007cec224 // indirect ) - -replace github.com/google/gopacket v1.1.19 => github.com/Doridian/gopacket v1.1.19 diff --git a/go.sum b/go.sum index 6187835..47228fe 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/Doridian/gopacket v1.1.19 h1:BI1RgJ+3m+VnBjWWSxLqnOWaoKSw3x8jSWxzcMi187E= -github.com/Doridian/gopacket v1.1.19/go.mod h1:E87iaOYopHawbSWHXDGMgIHcsbXTlTZ7+LgQhuKfIno= +github.com/Doridian/gopacket v1.2.0 h1:/2Iji4fRpL+iFArv1+EqK0Ay097hap2cu0hmUsqrjXo= +github.com/Doridian/gopacket v1.2.0/go.mod h1:16EwY3JsEHp3TFeSRcmSC9yOdG8GkFAWImZaL13kOGc= github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= github.com/vishvananda/netns v0.0.1/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= diff --git a/syscalls_darwin.go b/syscalls_darwin.go index f6f36c9..ebbb4ab 100644 --- a/syscalls_darwin.go +++ b/syscalls_darwin.go @@ -13,7 +13,7 @@ import ( "syscall" "unsafe" - "github.com/google/gopacket/bsdbpf" + "github.com/Doridian/gopacket/bsdbpf" ) const appleUTUNCtl = "com.apple.net.utun_control"