mirror of
https://github.com/vishvananda/netlink.git
synced 2025-09-26 20:01:13 +08:00

Adds the ability to set and retrieve network namespace IDs. This is useful, for example, for determining the "other side" of a veth pair.
20 lines
330 B
Go
20 lines
330 B
Go
// +build !linux
|
|
|
|
package netlink
|
|
|
|
func GetNetNsIdByPid(pid int) (int, error) {
|
|
return 0, ErrNotImplemented
|
|
}
|
|
|
|
func SetNetNsIdByPid(pid, nsid int) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func GetNetNsIdByFd(fd int) (int, error) {
|
|
return 0, ErrNotImplemented
|
|
}
|
|
|
|
func SetNetNsIdByFd(fd, nsid int) error {
|
|
return ErrNotImplemented
|
|
}
|