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
getting ready for IP6tables support
[svn/Prometheus-QoS/.git]
/
parsehosts.c
diff --git
a/parsehosts.c
b/parsehosts.c
index db3bf2eb52f2003c647518487023cceb98d9d118..d17c61917c32ad0235da1f3b036b768e3b56e27b 100644
(file)
--- a/
parsehosts.c
+++ b/
parsehosts.c
@@
-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
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
{
\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
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
if_exists(ip, ips, eq(ip->addr,ipaddr));
\r
else
\r
{
\r
- TheIP();
\r
+ TheIP(
ipaddr
);
\r
}
\r
}
\r
- ip->addr = ipaddr;
\r
ip->name = ipname;
\r
if(lmsid)
\r
{
\r
ip->name = ipname;
\r
if(lmsid)
\r
{
\r
This page took
0.101995 seconds
and
4
git commands to generate.