Changeset 50


Ignore:
Timestamp:
12/09/14 17:02:39 (10 years ago)
Author:
Kris Deugau
Message:

/trunk/dnsbl

Extend the hash of bitmask constants for the additional levels of bitmasking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dnsbl/DNSBL.pm

    r49 r50  
    4545# 1 not available so we don't $self->shoot(foot)
    4646our %bitfields = (
    47     # block levels
     47    # ip
     48        ip => 2,
     49    # "I'm a total spamming moron!" - per-IP only!
     50        slist => 128,
     51
     52    # Block listings.  Ordering for levels 0, 1, 2 not ideal due to evolution of code.
     53    # Levels 3 and higher are more coherently ordered
     54
     55    # Automatically listed blocks based on IP counts
    4856        0 => 16,
    4957        1 => 8,
    5058        2 => 4,
    51     # ip
    52         ip => 2,
    53     # OOB
    54         org0 => 32,
    55         block0 => 64,
    56         org1 => 256,
    57         org2 => 512,
    58         block1 => 1024,
    59         block2 => 2048,
    60     # "I'm a total spamming moron!" - per-IP only!
    61         slist => 128
     59        3 => 4096,
     60        4 => 32768,
     61        5 => 262144,
     62        6 => 2097152,
     63
     64    # Out-of-band
     65        org0    => 32,
     66        block0  => 64,
     67        org1    => 256,
     68        org2    => 512,
     69        block1  => 1024,
     70        block2  => 2048,
     71        org3    => 8192,
     72        block3  => 16384,
     73        org4    => 65536,
     74        block4  => 131072,
     75        org5    => 524288,
     76        block5  => 1048576,
     77        org6    => 4194304,
     78        block6  => 8388608,
     79
    6280);
    6381
Note: See TracChangeset for help on using the changeset viewer.