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

Masatake YAMATO yamato at redhat.com
Thu Sep 18 02:51:21 UTC 2014


Zubin, congratulation!

This is the feature really I need.

My understandig is that this is the initial step for developing a tool
unifying strace, lsof, and tcpdump:)

Masatake YAMATO

> Hi Zubin,
> 
> On Tue, Aug 26, 2014 at 06:28:46PM +0200, Zubin Mithra wrote:
>> > 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(3<0.0.0.0:7171>, {sa_family=AF_INET, sin_port=htons(48435), sin_addr=inet_addr("127.0.0.1")}, [16]) = 4<127.0.0.1:7171->127.0.0.1:48435>
>> 
>> Got it, thanks Dmitry, I’ll send over a patch soon.
> 
> So I've taken your code, made some changes here and there, and pushed it:
> http://sourceforge.net/p/strace/code/ci/2f6510c8a6a358ec00f56a491318181bc068a1fc/
> 
> 
> -- 
> ldv


More information about the Strace-devel mailing list