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

Dmitry V. Levin ldv at altlinux.org
Tue Sep 23 11:45:48 UTC 2014


On Thu, Sep 18, 2014 at 01:33:54AM +0400, Dmitry V. Levin wrote:
> 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/

Also, I've written a test for this new feature:
http://sourceforge.net/p/strace/code/ci/fdfa72276a16d0bd42b795aef3ac6c8969210469/


-- 
ldv
-------------- 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/20140923/4a7c3bf3/attachment.bin>


More information about the Strace-devel mailing list