On Tue, 1 Aug 2017 18:54:33 +0200
Florian Lehner 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 whol
This updated patch adds support for RFC2732 IPv6 address format with
brackets for the tool ss.
Following the advice by David Laight I used strchr().
Also, IN6ADDR_ANY and INADDR_ANY will return "*".
Signed-off-by: Lehner Florian
---
misc/ss.c | 28 +---
1 file changed,