summaryrefslogtreecommitdiff
path: root/netlink.go
diff options
context:
space:
mode:
Diffstat (limited to 'netlink.go')
-rw-r--r--netlink.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/netlink.go b/netlink.go
index e701dd3..028c9df 100644
--- a/netlink.go
+++ b/netlink.go
@@ -10,6 +10,8 @@ type Family int
func (f *Family) UnmarshalFlag(value string) error {
switch (value) {
+ case "unspec", "all":
+ *f = netlink.FAMILY_ALL
case "inet", "ipv4":
*f = netlink.FAMILY_V4
case "inet6", "ipv6":