[PATCHv2 1/3] Use the protocol name of a socket as a hint for peer address resolution

2014-12-28 Thread Masatake YAMATO
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

Re: [PATCHv2 1/3] Use the protocol name of a socket as a hint for peer address resolution

2014-12-17 Thread Dmitry V. Levin
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 comb

[PATCHv2 1/3] Use the protocol name of a socket as a hint for peer address resolution

2014-12-09 Thread Masatake YAMATO
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