Changeset 1205

Show
Ignore:
Timestamp:
06/18/08 23:11:26 (4 months ago)
Author:
ahu
Message:

fix explicit /32 IP matches - found by Stefan Schmidt, plus document

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pdns/pdns/docs/pdns.sgml

    r1204 r1205  
    152152            </para> 
    153153          </listitem> 
     154          <listitem> 
     155            <para> 
     156              Stefan Schmidt discovered that the netmask matching code, used by the new Lua scripts, but also by all other parts of PowerDNS, had problems 
     157              with explicit '/32' matches. Fixed in c1205. 
     158            </para> 
     159          </listitem> 
     160 
    154161        </itemizedlist> 
    155162        </para> 
     
    79847991                  <warning> 
    79857992                    <para> 
    7986                     In PowerDNS versions 3.0.0 and 3.0.1 this command is slightly buggy and might cause your nameserver to crash if the first 
    7987                     query after wiping the cache is for the domain you just wiped. 
     7993                      As of 3.1.7, this command also wipes the negative query cache for the specified domain. 
    79887994                    </para> 
    79897995                  </warning> 
  • trunk/pdns/pdns/iputils.hh

    r1150 r1205  
    208208      if(d_bits<32) 
    209209        d_mask=~(0xFFFFFFFF>>d_bits); 
     210      else 
     211        d_mask=0xFFFFFFFF; 
    210212    } 
    211213    else if(d_network.sin4.sin_family==AF_INET) {