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
pgpfr7AtYtUKb.pgp
Description: PGP signature
------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel