[PATCH v5] Print ip and port associated with descriptor with -yy

Dmitry V. Levin ldv at altlinux.org
Mon Aug 25 17:20:28 UTC 2014

On Sun, Aug 24, 2014 at 04:38:51PM +0200, Zubin Mithra wrote:
> Hi Dmitry,
> > 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.
> I’m not sure I understand the problem here — could you tell me which kernel version you had used so that I could try compiling that kernel here at my end?

The problem, if you call this situation a problem, is that
SOCK_DIAG_BY_FAMILY is usually implemented by tcp_diag and udp_diag kernel
modules, and when these modules are not loaded and automatic loading is
not enabled (as it happened in my case), strace -yy feature won't work.

-------------- 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/20140825/e8545583/attachment.bin>

More information about the Strace-devel mailing list