[PATCH v2] Add netlink domain sockets support to socketutils

Dmitry V. Levin ldv at altlinux.org
Tue May 17 09:11:56 UTC 2016


On Mon, May 16, 2016 at 09:24:16AM +0000, Fabien Siron wrote:
> * socketutils.c: (print_sockaddr_by_inode): Call netlink_print.
> (netlink_send_query, netlink_parse_response, netlink_print): New functions.
> * linux/netlink_diag.h: New file.

* linux/netlink_diag.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* socketutils.c: Include it and "xlat/netlink_protocols.h".
(netlink_send_query, netlink_parse_response, netlink_print): New
functions.
(print_sockaddr_by_inode): Hook up netlink_print.

New source file has to be added either to strace_SOURCES
or EXTRA_DIST, otherwise it won't be distributed.

The code looks OK.


-- 
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/20160517/5efb5999/attachment.bin>


More information about the Strace-devel mailing list