Re: [PATCH v4] ss: Enclose IPv6 address in brackets From: Stephen Hemminger <stephen@networkplumber.org> Date: 2017-08-03 22:54:24 On Tue, 1 Aug 2017 18:54:33 +0200 Florian Lehner [off-list ref] wrote: - if (a->family == AF_INET) { - if (a->data[0] == 0) { + if (a->data[0] == 0) { buf[0] = '*'; buf[1] = 0; This won't work right with IPv6 you need to look at the whole address being 0 not just a->data[0]
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help