Can you try the version I have uploaded to
https://github.com/edeca/Net-
LibNIDS ?
The code here now implements nids_discard, which you can call like:
Net::LibNIDS::nids_discard($stream, 123);
This appears to work with the small testcase (5.t) but I have not
exhaustively tested at this stage.
This could potentially be an object function in Net::LibNIDS::tcp_stream
instead, so you call the same in the same way as:
sub collector {
my $stream = shift;
if($stream->state == Net::LibNIDS::NIDS_DATA()) {
$stream->discard(123);
}
}
Let me know what you think, I will fiddle with the XS if you think the
2nd method is better.