wgengine/monitor: don't log unhandled RTM_{NEW,DEL}LINK messages

These aren't handled, but it's not an error to get one.

Fixes #6806

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I1fcb9032ac36420aa72a048bf26f58360b9461f9
pull/6831/head
Andrew Dunham 2 years ago
parent be10b529ec
commit 1011e64ad7

@ -228,6 +228,10 @@ func (c *nlConn) Receive() (message, error) {
c.logf("%+v", rdm)
}
return rdm, nil
case unix.RTM_NEWLINK, unix.RTM_DELLINK:
// This is an unhandled message, but don't print an error.
// See https://github.com/tailscale/tailscale/issues/6806
return unspecifiedMessage{}, nil
default:
c.logf("unhandled netlink msg type %+v, %q", msg.Header, msg.Data)
return unspecifiedMessage{}, nil

Loading…
Cancel
Save