[patch] netstat: got bogus unix line...
Denys Vlasenko
vda.linux at googlemail.com
Tue Dec 25 15:36:13 UTC 2007
On Tuesday 25 December 2007 12:08, Cristian Ionescu-Idbohrn wrote:
> 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>
Can you run "strace -o log -s 512 <cmd>" and post the log?
> 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);
At least it tries to report what was the problem.
> 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.
Why doesn't it stop now?
--
vda
More information about the busybox
mailing list