Page MenuHomeFreeBSD

netlink: improve nl_soreceive()
ClosedPublic

Authored by glebius on Nov 28 2023, 4:19 AM.
Tags
None
Referenced Files
F97837757: D42785.diff
Tue, Oct 1, 11:32 AM
Unknown Object (File)
Mon, Sep 30, 9:59 AM
Unknown Object (File)
Sat, Sep 28, 4:50 AM
Unknown Object (File)
Thu, Sep 26, 8:12 AM
Unknown Object (File)
Tue, Sep 24, 12:12 PM
Unknown Object (File)
Sun, Sep 22, 5:49 PM
Unknown Object (File)
Sun, Sep 22, 2:13 AM
Unknown Object (File)
Fri, Sep 20, 10:17 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54647
Build 51536: arc lint + arc unit