Page MenuHomeFreeBSD

netlink: Use unsigned type in nl_process_nbuf
ClosedPublic

Authored by emaste on Jun 5 2026, 7:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 6, 12:02 PM
Unknown Object (File)
Fri, Sep 4, 6:41 PM
Unknown Object (File)
Sat, Aug 29, 2:27 PM
Unknown Object (File)
Sat, Aug 29, 12:39 PM
Unknown Object (File)
Sat, Aug 29, 4:11 AM
Unknown Object (File)
Sat, Aug 29, 2:37 AM
Unknown Object (File)
Fri, Aug 28, 9:35 PM
Unknown Object (File)
Fri, Aug 28, 5:44 PM

Details

Summary

nlmsghdr::nlmsg_len and nl_buf::offset are u_int. Make msglen match.

Diff Detail

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

Event Timeline

emaste requested review of this revision.Jun 5 2026, 7:20 PM
This revision is now accepted and ready to land.Jun 5 2026, 7:24 PM
glebius requested changes to this revision.Jun 8 2026, 6:03 PM

Original Netlink submission had a ton of violations like that and we are slowly but surely fixing them.

sys/netlink/netlink_io.c
347–352

While here I'd suggest to bring this to style.

This revision now requires changes to proceed.Jun 8 2026, 6:03 PM

var declaration at top of block

This revision was not accepted when it landed; it landed in state Needs Review.Jun 8 2026, 7:52 PM
This revision was automatically updated to reflect the committed changes.