summaryrefslogtreecommitdiffhomepage
path: root/device/conn_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/conn_linux.go')
-rw-r--r--device/conn_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/conn_linux.go b/device/conn_linux.go
index 94b6d5c..e90b0e3 100644
--- a/device/conn_linux.go
+++ b/device/conn_linux.go
@@ -118,7 +118,7 @@ func createNetlinkRouteSocket() (int, error) {
}
saddr := &unix.SockaddrNetlink{
Family: unix.AF_NETLINK,
- Groups: uint32(1 << (unix.RTNLGRP_IPV4_ROUTE - 1)),
+ Groups: unix.RTMGRP_IPV4_ROUTE,
}
err = unix.Bind(sock, saddr)
if err != nil {