diff options
author | Michael Baikov <manpacket@gmail.com> | 2022-06-13 09:30:24 +0800 |
---|---|---|
committer | Michael Baikov <manpacket@gmail.com> | 2022-10-14 08:57:41 -0400 |
commit | 482a6b10460aa8121c440b01a83511d29b132412 (patch) | |
tree | be7fb40f368bf6d0205564d7ac8a4a7545b4e050 /src/sys/ptrace/linux.rs | |
parent | 3f637de8e027843e1b2c4e9a05f19b071ea00017 (diff) | |
download | nix-482a6b10460aa8121c440b01a83511d29b132412.zip |
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
Diffstat (limited to 'src/sys/ptrace/linux.rs')
0 files changed, 0 insertions, 0 deletions