Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MSG_PEEK to the allowed flags check in isotp_recvmsg function #52

Merged
merged 1 commit into from
Mar 27, 2022

Conversation

derek-will
Copy link
Contributor

To be able to get the size of the buffer to allocate for the next message without removing the message from the receive queue, the caller needs to be able to set the flags to MSG_PEEK | MSG_TRUNC.

This patch restores the ability of the caller to set the MSG_PEEK flag in a call to recv which was accidentally removed while adding support for the MSG_TRUNC flag in this commit.

@hartkopp hartkopp merged commit 3cd51a4 into hartkopp:master Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants