Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information