bwm-ng v0.4
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.
If you experience compile errors for -lncurses change it in Makefile (back) to 
-lcurses or install libncurses-dev

csv output format: 
unix timestamp;iface_name;bytes_out/s;bytes_in/s;bytes_total/s;packets_out/s;packets_in/s;packets_total/s\n
Use --count 0 to skip the all zero output after start.

html output format:
edit the bwm-ng.css to modify the output. Please note the htmlrefresh only 
modifies the META refresh, you maybe wanna sync --timeout and --htmlrefresh

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
  -i, --interfaces <list> show only interfaces in <list> (comma seperated)
  -o, --output <method>   output method, on of: curses, plain, csv, html
      --csvchar <char>    delimiter for csv
      --csvfile <file>    output file for csv (default stdout)
      --htmlrefresh <num> meta refresh for html output
      --count <num>       number of query/output (1 for one single output)
      --daemon            fork into background and daemonize
  -h, --help              displays a nice help screen with options
  -V, --version           print version info

Keybindings:
  'q'     exit
  '+'     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
	
Bugs:
  - none yet, wow ;)
 
Todo:
  - try to avoid kmod like net-tools do for socket() for ioctl
  - print correct error string (strerror)
  - show the avg of last x seconds (like load avg in uptime)
  - mysql 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 *
 ******************************************************************************
