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

22
vendor/github.com/vishvananda/netlink/neigh.go generated vendored Normal file
View File

@ -0,0 +1,22 @@
package netlink
import (
"fmt"
"net"
)
// Neigh represents a link layer neighbor from netlink.
type Neigh struct {
LinkIndex int
Family int
State int
Type int
Flags int
IP net.IP
HardwareAddr net.HardwareAddr
}
// String returns $ip/$hwaddr $label
func (neigh *Neigh) String() string {
return fmt.Sprintf("%s %s", neigh.IP, neigh.HardwareAddr)
}