projects
/
psad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cc796fd
)
update to not collect err packets in --no-ipt-errors mode
author
Michael Rash
<mbr@cipherdyne.org>
Sat, 10 Dec 2011 15:37:25 +0000 (10:37 -0500)
committer
Michael Rash
<mbr@cipherdyne.org>
Sat, 10 Dec 2011 15:37:25 +0000 (10:37 -0500)
psad
patch
|
blob
|
history
diff --git
a/psad
b/psad
index
1b6869b
..
1083d10
100755
(executable)
--- a/
psad
+++ b/
psad
@@
-1028,7
+1028,7
@@
sub check_scan() {
my $pkt_parse_rv = &parse_NF_pkt_str(\%pkt, $pkt_str);
print STDERR Dumper \%pkt if $debug and $verbose;
if ($pkt_parse_rv == $PKT_ERROR) {
- push @err_pkts, $pkt_str;
+ push @err_pkts, $pkt_str unless $no_ipt_errors;
next PKT;
} elsif ($pkt_parse_rv == $PKT_IGNORE) {
next PKT;