getting ready for IP6tables support
[svn/Prometheus-QoS/.git] / parsehosts.c
index db3bf2eb52f2003c647518487023cceb98d9d118..d17c61917c32ad0235da1f3b036b768e3b56e27b 100644 (file)
@@ -17,11 +17,11 @@ extern int free_min;
 extern const int highest_priority;\r
 \r
 /* This must be object oriented! This looks almost like constructor ;-) */\r
-void TheIP(void)\r
+void TheIP(char *ipaddr)\r
 {\r
  create(ip,IP);\r
  ip->name        = "";\r
- ip->addr        = "";\r
+ ip->addr        = ipaddr;\r
  ip->sharing     = NULL;\r
  ip->prio        = highest_priority+1;\r
  ip->lmsid       = -1;\r
@@ -80,9 +80,8 @@ void parse_ip(char *str)
  if_exists(ip, ips, eq(ip->addr,ipaddr));\r
  else\r
  {\r
-  TheIP();\r
+  TheIP(ipaddr);\r
  }\r
- ip->addr = ipaddr;\r
  ip->name = ipname;\r
  if(lmsid)\r
  {\r
This page took 0.095695 seconds and 4 git commands to generate.