github.com/sagernet/netlink@v0.0.0-20240612041022-b9a21c07ac6a/netns_unspecified.go (about) 1 //go:build !linux 2 // +build !linux 3 4 package netlink 5 6 func GetNetNsIdByPid(pid int) (int, error) { 7 return 0, ErrNotImplemented 8 } 9 10 func SetNetNsIdByPid(pid, nsid int) error { 11 return ErrNotImplemented 12 } 13 14 func GetNetNsIdByFd(fd int) (int, error) { 15 return 0, ErrNotImplemented 16 } 17 18 func SetNetNsIdByFd(fd, nsid int) error { 19 return ErrNotImplemented 20 }