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

Attachment: pgpRZRKhP0aEg.pgp
Description: PGP signature

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to