Skip to content

Commit 482a6b1

Browse files
committed
socket: stop setting vector length inside read_mhdr
CMSG_FIRSTHDR/CMSG_NEXTHDR operate in terms of pointers contained inside msghdr structure, vector capacity doesn't matter for them. This would change external behavior of recvmsg/recvmmsg in a sense that buffer passed to store controll messages won't have it's length updated but intended way to receive control messages is with cmsgs iterator on `RecvMsg` which would still work. This change is required to allow using a single vector to store control messages from multiple packets
1 parent 3f637de commit 482a6b1

File tree

1 file changed

+131
-139
lines changed

1 file changed

+131
-139
lines changed

0 commit comments

Comments
 (0)