Changeset 117 for trunk/klask


Ignore:
Timestamp:
Oct 6, 2012, 10:22:13 PM (12 years ago)
Author:
g7moreau
Message:
  • Error in bad-vlan detection.It's was not so strict and had some false positive.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r116 r117  
    12291229         mac_address => $ip_mac,
    12301230         };
    1231      
     1231
    12321232      if (
    1233          ($ip_timestamp > $swithportdb{$swpt}->{timestamp})
    1234          and (
    1235             $ip_hostname_fq !~ m/^float/
    1236             or $ip_timestamp > ( $swithportdb{$swpt}->{timestamp} + (15 * 24 * 3600) )
    1237             )
     1233         ($ip_hostname_fq =~ m/^float/ and $ip_timestamp > $swithportdb{$swpt}->{timestamp} + (15 * 24 * 3600))
     1234         or
     1235         ($ip_hostname_fq !~ m/^float/ and (
     1236            ($swithportdb{$swpt}->{hostname_fq} =~ m/^float/ and $ip_timestamp > $swithportdb{$swpt}->{timestamp} - (15 * 24 * 3600))
     1237            or
     1238            ($swithportdb{$swpt}->{hostname_fq} !~ m/^float/ and $ip_timestamp > $swithportdb{$swpt}->{timestamp})
     1239            ))
    12381240         ) {
    12391241         $swithportdb{$swpt} = {
     
    12501252      next if $swpt =~ m/^\s*0$/;
    12511253      next if $swithportdb{$swpt}->{hostname_fq} !~ m/^float/;
    1252      
     1254
    12531255      my $src_ip = $swithportdb{$swpt}->{ip};
    12541256      my $src_timestamp = 0;
Note: See TracChangeset for help on using the changeset viewer.