From 71484f933f0dc6c9fc4f8c2ca4c75c9495016572 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Sun, 29 Sep 2024 23:30:32 +0300 Subject: [PATCH] tun: OpenbSD: fix struct member types See and , respectively. --- src/tun/tun_openbsd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tun/tun_openbsd.go b/src/tun/tun_openbsd.go index f6dcddd0..c84d6e28 100644 --- a/src/tun/tun_openbsd.go +++ b/src/tun/tun_openbsd.go @@ -19,8 +19,8 @@ import ( const SIOCSIFADDR_IN6 = (0x80000000) | ((288 & 0x1fff) << 16) | uint32(byte('i'))<<8 | 12 type in6_addrlifetime struct { - ia6t_expire float64 - ia6t_preferred float64 + ia6t_expire int64 + ia6t_preferred int64 ia6t_vltime uint32 ia6t_pltime uint32 } @@ -28,7 +28,7 @@ type in6_addrlifetime struct { type sockaddr_in6 struct { sin6_len uint8 sin6_family uint8 - sin6_port uint8 + sin6_port uint16 sin6_flowinfo uint32 sin6_addr [8]uint16 sin6_scope_id uint32