Page MenuHomeFreeBSD

netlink: improve nl_soreceive()
ClosedPublic

Authored by glebius on Nov 28 2023, 4:19 AM.
Tags
None
Referenced Files
F108366565: D42785.diff
Fri, Jan 24, 5:05 AM
Unknown Object (File)
Dec 14 2024, 9:12 AM
Unknown Object (File)
Dec 12 2024, 1:23 PM
Unknown Object (File)
Dec 11 2024, 10:45 PM
Unknown Object (File)
Dec 4 2024, 6:58 PM
Unknown Object (File)
Dec 4 2024, 10:53 AM
Unknown Object (File)
Dec 2 2024, 6:36 PM
Unknown Object (File)
Nov 30 2024, 4:42 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54638
Build 51527: arc lint + arc unit