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

2014-08-26 Thread Zubin Mithra
I think it would be less confusing to print both src and dst address:port when dst address:port is non-zero, for example: accept(30.0.0.0:7171, {sa_family=AF_INET, sin_port=htons(48435), sin_addr=inet_addr(127.0.0.1)}, [16]) = 4127.0.0.1:7171-127.0.0.1:48435 Got it, thanks Dmitry, I’ll

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

2014-08-26 Thread Zubin Mithra
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

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

2014-08-26 Thread Dmitry V. Levin
On Tue, Aug 26, 2014 at 06:30:10PM +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