]> granicus.if.org Git - strace/commit
Print IPv6 addresses in brackets
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 8 Feb 2018 13:15:01 +0000 (14:15 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 27 Feb 2018 00:17:47 +0000 (00:17 +0000)
commit85e2e24e199df326ba551bf4453d3b07cc8fcc5f
tree9a2cbbadf390636411b3dca503b9358b19f4073f
parent53571cba0f6c042fb16fbadda0b826bf3554436c
Print IPv6 addresses in brackets

Follow a common practice for printing address:port pair to distinguish
address parts delimiter from address/port delimiter.

* socketutils.c (inet_parse_response) <ob, cb>: New variables,
initialise them to open/closing brackets or empty strings based
on address family.
(inet_parse_response): Print ob and cb around src_buf and dst_buf.
* NEWS: Mention this improvement.
NEWS
socketutils.c