bwm-ng v0.2
Copyright (C) 2004 Volker Gropp (vgropp@pefra.de)
 
This was influenced by the old bwm util written by ......
which had some issues with faster interfaces and was very simple.
Since i had almost all code done anyway for other projects, i decided to
create my own version.

I actually dont know if netstat input is usefull at all. I saw this somewhere else
so i added it. Its target is "netstat 1.42 (2001-04-15)" linux. if there are other
formats i would be happy to add them.

To compile simply type make, to install use make install.

USAGE: bwm-ng [OPTION] ...
Options:
  -t, --timeout <msec>  displays stats every <msec> (1msec = 1/1000sec) default: 500
  -f, --file <filename> filename to read raw data from. default: /proc/net/dev
  -d, --dynamic         show values dynamicly (Byte KB or MB)
  -n, --netstat         always use netstat -i as input stream (is this usefull at all?)
  -p, --packets         show packets/s instead of KB/s
  -a, --allif           show also down interfaces
  -h, --help            displays a nice help screen with options
  -V, --version         print version info

Keybindings:
  '+'     increases timeout by 100msec
  '-'     decreases timeout by 100msec
  'k','d' switch KB and auto assign Byte/KB/MB
  'a'     switch show all interfaces or only those which are up
  'n'     switch proc/net/dev and netstat -i input
  'p'     switch show packets or Byte/s
	
Changelog:
  09-16-2004 0.3  cosmetic changes, KB/s is now default (again), Version
                  netstat input added
				  packet output added
                  show only-up-interfaces or all
  09-07-2004 0.2: rewrote parsing 
                  cosmetic changes
                  changed to dynamic allocated and displayed interfaces
                  possible to auto switch Byte KB and MB per second
  09-07-2004 0.1: initial release, almost if not all features of old bwm

Bugs:
  - none yet, wow ;)
 
Todo:
  - cleanup get_iface_stats and move stuff out of this monster
  - try to avoid kmod like net-tools do for socket() for ioctl
  - print correct error string (strerror)
  - plaintext output
  - fbsd support?
  - whatever you can think of


 ******************************************************************************
 *  This program is free software; you can redistribute it and/or modify      *
 *  it under the terms of the GNU General Public License as published by      *
 *  the Free Software Foundation; either version 2 of the License, or         *
 *  (at your option) any later version.                                       *
 *                                                                            *
 *  This program is distributed in the hope that it will be useful,           *
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
 *  GNU General Public License for more details.                              *
 *                                                                            *
 *  You should have received a copy of the GNU General Public License         *
 *  along with this program; if not, write to the Free Software               *
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA *
 ******************************************************************************
