get local ipaddr support interface based 1
parent
83a8b14174
commit
503cdc6006
3
HISTORY
3
HISTORY
|
|
@ -1,5 +1,6 @@
|
|||
Version 1.09 2014-10-23
|
||||
Version 1.09 2014-10-24
|
||||
* Version struct add variable: patch
|
||||
* get local ipaddr support interface based 1
|
||||
|
||||
Version 1.08 2014-10-09
|
||||
* sched_thread.c: calculate next_call_time correctly
|
||||
|
|
|
|||
|
|
@ -146,12 +146,13 @@ int fast_timer_timeouts_get(FastTimer *timer, const int64_t current_time,
|
|||
continue;
|
||||
}
|
||||
}
|
||||
else {
|
||||
else { //expired
|
||||
count++;
|
||||
if (first == NULL) {
|
||||
first = entry;
|
||||
}
|
||||
}
|
||||
|
||||
last = entry;
|
||||
entry = entry->next;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1736,6 +1736,10 @@ int gethostaddrs(char **if_alias_prefixes, const int prefix_count, \
|
|||
ret = ioctl(sock, SIOCGIFADDR, &req);
|
||||
if (ret == -1)
|
||||
{
|
||||
if (*count == 0 && k == 0) //maybe based 1
|
||||
{
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue