History log of /external/iproute2/misc/lnstat_util.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bc4a57b87990b30c85fdf0efbc1f8f219466daf4 01-Sep-2017 Phil Sutter <phil@nwl.cc> lnstat_util: Make sure buffer is NUL-terminated

Can't use strlcpy() here since lnstat is not linked against libutil.

While being at it, fix coding style in that chunk as well.

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/misc/lnstat_util.c
bc27878d21909b110dd21eea0c3505d023f29dc2 24-Aug-2017 Phil Sutter <phil@nwl.cc> lnstat_util: Simplify alloc_and_open() a bit

Relying upon callers and using unsafe strcpy() is probably not the best
idea. Aside from that, using snprintf() allows to format the string for
lf->path in one go.

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/misc/lnstat_util.c
f89bb0210fcf7bc52f9bc743bbc92c811b1f578a 18-Jul-2016 Phil Sutter <phil@nwl.cc> Replace malloc && memset by calloc

This only replaces occurrences where the newly allocated memory is
cleared completely afterwards, as in other cases it is a theoretical
performance hit although code would be cleaner this way.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
/external/iproute2/misc/lnstat_util.c
acd1e437befbb5b7d575bb7116522cffce7495cd 21-Mar-2016 Stephen Hemminger <stephen@networkplumber.org> misc: fix style issues

More checkpatch spring cleaning
/external/iproute2/misc/lnstat_util.c
b90b773ca6aa1b1a39d76186d1a7639a13f5c916 31-Dec-2015 Stephen Hemminger <stephen@networkplumber.org> lnstat: fix error handling

Error handling was silent and had leaks.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
/external/iproute2/misc/lnstat_util.c
d572ed4d0af79eb597469d3f1a84456782c64f24 28-Nov-2015 Phil Sutter <phil@nwl.cc> get rid of remaining -Wunused-result warnings

Although not fundamentally necessary to check return codes in these
spots, preventing the warnings will put new ones into focus.

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/misc/lnstat_util.c
db3ef44c5433aa50bae6f88736ad350fb14fc2cf 28-Nov-2015 Phil Sutter <phil@nwl.cc> lnstat: review lnstat_update()

Instead of calling rewind() and fgets() before every call to
scan_lines(), move them into scan_lines() itself.

This should also fix compat mode, as before the second call to
scan_lines() the first line was skipped unconditionally.

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/misc/lnstat_util.c
92de1c2c820816801681d76f5de7137a2b5996df 21-Jul-2015 Stephen Hemminger <shemming@brocade.com> remove unnecessary checks for NULL before free

Since free(NULL) is a no-op, it is safe to remove unnecesary
if checks.
/external/iproute2/misc/lnstat_util.c
ae665a522bd46bea44c5ea84c89c8b1731954170 05-Dec-2006 Stephen Hemminger <shemminger@osdl.org> Remove trailing whitespace

Go through source files and remove all trailing whitespace

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
/external/iproute2/misc/lnstat_util.c
7339c0bb74e7e55ad70c29ced5628f26dd821900 01-Sep-2005 shemminger <shemminger> Could you please apply this patch.

* Fix lnstat : First column should not be summed

Thank you

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
/external/iproute2/misc/lnstat_util.c
f5f1a6c5836a405381fb9d4be74d5ddf98404db1 18-Mar-2005 osdl.net!shemminger <osdl.net!shemminger> Fix sum of first field (entries).

(Logical change 1.172)
/external/iproute2/misc/lnstat_util.c
4c74f032f64d4d66674a6fe6d541100d1181d93d 17-Mar-2005 osdl.net!shemminger <osdl.net!shemminger> need to sum all lines on smp machine.

(Logical change 1.171)
/external/iproute2/misc/lnstat_util.c
4677a549831336400e16210e6f12251dc07d5232 19-Oct-2004 osdl.net!shemminger <osdl.net!shemminger> add const to find_field

(Logical change 1.102)
/external/iproute2/misc/lnstat_util.c
8b3c3abb6326dd0bcde8c77d913dfa586ddf3c47 19-Oct-2004 osdl.net!shemminger <osdl.net!shemminger> Initial revision
/external/iproute2/misc/lnstat_util.c
056eb9d8dd2329c20394d6b2dd81c151dfeac164 19-Oct-2004 osdl.net!shemminger <osdl.net!shemminger> (Logical change 1.98)
/external/iproute2/misc/lnstat_util.c