aboutsummaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-03-04 17:21:54 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-17 23:07:11 -0600
commitb33219c2cfd430215f2230c15fc4c2f888a081c2 (patch)
tree433a7a694c35270e239d3705140b49c97d862052 /device
parentsend: account for zero mtu (diff)
downloadwireguard-go-b33219c2cfd430215f2230c15fc4c2f888a081c2.tar.xz
wireguard-go-b33219c2cfd430215f2230c15fc4c2f888a081c2.zip
global: use RTMGRP_* consts from x/sys/unix
Update the golang.org/x/sys/unix dependency and use the newly introduced RTMGRP_* consts instead of using the corresponding RTNLGRP_* const to create a mask. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'device')
-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 {