Версия 0.1.0 #1
@@ -10,10 +10,11 @@ const (
|
||||
INET
|
||||
ARP
|
||||
BRIDGE
|
||||
NETDEV
|
||||
)
|
||||
|
||||
func (f Type) String() string {
|
||||
switch f {
|
||||
func (t Type) String() string {
|
||||
switch t {
|
||||
case IP:
|
||||
return "ip"
|
||||
case IP6:
|
||||
@@ -24,7 +25,9 @@ func (f Type) String() string {
|
||||
return "arp"
|
||||
case BRIDGE:
|
||||
return "bridge"
|
||||
case NETDEV:
|
||||
return "netdev"
|
||||
default:
|
||||
return fmt.Sprintf("Encoding(%d)", f)
|
||||
return fmt.Sprintf("unknown family %d", t)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user