Commit 7d322326 authored by Martti Mela's avatar Martti Mela

su_localinfo returns now valid address also in Windows

darcs-hash:20051209133110-1b897-cd8ab1fbd698fef52e5ad7b37adb9994407312e9.gz
parent c0b514d5
......@@ -69,6 +69,9 @@ extern su_log_t nta_log[];
extern su_log_t tport_log[];
extern su_log_t su_log_default[];
extern void *memmem(const void *haystack, size_t haystacklen,
const void *needle, size_t needlelen);
char const name[] = "test_nua";
int print_headings = 1;
......
......@@ -479,6 +479,10 @@ int localinfo4(su_localinfo_t const *hints, su_localinfo_t **rresult)
#endif
su = (su_sockaddr_t *)&ifr->ifr_addr;
if (SU_HAS_INADDR_ANY(su))
continue;
scope = li_scope4(su->su_sin.sin_addr.s_addr);
if ((hints->li_scope && (hints->li_scope & scope) == 0) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment