github.com/vishvananda/netlink@v1.3.0/link_tuntap_linux.go (about)

     1  package netlink
     2  
     3  // ideally golang.org/x/sys/unix would define IfReq but it only has
     4  // IFNAMSIZ, hence this minimalistic implementation
     5  const (
     6  	SizeOfIfReq = 40
     7  	IFNAMSIZ    = 16
     8  )
     9  
    10  type ifReq struct {
    11  	Name  [IFNAMSIZ]byte
    12  	Flags uint16
    13  	pad   [SizeOfIfReq - IFNAMSIZ - 2]byte
    14  }