Development discussion of WireGuard
 help / color / Atom feed
* [PATCH] device: use RTMGRP_IPV4_ROUTE to specify multicast groups mask
@ 2020-07-07 11:15 Tobias Klauser
  2020-07-13 23:58 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2020-07-07 11:15 UTC (permalink / raw)
  To: wireguard

Use the RTMGRP_IPV4_ROUTE const from x/sys/unix instead of using the
corresponding RTNLGRP_IPV4_ROUTE const to create the multicast groups
mask.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 device/sticky_linux.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/device/sticky_linux.go b/device/sticky_linux.go
index e3efc8694090..f1c7069f616a 100644
--- a/device/sticky_linux.go
+++ b/device/sticky_linux.go
@@ -206,7 +206,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 {
-- 
2.27.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] device: use RTMGRP_IPV4_ROUTE to specify multicast groups mask
  2020-07-07 11:15 [PATCH] device: use RTMGRP_IPV4_ROUTE to specify multicast groups mask Tobias Klauser
@ 2020-07-13 23:58 ` Jason A. Donenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2020-07-13 23:58 UTC (permalink / raw)
  To: Tobias Klauser; +Cc: WireGuard mailing list

Applied, thanks. -jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 11:15 [PATCH] device: use RTMGRP_IPV4_ROUTE to specify multicast groups mask Tobias Klauser
2020-07-13 23:58 ` Jason A. Donenfeld

Development discussion of WireGuard

Archives are clonable: git clone --mirror http://inbox.vuxu.org/wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git