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
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