more refucktoring (into multiple modules)
[svn/Prometheus-QoS/.git] / prometheus.c
index 2aec7ffa0a75f720eaae440144edbe72f8f23cbc..717971410549b1ce35de9bc6eadc77ce1ae55fe3 100644 (file)
@@ -181,31 +181,9 @@ struct Index
 } *idxs=NULL, *idx, *metaindex;\r
 \r
 \r
-/* Damned, this must be object oriented! This looks almost like constructor ;-) */\r
 \r
-void TheIP(void)\r
-{\r
- create(ip,IP);\r
- ip->name        = "";\r
- ip->addr        = "";\r
- ip->sharing     = NULL;\r
- ip->prio        = highest_priority+1;\r
- ip->lmsid       = -1;\r
- ip->fixedprio   = \\r
- ip->mark        = \\r
- ip->min         = \\r
- ip->max         = \\r
- ip->desired     = \\r
- ip->credit      = \\r
- ip->upload      = \\r
- ip->proxy       = \\r
- ip->direct      = \\r
- ip->traffic     = \\r
- ip->pktsup      = \\r
- ip->pktsdown    = 0;\r
- ip->keyword     = keywords;\r
- push(ip,ips);\r
-}\r
+void TheIP(void);\r
+/* function implemented in parsehosts.c */\r
 \r
 /* ====== iptables indexes are used to reduce complexity to log8(N) ===== */\r
 \r
This page took 0.116038 seconds and 4 git commands to generate.