GIT.Harvie.CZ
/
svn
/
Prometheus-QoS
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
analysing network topology - more work done
[svn/Prometheus-QoS/.git]
/
parsehosts.c
diff --git
a/parsehosts.c
b/parsehosts.c
index b21af786e7d7c87a4dc0d5afb52107f08fe200a0..bcf222e86cb8991e029841ba75bec82dd23908d0 100644
(file)
--- a/
parsehosts.c
+++ b/
parsehosts.c
@@
-17,7
+17,7
@@
extern int free_min;
extern const int highest_priority;
\r
extern char *ip6prefix;
\r
\r
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
/* implemented in networks.c */
\r
\r
/* This must be object oriented! This looks almost like constructor ;-) */
\r
@@
-257,16
+257,7
@@
void parse_hosts(char *hosts)
}
\r
ip->mark = FIRSTIPCLASS+1+class_count++;
\r
\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
\r
if_exists(group,groups,(group->min == ip->min))
\r
{
\r
This page took
0.107086 seconds
and
4
git commands to generate.