Page MenuHomeFreeBSD

linux(4): Fixup the interface name translation in netlink
ClosedPublic

Authored by dchagin on Feb 21 2023, 10:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 6, 8:50 PM
Unknown Object (File)
Thu, Nov 27, 11:31 AM
Unknown Object (File)
Tue, Nov 25, 6:15 PM
Unknown Object (File)
Sat, Nov 22, 10:34 PM
Unknown Object (File)
Sat, Nov 22, 3:23 PM
Unknown Object (File)
Nov 14 2025, 2:16 PM
Unknown Object (File)
Nov 13 2025, 8:19 PM
Unknown Object (File)
Nov 12 2025, 8:52 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49946
Build 46838: arc lint + arc unit

Event Timeline

sys/compat/linux/linux_netlink.c
255

You need to check the message type as well, as this value is only valud for RTM_<NEW|DEL|GET>LINK.

Also - for readability I’d consider moving attribute rewriting to a separate function. This will help keep copy-all_nla function readable when more translations are added

LGTM

sys/compat/linux/linux_netlink.c
241

Nit: worth describing the return codes here.

252

I'd explicitly cast it to int, or make it a branch, to help reader understand the return codes.

254–264
This revision is now accepted and ready to land.Feb 22 2023, 2:52 PM
This revision now requires review to proceed.Feb 22 2023, 6:21 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 23 2023, 8:01 AM
This revision was automatically updated to reflect the committed changes.