On Wed, Dec 10, 2014 at 12:55:06PM +0900, Masatake YAMATO wrote:
> For resolving the peer address of socket, all combinations of families
> (AF_INET, AF_INET6) and protocols(IPPROTO_TCP, IPPROTO_UDP) were tried.
> 
> This patch utilizes the protocol name, getting via getxattr, to specify
> the combination.
> 
> * util.c (printfd): Pass the protocol name for the given path to
>   print_sockaddr_by_inode as the 2nd argument.
> 
> * socketutils.c (print_sockaddr_by_inode): Utilize the protocol name
>   for the target inode for resolving the peer address of socket.
>   If the name is NULL, resolve the address as in the past.
>   Use inet_print in the case when no hint is given.
>   (inet_print): New helper function for print_sockaddr_by_inode.

Thanks, applied with some corrections of the commit message.


-- 
ldv

Attachment: pgpjWWQiTW7b4.pgp
Description: PGP signature

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to