extern const int highest_priority;\r
extern char *ip6prefix;\r
\r
-struct IP* find_network_for_ip(char *ipaddr_orig);\r
+void update_network(char *look_for, struct IP* ip);\r
/* implemented in networks.c */\r
\r
/* This must be object oriented! This looks almost like constructor ;-) */\r
}\r
ip->mark = FIRSTIPCLASS+1+class_count++;\r
\r
- network = find_network_for_ip(ip->addr);\r
- if(network)\r
- {\r
- network->min += ip->min;\r
- network->desired += ip->max;\r
- if(ip->max > network->max)\r
- {\r
- network->max = ip->max;\r
- }\r
- }\r
+ update_network(ip->addr, ip);\r
\r
if_exists(group,groups,(group->min == ip->min)) \r
{ \r