Skip to content

Commit

Permalink
improved portability (do not assume sin6_len)
Browse files Browse the repository at this point in the history
from yoshifuji...although this command has already been obsoleted...sorry.
  • Loading branch information
jinmei committed Sep 26, 2000
1 parent af24d25 commit 008e2bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kame/kame/advapitest/receiver.c
Expand Up @@ -97,7 +97,11 @@ pr_addr(addr, numeric)
flag |= NI_WITHSCOPEID;
#endif

#ifdef SIN6_LEN
getnameinfo(addr, addr->sa_len, buf, sizeof(buf), NULL, 0, flag);
#else
getnameinfo(addr, SA_LEN(addr), buf, sizeof(buf), NULL, 0, flag);
#endif

return (buf);
}

0 comments on commit 008e2bf

Please sign in to comment.