Page MenuHomeFreeBSD

netlink: improve nl_soreceive()
ClosedPublic

Authored by glebius on Nov 28 2023, 4:19 AM.
Tags
None
Referenced Files
F104038946: D42785.diff
Mon, Dec 2, 6:36 PM
Unknown Object (File)
Sat, Nov 30, 4:42 AM
Unknown Object (File)
Sat, Nov 30, 1:49 AM
Unknown Object (File)
Fri, Nov 29, 7:17 AM
Unknown Object (File)
Mon, Nov 25, 4:07 PM
Unknown Object (File)
Mon, Nov 25, 11:49 AM
Unknown Object (File)
Sun, Nov 24, 1:15 AM
Unknown Object (File)
Sat, Nov 23, 10:47 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