From 39e0b6dade0c64673330a26d4eb86d624337daf0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 7 May 2021 12:21:27 +0200 Subject: tun: format Signed-off-by: Jason A. Donenfeld --- tun/alignment_windows_test.go | 2 +- tun/tun_freebsd.go | 4 ++-- 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 } -- cgit v1.2.3