|
I've been able to use the Net::LibNIDS module successfully with libnids-1.23. However, when I want to parse multiple capture files the module will only parse the first file. For subsequent files init() returns OK, but when calling run() the callback function is never called. Code snippet:
use Net::LibNIDS;
Net::LibNIDS::param::set_filename('file.cap');
Net::LibNIDS::init(); # returns 1
Net::LibNIDS::tcp_callback(\&collector );
Net::LibNIDS::run(); # runs OK
Net::LibNIDS::param::set_filename('file.cap');
Net::LibNIDS::init(); # returns 1
Net::LibNIDS::tcp_callback(\&collector );
Net::LibNIDS::run(); # collector is never called here
Doing the same in C works OK, so it's not a problem in libnids. I can't see anything obvious being wrong in the module source. Any ideas or help on this? |