Vflow

vflow is a ruby replacement for modules like Cflow (perl) and pyflowtool (python).

To make use of this module you will need to have a copy of flow-tools installed. Then, download and extract the tar ball below. This should install the same as any other ruby module, namely,

ruby extconf.rb
make
make install

Or, try the gem file

running vftest.rb should produce a print out of the flow data from testdata/dummyfile similar to this example output.
while vfprofile.rb profiles vflow using this test data

Known Bugs

Oh where to start? There is at least on known bug. On some systems processing multiplfiles in a loop, ie,

filelist.each {|f| vf.open(f) { vf.each {|r| # do something with r } }

While I did suffer this bug, it seems to have disappear for me and I can no longer duplicate this bug myself.

License

This software is provided "as is" and without any express or
implied warranties, including, without limitation, the implied
warranties of merchantability and fitness for a particular
purpose.

This software is provided under the LGPL or any other license at the
author's discretion.

Miscellaneous

If make use of this module or make a derivative work of some form
(eg, fork the code), please, email me so that I can link to it from here.

Comments can be email to jeffm@ghostgun.com

Releases

Version 0.3 alpha

Release date: 2005-04-27
Download: vflow-0.3a.tar.gz
Gem: Vflow-0.3.0.gem
Changes:
Patched Vflow.c so #open will take blocks
Altered extconf.rb to use arbitrary paths for ft-lib
Altered extconf.rb to give errors on missing libraries
Altered extconf.rb to use flow-tools from path /usr/local/netflow automatically
Created vflow.gemspec and gem file

Version 0.2 beta

Release date: 2004-12-13
Download: vflow-0.2b.tar.gz

Files:
README
Vflow.c Source code
vftest.rb Test code to exercise vflow
vfprofile.rbProfiling script
extconf.rb installation file

Version 0.1 beta

Release date: 2004-05-03
Download: vflow-0.1b.tar.gz

Files:
README The read me file for this version. Contains just enough to get you going.
Vflow.c Source code
vftest.rb Test code to exercise vflow
extconf.rb installation file

Version 0.1 alpha

Release date: 2004-03-31
This is the first release of vflow. This has been release for review only it contains known bugs. To put it another way, your insane if you do anything other than test it.
Download: vflow-0.1a.tar.gz