summaryrefslogtreecommitdiffhomepage
path: root/tun
diff options
context:
space:
mode:
authorJonathan Tooker <jonathan.tooker@netprotect.com>2019-10-21 15:52:26 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-22 11:51:25 +0200
commitf7d0edd2ecf5f7f5aed188823de0a122691a7de6 (patch)
tree9aac319a2e6bc9a7d66e9586a606f46c4defbacf /tun
parentffffbbcc8a3344a45c45884f11a1aee1407615ab (diff)
global: fix a few typos courtesy of codespell
Signed-off-by: Jonathan Tooker <jonathan.tooker@netprotect.com>
Diffstat (limited to 'tun')
-rw-r--r--tun/tun_linux.go2
-rw-r--r--tun/wintun/setupapi/types_windows.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tun/tun_linux.go b/tun/tun_linux.go
index 61902e9..36b43ea 100644
--- a/tun/tun_linux.go
+++ b/tun/tun_linux.go
@@ -35,7 +35,7 @@ type NativeTun struct {
name string // name of interface
errors chan error // async error handling
events chan Event // device related events
- nopi bool // the device was pased IFF_NO_PI
+ nopi bool // the device was passed IFF_NO_PI
netlinkSock int
netlinkCancel *rwcancel.RWCancel
hackListenerClosed sync.Mutex
diff --git a/tun/wintun/setupapi/types_windows.go b/tun/wintun/setupapi/types_windows.go
index 136b4be..239d80b 100644
--- a/tun/wintun/setupapi/types_windows.go
+++ b/tun/wintun/setupapi/types_windows.go
@@ -57,7 +57,7 @@ type DevInfoData struct {
_ uintptr
}
-// DevInfoListDetailData is a structure for detailed information on a device information set (used for SetupDiGetDeviceInfoListDetail which supercedes the functionality of SetupDiGetDeviceInfoListClass).
+// DevInfoListDetailData is a structure for detailed information on a device information set (used for SetupDiGetDeviceInfoListDetail which supersedes the functionality of SetupDiGetDeviceInfoListClass).
type DevInfoListDetailData struct {
size uint32 // Warning: unsafe.Sizeof(DevInfoListDetailData) > sizeof(SP_DEVINFO_LIST_DETAIL_DATA) when GOARCH == 386 => use sizeofDevInfoListDetailData const.
ClassGUID windows.GUID