mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 06:05:06 +03:00
Fix definition of SIOCAIFADDR_IN6
This commit is contained in:
parent
8e86c4b853
commit
5d2dd061f0
1 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@ import "unsafe"
|
|||
import "strings"
|
||||
import "strconv"
|
||||
import "encoding/binary"
|
||||
// import "fmt"
|
||||
|
||||
import water "github.com/songgao/water"
|
||||
|
||||
|
@ -23,7 +24,7 @@ func (tun *tunDevice) setup(ifname string, addr string, mtu int) error {
|
|||
|
||||
const AF_INET6 = 30
|
||||
const IN6_IFF_NODAD = 0x0020
|
||||
const SIOCAIFADDR_IN6 = (0x80000000) | ((4 & 0x1fff) << 16) | uint32(byte('i'))<<8 | 26
|
||||
const SIOCAIFADDR_IN6 = 2155899162
|
||||
|
||||
type in6_addrlifetime struct {
|
||||
ia6t_expire float64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue