summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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
}