]> granicus.if.org Git - strace/commit
Make -yy output for inet sockets consistent with unix domain sockets
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 26 Dec 2014 23:29:26 +0000 (23:29 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 26 Dec 2014 23:29:26 +0000 (23:29 +0000)
commit959205c2a8a7c559b40204a1d33336d6800d1f1e
treee47c3b1ad6c8f39feb7c8651e8b0b05a6562cf7d
parentf0ed167eccc5eb0d21a5488b4cba1ed3965ed1fa
Make -yy output for inet sockets consistent with unix domain sockets

Prepend -yy output generated for INET/INET6 TCP/UDP sockets with their
protocol name obtained using getxattr.

* socketutils.c (inet_parse_response): Add proto_name argument.
Print proto_name for connected and unconnected sockets.
(receive_responses): Add proto_name argument, pass it to the parser.
(inet_print): Add proto_name argument, pass it to receive_responses.
(unix_parse_response): Add proto_name argument.
(print_sockaddr_by_inode): Pass protocol name to inet_print calls.
* tests/net-yy-accept.awk: Update to match new output format.
* tests/net-yy-connect.awk: Likewise.
socketutils.c
tests/net-yy-accept.awk
tests/net-yy-connect.awk