Page MenuHomeFreeBSD

linux: fix reporting NL_RTM_DELLINK to Netlink sockets
ClosedPublic

Authored by glebius on Aug 16 2025, 12:27 AM.
Tags
None
Referenced Files
F144519681: D51927.diff
Mon, Feb 9, 3:10 AM
Unknown Object (File)
Wed, Jan 28, 5:59 AM
Unknown Object (File)
Thu, Jan 22, 1:15 PM
Unknown Object (File)
Dec 26 2025, 3:48 PM
Unknown Object (File)
Dec 23 2025, 2:03 AM
Unknown Object (File)
Dec 19 2025, 1:35 AM
Unknown Object (File)
Nov 25 2025, 12:28 PM
Unknown Object (File)
Nov 1 2025, 9:01 PM
Subscribers

Details

Summary

The problem is that ifname_bsd_to_linux_name() requires the interface to
exist. But when we are in the context of ifnet_departure_event
EVENTHANDLER(9), it does not. Instead of silently dropping the message,
let's send the FreeBSD name verbatim. At the moment special translation
is done for IFT_LOOPBACK and IFT_ETHER only, and these two kinds of
interfaces usually don't depart. So, this is not a final fix, but
definitely an improvement. While here, simplify the associated code.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable