summaryrefslogtreecommitdiffhomepage
path: root/lib/rtnl.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2025-01-25 01:24:14 +0100
committerJo-Philipp Wich <jo@mein.io>2025-01-25 01:24:14 +0100
commit5cbd32514187f0888227acef120e869cc78ff53d (patch)
tree5c6ebc646ef80ed0dc91c7fcd43841aca31ca89d /lib/rtnl.c
parenteb529ff233f80760f4dd10cb641288c4528da797 (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