[patch] netstat: got bogus unix line...

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Dec 31 18:22:11 PST 2007


On Sun, 30 Dec 2007, Cristian Ionescu-Idbohrn wrote:

> There must be some sort of confusion/misunderstanding somewhere :(
> Let me try again.  net-tools netstat shows this:
>
> unix  2      [ ACC ]     STREAM     LISTENING     14220    private/mailman
> unix  2      [ ]         DGRAM                    14954    @
> warning, got bogus unix line.
> unix  2      [ ACC ]     STREAM     LISTENING     14164    private/relay
>
> and bb-netstat shows this:
>
> unix  2      [ ACC ]     STREAM     LISTENING      14220 private/mailman
> unix  2      [ ]         DGRAM                     14954 @
> unix  2      [ ACC ]     STREAM     LISTENING      14164 private/relay

With the attached patch, bb-netstat will produce these lines:

unix  2      [ ACC ]     STREAM     LISTENING      14220 private/mailman
unix  2      [ ]         DGRAM                     14954 @
netstat: warning, got bogus data on line 13 in /proc/net/unix
netstat: warning, got bogus data on line 14 in /proc/net/unix
unix  2      [ ACC ]     STREAM     LISTENING      14164 private/relay

revealing the corruption (similar to but better than net-tools netstat ;)).
This is what I was looking for.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netstat.c.patch
Type: text/x-diff
Size: 865 bytes
Desc: 
Url : http://busybox.net/lists/busybox/attachments/20080101/e03dfff7/attachment.bin 


More information about the busybox mailing list