]> git.proxmox.com Git - mirror_iproute2.git/commit
nstat: fix load_ugly_table() limits
authorEric Dumazet <edumazet@google.com>
Sat, 22 Dec 2018 06:53:35 +0000 (22:53 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 1 Jan 2019 05:45:53 +0000 (21:45 -0800)
commit72cdb77d1a31afde5eb998eefe596db5d48d72cd
tree3d3a438f50df75666397a573aea597acdc196ab4
parent261a5290dd24ffeb3535ce135832690cfd85ba2d
nstat: fix load_ugly_table() limits

A recent change reduced max line length from 4096 to 2048 bytes,
but we already have lines above the 2048 threshold, and we keep
adding more SNMP counters in linux.

Switch to getline() and do not worry about future kernel changes.

Fixes: da8034a01904 ("misc: avoid snprintf warnings in ss and nstat")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/nstat.c