
ADDED: * netx now has a ton of netmask conversion functions for IPv4 netmasks. (IPv6 doesn't really *have* netmasks, so it was intentionally excluded).
14 lines
181 B
Go
14 lines
181 B
Go
//go:build !windows
|
|
|
|
package netx
|
|
|
|
import (
|
|
`golang.org/x/sys/unix`
|
|
)
|
|
|
|
const (
|
|
AFUnspec uint16 = unix.AF_UNSPEC
|
|
AFInet uint16 = unix.AF_INET
|
|
AFInet6 uint16 = unix.AF_INET6
|
|
)
|