[netflow-tools] Flowd unable to use FIFO
Jason Dixon
jason at dixongroup.net
Mon May 16 23:47:43 EST 2005
On May 16, 2005, at 9:36 AM, Damien Miller wrote:
> 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.
<snip>
Missing semicolon.
--- Flowd-perl/lib/Flowd.pm.old Mon May 16 10:12:38 2005
+++ Flowd-perl/lib/Flowd.pm Mon May 16 10:16:50 2005
@@ -144,7 +144,7 @@
open($fhandle, "<$filename") or die "open($filename): $!";
$self->{handle} = $fhandle;
- @st = stat($self->{handle})
+ @st = stat($self->{handle});
if (($st[2] & 0170000) == 0010000) {
# If reading from FIFO, assume that version matches
$self->{version} = 0x00000002;
Looks like it's working now! Thanks!
--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net
More information about the netflow-tools
mailing list