X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=prometheus.c;h=717971410549b1ce35de9bc6eadc77ce1ae55fe3;hp=2aec7ffa0a75f720eaae440144edbe72f8f23cbc;hb=a1204fc9fd3dab261b08e0d1491ec4099a762c5a;hpb=fe87b98b4b733f58664b913820fe317081f9ebb0 diff --git a/prometheus.c b/prometheus.c index 2aec7ff..7179714 100644 --- a/prometheus.c +++ b/prometheus.c @@ -181,31 +181,9 @@ struct Index } *idxs=NULL, *idx, *metaindex; -/* Damned, this must be object oriented! This looks almost like constructor ;-) */ -void TheIP(void) -{ - create(ip,IP); - ip->name = ""; - ip->addr = ""; - ip->sharing = NULL; - ip->prio = highest_priority+1; - ip->lmsid = -1; - ip->fixedprio = \ - ip->mark = \ - ip->min = \ - ip->max = \ - ip->desired = \ - ip->credit = \ - ip->upload = \ - ip->proxy = \ - ip->direct = \ - ip->traffic = \ - ip->pktsup = \ - ip->pktsdown = 0; - ip->keyword = keywords; - push(ip,ips); -} +void TheIP(void); +/* function implemented in parsehosts.c */ /* ====== iptables indexes are used to reduce complexity to log8(N) ===== */