[patch] netstat: got bogus unix line...
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Tue Dec 25 12:08:46 UTC 2007
Seen a case when bb-netstat will output:
prompt> ./busybox netstat -lanx
...
unix 2 [ ACC ] STREAM LISTENING 14220 private/mailman
unix 2 [ ] DGRAM 14954 @
netstat: got bogus unix line 'prompt>
and stop. Looking through the code, I noticed:
184: bb_error_msg("warning, got bogus tcp line");
239: bb_error_msg("warning, got bogus udp line");
319: bb_error_msg("warning, got bogus raw line");
370: bb_error_msg("got bogus unix line '%s'", line);
The bb_error_msg on line 370 differs from the others. Changed that to
keep consistancy:
370: bb_error_msg("warning, got bogus unix line");
The effect was that netstat does no longer stops, behaving almost similar
to netstat from net-tools.
Cheers,
--
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netstat.c.patch
Type: text/x-diff
Size: 567 bytes
Desc:
Url : http://lists.busybox.net/pipermail/busybox/attachments/20071225/2b59db70/attachment-0002.bin
More information about the busybox
mailing list