Denys Vlasenko e0bc222263 Fix recvmsg decode: do not show more data than actually returned
I noticed that "hostname -d" talks over netlink and gets 20 bytes
of response, but we show entire 1024 bytes of iov.
This changes fixes that.

* defs.h: New function tprint_iov_upto.
* io.c (tprint_iov_upto): Definition of this function.
(tprint_iov): Call tprint_iov_upto.
* net.c (do_msghdr): Add data_size parameter, pass it down to tprint_iov_upto.
(printmsghdr): Add data_size parameter, pass it down to do_msghdr.
(printmmsghdr): Call do_msghdr with data_size==ULONG_MAX.
(sys_sendmsg): Call printmsghdr with data_size==ULONG_MAX.
(sys_recvmsg): Call printmsghdr with data_size==tcp->u_rval.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-04-28 14:26:18 +02:00
2012-04-18 15:02:40 +00:00
2012-03-15 20:17:49 +00:00
2011-03-14 15:32:38 +00:00
2012-04-16 18:16:13 +02:00
2009-07-08 21:01:21 +00:00
2012-04-18 15:02:40 +00:00
2012-04-27 23:38:24 +00:00
2011-03-15 15:46:52 +00:00
2012-04-16 18:16:13 +02:00
2012-04-18 15:02:40 +00:00
2012-02-25 15:29:21 +01:00
2012-04-18 15:27:25 +00:00
2012-04-16 13:00:01 +02:00
2012-04-18 15:27:25 +00:00
2012-04-18 15:27:25 +00:00
2012-04-18 15:02:40 +00:00
2012-04-06 14:39:15 +00:00
2012-04-27 23:38:45 +00:00
2012-04-18 15:02:40 +00:00
2012-04-16 13:00:01 +02:00
2012-02-25 15:29:21 +01:00
2009-07-08 21:01:21 +00:00
2012-04-27 23:38:44 +00:00
2012-04-18 15:02:40 +00:00
2012-04-18 15:27:25 +00:00

This is strace, a system call tracer for Linux.

strace is released under a Berkeley-style license at the request
of Paul Kranenburg; see the file COPYRIGHT for details.

See the file CREDITS for a list of authors and other contributors.

See the file INSTALL for compilation and installation instructions.

See the file NEWS for information on what has changed in recent
versions.

You can get the latest version of strace from its homepage at
http://sourceforge.net/projects/strace/ .

Please send bug reports and enhancements to the strace
mailinglist at strace-devel@lists.sourceforge.net.
Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%