Page MenuHomeFreeBSD

netlink: improve nl_soreceive()
ClosedPublic

Authored by glebius on Nov 28 2023, 4:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 2:44 PM
Unknown Object (File)
Thu, Nov 7, 5:33 AM
Unknown Object (File)
Mon, Nov 4, 5:18 PM
Unknown Object (File)
Mon, Oct 21, 3:35 AM
Unknown Object (File)
Thu, Oct 17, 4:23 PM
Unknown Object (File)
Oct 16 2024, 12:50 PM
Unknown Object (File)
Oct 15 2024, 8:25 PM
Unknown Object (File)
Oct 15 2024, 4:22 PM
Subscribers

Details

Summary

The previous commit conservatively mimiced operation of soreceive_generic().
The new code does two things:

  • parses Netlink message headers and always returns at least one full nlmsg
  • hides nl_buf boundaries from the userland, copying out several at once

More details can be found in the large comment block added.

Diff Detail

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