diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-07 12:21:27 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-07 12:21:27 +0200 |
commit | 39e0b6dade0c64673330a26d4eb86d624337daf0 (patch) | |
tree | 531712de80e10fcb05dc6de6cc58d63a777bbc3a /tun | |
parent | 7121927b8743a9177fda6ddbdfcf9ccd97989417 (diff) |
tun: format
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun')
-rw-r--r-- | tun/alignment_windows_test.go | 2 | ||||
-rw-r--r-- | 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 } |