1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 23:04:41 +00:00

Vendor changes for vishvananda/netlink

https://github.com/rancher/os/issues/1863
This commit is contained in:
niusmallnan
2017-12-19 09:13:13 +00:00
committed by niusmallnan
parent bd845cca31
commit 958bbef1f1
25 changed files with 1935 additions and 57 deletions

View File

@@ -6,12 +6,14 @@ import (
// Protinfo represents bridge flags from netlink.
type Protinfo struct {
Hairpin bool
Guard bool
FastLeave bool
RootBlock bool
Learning bool
Flood bool
Hairpin bool
Guard bool
FastLeave bool
RootBlock bool
Learning bool
Flood bool
ProxyArp bool
ProxyArpWiFi bool
}
// String returns a list of enabled flags
@@ -35,6 +37,12 @@ func (prot *Protinfo) String() string {
if prot.Flood {
boolStrings = append(boolStrings, "Flood")
}
if prot.ProxyArp {
boolStrings = append(boolStrings, "ProxyArp")
}
if prot.ProxyArpWiFi {
boolStrings = append(boolStrings, "ProxyArpWiFi")
}
return strings.Join(boolStrings, " ")
}