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

Dmitry V. Levin ldv at altlinux.org
Wed Sep 17 21:33:54 UTC 2014


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
-------------- 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/20140918/c702c458/attachment.bin>


More information about the Strace-devel mailing list