Fix lack of BWM stats for WAN when using PPPoE
commit70b3969eaf35ebce760c42e5b8719a2ea851d793
authorJeremy Chadwick <jdc@koitsu.org>
Thu, 19 Jan 2017 22:19:48 +0000 (19 14:19 -0800)
committerToastman <toastman@galactic_core>
Fri, 20 Jan 2017 00:39:06 +0000 (20 07:39 +0700)
treeeff09c5f2a03cf41331854f1e9a79f7021dabace
parent97d914039d46d9d72ea77fc63097aef8528ee5a4
Fix lack of BWM stats for WAN when using PPPoE

Increase MAX_SPEED_IF to 32.  This define controls the number of
interfaces to parse from /proc/net/dev, as well as how many to load from
an rstats file on restoration, and how large the speed[] array should
be.

Depending on several factors (number of VLANs configured, use of OpenVPN
server and/or client, etc.), the ppp0 interface might not be within the
first 10 interfaces in /proc/net/dev.

Thanks to Rangaistus to tracking this down.

Reference: http://www.linksysinfo.org/index.php?threads/tomato-shibbys-releases.33858/page-75#post-284120
release/src-rt-6.x.4708/router/rstats/rstats.c