diff options
author | Elliott Hughes <enh@google.com> | 2021-02-06 12:47:59 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-02-06 19:32:03 -0600 |
commit | 859764984485fd0d7f92b0f49430832c3d95888e (patch) | |
tree | c94effc530cd743785a413fc03acc351cd39f976 /toys/posix/echo.c | |
parent | 7ed7ff8386cc982ec9e334332f853e9e1f0bcfc6 (diff) | |
download | toybox-859764984485fd0d7f92b0f49430832c3d95888e.tar.gz |
netstat: various fixes.
Avoid fgets() into toybuf other than to skip header lines, preferring
fscanf() or xgetline() instead.
Remove the early returns if we fail to skip a header line (fixes #62).
Fix `netstat -xl` which was previously broken (because only -a would
include listening sockets).
Fix a variety of formatting issues, bringing the diff between toybox
netstat and net-tools netstat down (which was what I used for testing).
Use FLAG() more consistently.
Diffstat (limited to 'toys/posix/echo.c')
0 files changed, 0 insertions, 0 deletions