Beispiel #1
0
    bool check(const address::integral_type ip_in)
    {
        if((ip_in & mask.value()) == (ip.value() & mask.value()))
        {
            hits++;
            lasthit = std::time(NULL);

            return true;
        }

        return false;
    }
Beispiel #2
0
 bool operator==(const netban & nb)const
 {
     return (ip.value() == nb.ip.value() && mask.value() == nb.mask.value());
 }
Beispiel #3
0
 address::integral_type ip_value()const { return ip.value(); }