1
0
forked from rosa/hakurei

internal/netlink: switch to recvmsg/sendmsg

These are more flexible than recvfrom/sendto.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-29 23:34:53 +09:00
parent 19c76e0831
commit 648079f42c
2 changed files with 15 additions and 15 deletions

View File

@@ -82,7 +82,7 @@ func (c *Conn) Consume(ctx context.Context, events chan<- *Message) error {
defer c.exitExcl()
for {
data, from, err := c.conn.Recvfrom(ctx, 0)
data, _, from, err := c.conn.Recvmsg(ctx, 0)
if err != nil {
return err
}