libnetwork ipvs godeps

This commit is contained in:
m1093782566
2017-07-31 21:38:37 +08:00
parent 4457e43e7b
commit dcefbaefec
71 changed files with 10700 additions and 644 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, " ")
}
@@ -46,8 +54,5 @@ func boolToByte(x bool) []byte {
}
func byteToBool(x byte) bool {
if uint8(x) != 0 {
return true
}
return false
return uint8(x) != 0
}