Branch: Tag:

2013-11-02

2013-11-02 14:28:02 by Per Hedbor <ph@opera.com>

Avoid using NetUtils.X inside NetUtils.

891:    if( !a ) return 0;       array(string) seg = a/" "; -  int ip = NetUtils.string_to_ip( seg[0] ); +  int ip = string_to_ip( seg[0] );       if( ip == -1 )    return 0;    -  seg[0] = NetUtils.ip_to_string(ip); +  seg[0] = ip_to_string(ip);    return seg * " ";   }   
1056:    array(string) res = ({});       foreach( addresses, string ip ) -  tmp[NetUtils.get_network_type(ip,true)] += ({ ip }); +  tmp[get_network_type(ip,true)] += ({ ip });       //2: Delete ignored types    if( exclude_types )