dockapps/wmifs
Doug Torrance 3bd48a06c5 wmifs: Add BUFFER_SIZE constant.
Patch by Stephen Pitts <smpitts@midsouth.rr.com>.  First appeared in Debian
package version 1.3b1-4.

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=41746:

wmifs started crashing on startup on my system,
so I grabbed the source, added -g to the
Makefile, and ran it through gdb.
(Wow, the wonders of Open Source!!).

I found out that it has the hard-coded assumption
that a line in  /proc/net/dev will be no longer
than 128 bytes. Since my ethernet card has over
1 GB in traffic , my eth0 line was 129 bytes long.
I added a new constant, BUFFER_SIZE, that
determines the size of the buffer used for fgets.

Right now, its at 512 bytes, so that gives it
a large margin of error, until we have petabyte
Ethernet! The patch is attached.
2014-10-23 08:03:31 +01:00
..
wmgeneral wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00
wmifs wmifs: Add BUFFER_SIZE constant. 2014-10-23 08:03:31 +01:00
BUGS wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00
CHANGES wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00
COPYING wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00
HINTS wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00
INSTALL wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00
README wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00
TODO wmifs: Add version 1.3b1 to repository. 2014-10-23 08:03:31 +01:00

WMiFS-1.3b - The public BETA release
--------------------------------------------------------------
Authors...: Martijn Pieterse (pieterse@xs4all.nl)
       	    Antoine Nulle    (warp@xs4all.nl)
		
Note......: WMiFS has it's own mailbox, as our pop3 accounts
	    are already way too crowded :)
	    Please mail bugreports, comments, suggestions,
	    requests and flames to:

	    dockapps@windowmaker.mezaway.org
	    
	    The official WMiFS support website address:
 
     	    http://windowmaker.mezaway.org

Credits...: Bobby Mezaway (bobby@mezaway.org) for generously
	    hosting our website!


Description
--------------------------------------------------------------
WMiFS is a complete network monitoring dock.app, it's mainly
designed for usage in WindowMaker's dock and gives you some
nice & nifty features like:

	* Autosensing of *ALL* active network interfaces;
	* Integrated autoscaling (per interface) transfer
	  statistics, tested upto 100Mbit; 
	* Displays a 'normal' xload style graph or our new
	  'waveform' like load graph;
	* Realtime cycling through active interfaces by simply
	  clicking on the eth0/ppp0 (interface) gadget;
	* Integrated RX/TX interface activity LEDs;
	* Integrated interface status LED;
	* Commandline options to force monitoring a particular
	  interface, even 'lo' is supported (-h for help);
	* User-definable scripts for left/middle/right mouse
	  buttons which are read from ~/.wmifsrc (optional);
	* Fixed rc file option, usefull for sites where users
	  are not allowed to mess with pppd;
	  
WMiFS is developped on DEC Alpha machines running RedHat-5.0/Linux,
but, WMiFS has also been intensively tested on x86 and 68K RedHat/
Linux machines ;-)


Files
--------------------------------------------------------------
README		This file.
INSTALL		Installation instructions.
HINTS 		Hints about what you can do with WMiFS.
BUGS		Things you don't want to know ;-)
CHANGES		Description of changes.
TODO		Things we've already planned for WMiFS.
COPYING		GNU General Public License Version 2.
	

Bugs
--------------------------------------------------------------
If you discover any bugs in this software, please send a 
bugreport to dockapps@windowmaker.mezaway.org and describe
the problem as detailed as you can.


Copyright
--------------------------------------------------------------
WMiFS.app is copyright (c) 1997, 1998 by Martijn Pieterse and
Antoine Nulle and licensed through the GNU General Public License. 
Read the COPYING file for the complete GNU license.