diff options
author | Jo-Philipp Wich <jo@mein.io> | 2025-01-25 01:24:14 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2025-01-25 01:24:14 +0100 |
commit | 5cbd32514187f0888227acef120e869cc78ff53d (patch) | |
tree | 5c6ebc646ef80ed0dc91c7fcd43841aca31ca89d /lib/rtnl.c | |
parent | eb529ff233f80760f4dd10cb641288c4528da797 (diff) |
socket: fix AF_PACKET recvmsg() and sockaddr formatting
- Do not unconditionally pass the `MSG_CMSG_CLOEXEC` flag to `recvmsg()`
invocations as not all protocol specific recvmsg implementations in the
kernel tolerate it; `packet_recvmsg()` for example will immediately
return yield `EINVAL` if any non-whitelisted flag is passed.
- Ensure that the HW address string buffer is zero-terminated when
converting MAC addresses from C to ucode values.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/rtnl.c')
0 files changed, 0 insertions, 0 deletions