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

su_localinfo returns now valid address also in Windows

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)
su = (su_sockaddr_t *)&ifr->ifr_addr;
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