Messages in this thread | | | Date | Wed, 7 Apr 1999 22:30:28 -0500 (EST) | From | "Mark H. Wood" <> | Subject | Re: MRTG/Linux 2.2.5 |
| |
On Sat, 3 Apr 1999, Alan Cox wrote: [>On some earlier date, I wrote:] > > On Fri, 2 Apr 1999, fbujanic wrote: > > > the format of /proc/net/snmp changed in 2.1.x kernels. So you must make > > > changes to your CMU-SNMP to make it read the correct info. > > > > *heavy sigh* > > I should point out at this point that the standard CMU-SNMP for Linux 2.0 > was making up the values for the byte counts and normally wildly inaccurate > precisely because the snmp data didnt include the needed byte counters...
Thanks for pointing out that there was a sensible reason to muck with /proc/net/snmp. My sigh was due to the breaking of yet another program because (a) it was forced to depend on formatted kernel data and (b) those data were then reformatted.
If I worked up a patch to mirror these data somewhere in /proc/sys/net, making them available via sysctl for programmers who want a stable interface, is there a reasonable chance that it would be accepted? (Assuming that my work is of high enough quality.) Is there any chance that /proc/net/snmp and /proc/net/snmp6 could be deprecated early in 2.3 with the intent of removing them for 2.4?
Please note that scripts could still get the data -- they'd just have to look somewhere in /proc/sys/net.
-- Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu Specializing in unusual perspectives for more than twenty years.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |