forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: sockets: Update msg_controllen in recvmsg properly
According to recvmsg man page, msg_controllen should be set to the sum of the length of all control messages in the buffer. This is missing from the current recvmsg implementation. This commit aims to fix this by updating msg_controllen each time control data are added to the buffer. This commit also fixes cases where the msg_controllen is cleared incorrectly. Fixes zephyrproject-rtos#77303 (cherry picked from commit 5d643f4) Original-Signed-off-by: Axel Le Bourhis <[email protected]> GitOrigin-RevId: 5d643f4 Cr-Build-Id: 8738638626547930177 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8738638626547930177 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I22809d442ac56b4f293e52efa6a4a24f090ab02a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5810440 Tested-by: Ting Shen <[email protected]> Commit-Queue: Ting Shen <[email protected]> Tested-by: ChromeOS Prod (Robot) <[email protected]> Reviewed-by: Ting Shen <[email protected]>
- Loading branch information
Showing
3 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters