[netflow-tools] Flowd unable to use FIFO

Damien Miller djm at mindrot.org
Mon May 16 23:36:36 EST 2005


Jason Dixon wrote:
> Forwarding to netflow-tools where it belongs...
> 
> I'm trying to get flowd to write to FIFO so I can read it in with a perl 
> script and output to my choice of storage (file, db, etc).  The patch 
> below from djm allows flowd to write to fifo, but Flowd.pm fails on 
> init() with a "bad magic" error.

Please try the attached (completely untested) patch.

flowd (with the FIFO patch) won't write a header when it sends records
to a FIFO, so the Perl and Python APIs have to be adjusted to cope.
Maybe it should just send a header after all, but I need to think about
it some more.

-d

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flowd-logfifo-pp.diff
Url: http://lists.mindrot.org/pipermail/netflow-tools/attachments/20050516/5b49d8f6/attachment.ksh 


More information about the netflow-tools mailing list