commit | 5ea97658e78b6ce9fb768ffdd6a4b682c5df8e90 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Tue May 01 20:41:40 2012 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Tue May 01 20:41:40 2012 +0000 |
tree | f1a77479a648c4bd12330b9c97666f351af51540 | |
parent | 043b5f81429412cf23d578d1dc2b45107a8352e5 [diff] |
Fix recvmmsg decode: do not show more data than actually returned This change complements recent fix for recvmsg decoding. * net.c (printmmsghdr): Add msg_len parameter to pass down to do_msghdr. When this parameter is zero, pass mmsghdr.msg_len to do_msghdr instead. (decode_mmsg): Add msg_len parameter, pass it down to printmmsghdr. (sys_sendmmsg): Call decode_mmsg with msg_len == (unsigned long) -1L. (sys_recvmmsg): Call decode_mmsg with msg_len == 0.