vendor: github.com/vishvananda/netlink@a1f8555
Update to current master, to get IPVLAN L3s def.
This commit is contained in:
10
vendor/github.com/vishvananda/netlink/link.go
generated
vendored
10
vendor/github.com/vishvananda/netlink/link.go
generated
vendored
@ -26,11 +26,15 @@ type LinkAttrs struct {
|
||||
Name string
|
||||
HardwareAddr net.HardwareAddr
|
||||
Flags net.Flags
|
||||
RawFlags uint32
|
||||
ParentIndex int // index of the parent link device
|
||||
MasterIndex int // must be the index of a bridge
|
||||
Namespace interface{} // nil | NsPid | NsFd
|
||||
Alias string
|
||||
Statistics *LinkStatistics
|
||||
Promisc int
|
||||
Xdp *LinkXdp
|
||||
EncapType string
|
||||
}
|
||||
|
||||
// NewLinkAttrs returns LinkAttrs structure filled with default values
|
||||
@ -69,6 +73,11 @@ type LinkStatistics struct {
|
||||
TxCompressed uint32
|
||||
}
|
||||
|
||||
type LinkXdp struct {
|
||||
Fd int
|
||||
Attached bool
|
||||
}
|
||||
|
||||
// Device links cannot be created via netlink. These links
|
||||
// are links created by udev like 'lo' and 'etho0'
|
||||
type Device struct {
|
||||
@ -253,6 +262,7 @@ type IPVlanMode uint16
|
||||
const (
|
||||
IPVLAN_MODE_L2 IPVlanMode = iota
|
||||
IPVLAN_MODE_L3
|
||||
IPVLAN_MODE_L3S
|
||||
IPVLAN_MODE_MAX
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user