[PATCH v5] Print ip and port associated with descriptor with -yy
Dmitry V. Levin
ldv at altlinux.org
Thu Aug 21 02:23:19 UTC 2014
On Thu, Aug 21, 2014 at 02:53:46AM +0400, Dmitry V. Levin wrote:
[...]
> > + else if (nlh->nlmsg_type == NLMSG_ERROR)
> > + return -1;
>
>
> I tested this patch on a x86_64 system with a fresh kernel.
> It always returns NLMSG_ERROR.
> I suppose something in send_query() is wrong.
Actually, it is quite linux specific: SOCK_DIAG_BY_FAMILY needs tcp_diag
kernel module to handle IPPROTO_TCP, and udp_diag - for IPPROTO_UDP
sockets.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140821/18321576/attachment.bin>
More information about the Strace-devel
mailing list