pike.git / lib / modules / NetUtils.pmod

version» Context lines:

pike.git/lib/modules/NetUtils.pmod:381:    //! Creates a new IpRangeLookup object and initialises the IP range    //! table. Errors will be thrown if @[ranges] contains invalid    //! data.    //!    //! @param ranges    //! A mapping from information data to arrays of IP ranges.    //!    //! Each range can be a single addresses ("192.168.1.1"), a    //! range of addresses ("192.168.1.1-192.168.1.5") or be    //! written in CIDR notation ("192.168.1.0/24"). -  void create(mapping(mixed:array(string)) ranges) +  protected void create(mapping(mixed:array(string)) ranges)    {    void add_range( Range range )    {    string key = trim_net(range->net,range->mask);    if( !range_to_info[key] )    range_to_info[key] = ({ range });    else    range_to_info[key] |= ({ range });    };    foreach( ranges; string info; array(string) ips )