Page MenuHomeFreeBSD

netlink: improve nl_soreceive()
ClosedPublic

Authored by glebius on Nov 28 2023, 4:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 24, 10:42 PM
Unknown Object (File)
Fri, May 24, 10:42 PM
Unknown Object (File)
Fri, May 24, 10:42 PM
Unknown Object (File)
Fri, May 24, 10:41 PM
Unknown Object (File)
Fri, May 24, 10:29 PM
Unknown Object (File)
Thu, May 9, 12:42 PM
Unknown Object (File)
Thu, May 9, 9:08 AM
Unknown Object (File)
Wed, May 8, 11:32 AM
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