minor bug fix to call older passive OS fingerprinting routine for non-IPv6 packets
authorMichael Rash <mbr@cipherdyne.org>
Wed, 14 Dec 2011 01:28:46 +0000 (20:28 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 14 Dec 2011 01:28:46 +0000 (20:28 -0500)
psad

diff --git a/psad b/psad
index cd21865..be21795 100755 (executable)
--- a/psad
+++ b/psad
@@ -2740,10 +2740,10 @@ sub parse_ip_options() {
 sub posf() {
     my $pkt_hr = shift;
 
-    if ($pkt_hr->{'is_ipv4'}) {
-        &posf_ipv4($pkt_hr);
-    } elsif ($pkt_hr->{'is_ipv6'}) {
+    if ($pkt_hr->{'is_ipv6'}) {
         &posf_ipv6($pkt_hr);
+    } else {
+        &posf_ipv4($pkt_hr);
     }
     return;
 }