internal/netlink: switch to recvmsg/sendmsg
All checks were successful
Test / Create distribution (push) Successful in 1m15s
Test / Sandbox (push) Successful in 3m6s
Test / Hakurei (push) Successful in 4m13s
Test / ShareFS (push) Successful in 4m20s
Test / Sandbox (race detector) (push) Successful in 5m35s
Test / Hakurei (race detector) (push) Successful in 6m40s
Test / Flake checks (push) Successful in 1m25s

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
}