diff options
author | Eric Dumazet <edumazet@google.com> | 2018-12-21 22:53:35 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2018-12-31 21:45:53 -0800 |
commit | 72cdb77d1a31afde5eb998eefe596db5d48d72cd (patch) | |
tree | 3d3a438f50df75666397a573aea597acdc196ab4 /ip/iprule.c | |
parent | 261a5290dd24ffeb3535ce135832690cfd85ba2d (diff) |
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>
Diffstat (limited to 'ip/iprule.c')
0 files changed, 0 insertions, 0 deletions