func (ns NsHandle) Equal(other NsHandle) bool {
	if ns == other {
		return true
	}
	var s1, s2 unix.Stat_t
	if err := unix.Fstat(int(ns), &s1); err != nil {
		return false
	}
	if err := unix.Fstat(int(other), &s2); err != nil {
		return false
	}
	return (s1.Dev == s2.Dev) && (s1.Ino == s2.Ino)
}
Equal determines if two network handles refer to the same network
namespace. This is done by comparing the device and inode that the
file descriptors point to.
package netns
import (
	"fmt"
	"golang.org/x/sys/unix"
)
type NsHandle int