[PATCH v4 3/6] Add a general netlink socket parser

Dmitry V. Levin ldv at altlinux.org
Sun Jun 19 23:33:15 UTC 2016


On Fri, Jun 17, 2016 at 04:29:55PM +0000, Fabien Siron wrote:
[...]
> --- a/io.c
> +++ b/io.c
> @@ -89,6 +89,11 @@ print_iovec(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
>  			printstr(tcp, iov[0], len);
>  			break;
>  		}
> +		case IOV_DECODER_NETLINK:
> +		{
> +			decode_netlink(tcp, iov[0], iov[1]);
> +			break;
> +		}

This should update struct print_iovec_config.data_size the same way
as in IOV_DECODER_STR case.


-- 
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/20160620/bdcc70c8/attachment.bin>


More information about the Strace-devel mailing list