Subject: Re: sockaddr_snprintf
To: None <tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 11/17/2004 00:53:42
>> So, what's going to happen with scope IDs when NI_WITHSCOPEID goes
> always attached like fe80::1%fxp0, unless sin6_scope_id is 0.
So if you really want getnameinfo() to not go making gratuitous
syscalls on you - you want it to be _just_ a purely user-level "format
this data" call - you have to check the address family for IPv6, and
then check the scope ID, and if it's nonzero, format it with a zero
scope ID and attach the scope ID - as a number - yourself?
Ugh. What is one _supposed_ to use for debugging output? Or is there
an NI_NUMERICSCOPEID bit now?
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML firstname.lastname@example.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B