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
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
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