From b33219c2cfd430215f2230c15fc4c2f888a081c2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 4 Mar 2020 17:21:54 +0100 Subject: 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 --- device/conn_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device') 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 { -- cgit v1.2.3-59-g8ed1b