[PATCH v9 1/4] Add a general netlink socket parser
Dmitry V. Levin
ldv at altlinux.org
Thu Jul 7 12:21:52 UTC 2016
On Wed, Jul 06, 2016 at 03:49:22PM +0000, Fabien Siron wrote:
> Introduce a general socket netlink parser which prints the header and a string
> for the remaining part of the buffer. It doesn't handle all the netlink flags
> and types because the parser needs more information. It will be done soon.
>
> * net.c (decode_sockbuf): New function.
> (SYS_FUNC(send), SYS_FUNC(sendto), SYS_FUNC(recv), SYS_FUNC(recvfrom)):
> Use it instead of printstr.
> * msghdr.c (print_msghdr): Pass IOV_DECODE_NETLINK to tprint_iov_upto() for
> netlink sockets.
> * netlink.c: New file.
> (decode_netlink): New function.
> * Makefile.am (strace_SOURCES): Add it.
> * defs.h (decode_netlink, getfdproto): New prototypes.
> (printsock): Change return type to int.
> (iov_decode): Add IOV_DECODER_NETLINK.
> * io.c (print_iovec): Call decode_netlink().
> * util.c (getfdproto): Remove the static keyword.
> * xlat/netlink_flags.in: New file.
> * xlat/netlink_types.in: New file.
Thanks, I've edit the commit message a bit (please have a look
at the difference) and applied this commit.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160707/efd0c226/attachment.bin>
More information about the Strace-devel
mailing list