Page MenuHomeFreeBSD

netlink: improve nl_soreceive()
ClosedPublic

Authored by glebius on Nov 28 2023, 4:19 AM.
Tags
None
Referenced Files
F132272183: D42785.id130676.diff
Wed, Oct 15, 9:40 AM
Unknown Object (File)
Tue, Oct 14, 1:42 AM
Unknown Object (File)
Wed, Oct 8, 5:29 PM
Unknown Object (File)
Tue, Oct 7, 4:10 AM
Unknown Object (File)
Fri, Oct 3, 2:46 AM
Unknown Object (File)
Thu, Oct 2, 4:23 AM
Unknown Object (File)
Mon, Sep 29, 11:41 PM
Unknown Object (File)
Mon, Sep 29, 10:53 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