vendor: add CNI invoke, ip, ipam, and hwaddr packages

This commit is contained in:
Dan Williams
2017-04-18 22:04:20 -05:00
parent 7309649a66
commit 6b3bf7ea7b
89 changed files with 14428 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package netlink
// ideally golang.org/x/sys/unix would define IfReq but it only has
// IFNAMSIZ, hence this minimalistic implementation
const (
SizeOfIfReq = 40
IFNAMSIZ = 16
)
type ifReq struct {
Name [IFNAMSIZ]byte
Flags uint16
pad [SizeOfIfReq - IFNAMSIZ - 2]byte
}