Changeset 985

Show
Ignore:
Timestamp:
01/27/08 20:45:46 (10 months ago)
Author:
mbr
Message:

- Added full packet hex dumps (including packet headers) to fwknopd in
--debug --verbose mode. This is to help diagnose packet sniffing issues
over the loopback interface on Mac OS X (first reported by Sebastien
Jeanquier).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fwknop/trunk/ChangeLog

    r979 r985  
     1fwknop-1.9.2 (02//2008): 
     2    - Added full packet hex dumps (including packet headers) to fwknopd in 
     3      --debug --verbose mode.  This is to help diagnose packet sniffing issues 
     4      over the loopback interface on Mac OS X (first reported by Sebastien 
     5      Jeanquier). 
     6 
    17fwknop-1.9.1 (01/26/2008): 
    28    - Added ENABLE_OUTPUT_ACCESS keyword to access.conf file parsing. This 
  • fwknop/trunk/VERSION

    r979 r985  
    1 1.9.
     11.9.2-pre
  • fwknop/trunk/fwknop

    r979 r985  
    1717# Author: Michael Rash (mbr@cipherdyne.org) 
    1818# 
    19 # Version: 1.9.
     19# Version: 1.9.2-pre
    2020# 
    2121# Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     
    5252use strict; 
    5353 
    54 my $version = '1.9.1'; 
     54my $version = '1.9.2-pre1'; 
    5555my $revision_svn = '$Revision$'; 
    5656my $rev_num = '1'; 
  • fwknop/trunk/fwknopd

    r979 r985  
    2020# Author: Michael Rash (mbr@cipherdyne.org) 
    2121# 
    22 # Version: 1.9.
     22# Version: 1.9.2-pre
    2323# 
    2424# Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     
    6363my $access_conf_file = ''; 
    6464 
    65 my $version = '1.9.1'; 
     65my $version = '1.9.2-pre1'; 
    6666my $revision_svn = '$Revision$'; 
    6767my $rev_num = '1'; 
     
    332332    my $transport_obj = ''; 
    333333 
     334    if ($debug) { 
     335        print STDERR localtime() . " [+] Received packet ***[" . 
     336            localtime() . "]***\n"; 
     337        if ($verbose) { 
     338            print STDERR localtime() . 
     339                "     Complete raw packet data (hex dump, including ", 
     340                    "packet headers):\n"; 
     341            &hex_dump($pkt); 
     342        } 
     343    } 
     344 
    334345    if ($config{'AUTH_MODE'} eq 'ULOG_PCAP') { 
    335346        ### The ulogd pcap writer does not include link layer information 
     
    365376    } 
    366377 
    367     print STDERR localtime() . " [+] Received packet ***[" . 
    368         localtime() . "]*** (" if $debug; 
    369  
    370378    ### make sure we have _some_ data in the packet; in practice 
    371379    ### any valid SPA message will be longer than 10 bytes, but this 
     
    376384    $enc_msg_len = length($transport_obj->{'data'}); 
    377385    if (10 < $enc_msg_len and $enc_msg_len < 1500) { 
    378         print STDERR "$enc_msg_len bytes)\n" if $debug; 
     386        print STDERR localtime() . " [+] Data len: $enc_msg_len bytes\n" 
     387            if $debug; 
    379388    } else { 
    380         print STDERR "$enc_msg_len bytes, not attempting decrypt)\n" 
    381             if $debug; 
     389        print STDERR localtime() . " [-] $enc_msg_len bytes, not ", 
     390            "attempting decrypt)\n" if $debug; 
    382391        return; 
    383392    } 
  • fwknop/trunk/knoptm

    r979 r985  
    1919# Author: Michael Rash (mbr@cipherdyne.org) 
    2020# 
    21 # Version: 1.9.
     21# Version: 1.9.2-pre
    2222# 
    2323# Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     
    5454my $user_rc_file = ''; 
    5555 
    56 my $version = '1.9.1'; 
     56my $version = '1.9.2-pre1'; 
    5757my $revision_svn = '$Revision$'; 
    5858my $rev_num = '1'; 
  • fwknop/trunk/knopwatchd.c

    r979 r985  
    1414*  Credits:  (see the CREDITS file) 
    1515* 
    16 *  Version: 1.9.
     16*  Version: 1.9.2-pre
    1717* 
    1818*  Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
  • fwknop/trunk/test/fwknop_test.pl

    r979 r985  
    1010# Author: Michael Rash (mbr@cipherdyne.org) 
    1111# 
    12 # Version: 1.9.
     12# Version: 1.9.2-pre
    1313# 
    1414# Copyright (C) 2007 Michael Rash (mbr@cipherdyne.org)