summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-05-07 12:21:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-07 12:21:27 +0200
commit39e0b6dade0c64673330a26d4eb86d624337daf0 (patch)
tree531712de80e10fcb05dc6de6cc58d63a777bbc3a
parent7121927b8743a9177fda6ddbdfcf9ccd97989417 (diff)
tun: format
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--tun/alignment_windows_test.go2
-rw-r--r--tun/tun_freebsd.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/tun/alignment_windows_test.go b/tun/alignment_windows_test.go
index ddb3e3f..b765cca 100644
--- a/tun/alignment_windows_test.go
+++ b/tun/alignment_windows_test.go
@@ -64,4 +64,4 @@ func TestNativeTunAlignment(t *testing.T) {
}
checkAlignment(t, "NativeTun.rate", unsafe.Offsetof(tun.rate))
-} \ No newline at end of file
+}
diff --git a/tun/tun_freebsd.go b/tun/tun_freebsd.go
index c4c6b64..dc9eb3e 100644
--- a/tun/tun_freebsd.go
+++ b/tun/tun_freebsd.go
@@ -100,10 +100,10 @@ func (tun *NativeTun) routineRouteListener(tunIfindex int) {
continue
}
- if data[3 /* type */ ] != unix.RTM_IFINFO {
+ if data[3 /* type */] != unix.RTM_IFINFO {
continue
}
- ifindex := int(*(*uint16)(unsafe.Pointer(&data[12 /* ifindex */ ])))
+ ifindex := int(*(*uint16)(unsafe.Pointer(&data[12 /* ifindex */])))
if ifindex != tunIfindex {
continue
}