Re: [PATCH] iproute2: ss: escape all null bytes in abstract unix domain socket

2016-12-04 Thread Isaac Boukris
On Sat, Dec 3, 2016 at 1:24 AM, Eric Dumazet wrote: > On Fri, 2016-12-02 at 15:18 -0800, Stephen Hemminger wrote: >> name[i] = '@'; >> > >> > ss.c: In function 'unix_show_sock': >> > ss.c:3128:4: error: 'for' loop initial declarations are only allowed in >> > C

Re: [PATCH] iproute2: ss: escape all null bytes in abstract unix domain socket

2016-12-02 Thread Eric Dumazet
On Fri, 2016-12-02 at 15:18 -0800, Stephen Hemminger wrote: > name[i] = '@'; > > > > ss.c: In function 'unix_show_sock': > > ss.c:3128:4: error: 'for' loop initial declarations are only allowed in C99 > > mode > > ss.c:3128:4: note: use option -std=c99 or -std=

Re: [PATCH] iproute2: ss: escape all null bytes in abstract unix domain socket

2016-12-02 Thread Stephen Hemminger
On Fri, 02 Dec 2016 10:59:56 -0800 Eric Dumazet wrote: > On Sat, 2016-11-12 at 10:17 +0300, Stephen Hemminger wrote: > > On Sat, 29 Oct 2016 22:20:19 +0300 > > Isaac Boukris wrote: > > > > > Abstract unix domain socket may embed null characters, > > > these should be translated to '@' when pr

Re: [PATCH] iproute2: ss: escape all null bytes in abstract unix domain socket

2016-12-02 Thread Eric Dumazet
On Sat, 2016-11-12 at 10:17 +0300, Stephen Hemminger wrote: > On Sat, 29 Oct 2016 22:20:19 +0300 > Isaac Boukris wrote: > > > Abstract unix domain socket may embed null characters, > > these should be translated to '@' when printed by ss the > > same way the null prefix is currently being transla

Re: [PATCH] iproute2: ss: escape all null bytes in abstract unix domain socket

2016-11-11 Thread Stephen Hemminger
On Sat, 29 Oct 2016 22:20:19 +0300 Isaac Boukris wrote: > Abstract unix domain socket may embed null characters, > these should be translated to '@' when printed by ss the > same way the null prefix is currently being translated. > > Signed-off-by: Isaac Boukris Applied

[PATCH] iproute2: ss: escape all null bytes in abstract unix domain socket

2016-10-29 Thread Isaac Boukris
Abstract unix domain socket may embed null characters, these should be translated to '@' when printed by ss the same way the null prefix is currently being translated. Signed-off-by: Isaac Boukris --- misc/ss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/ss.c b/mi