diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-25 17:55:35 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-25 17:55:35 +0900 |
| commit | 372d509e5c72775bcd44d40e31a31bbdfd6a3f00 (patch) | |
| tree | 60fd7430c0ea08e5fa0282d6b95446279276e6ee /internal/netlink/rtnl.go | |
| parent | d62516ed1ee148c58eed60c4fa38c5dc2c3b9622 (diff) | |
internal/netlink: expose multicast groups
This also gets rid of the cached pid value for port since that prevents multiple sockets from being open at once.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/netlink/rtnl.go')
| -rw-r--r-- | internal/netlink/rtnl.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/netlink/rtnl.go b/internal/netlink/rtnl.go index e824f091..2f51fe58 100644 --- a/internal/netlink/rtnl.go +++ b/internal/netlink/rtnl.go @@ -11,7 +11,7 @@ type RouteConn struct{ *conn } // DialRoute returns the address of a newly connected [RouteConn]. func DialRoute() (*RouteConn, error) { - c, err := dial(syscall.NETLINK_ROUTE) + c, err := dial(syscall.NETLINK_ROUTE, 0) if err != nil { return nil, err } |
