netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPv6: presentation format for zero scope ID
@ 2009-12-07 21:45 Chuck Lever
  2009-12-08  3:27 ` Brian Haley
  0 siblings, 1 reply; 9+ messages in thread
From: Chuck Lever @ 2009-12-07 21:45 UTC (permalink / raw)
  To: Linux Network Developers; +Cc: Jeff Layton

I recently added some functions to sunrpc.ko that behave like  
getnameinfo(AI_NUMERICHOST) does in user space.

One of the functions, rpc_ntop6(), sticks a scope ID on the end of  
link- and site-local IPv6 addresses.  It does not try to map the scope  
ID to a device name.

It has been pointed out, however, that glibc's getnameinfo(3) skips  
appending a device name if the scope ID is zero.  Should rpc_ntop6()  
display or ignore zero scope IDs?  Would it be better if it also  
converted scope IDs to device names?

I'm not familiar enough with the IETF mandates regarding presentation  
address format, or the idiosyncrasies of the Linux IPv6  
implementation, to know what is the desired behavior here.  Any  
guidance appreciated.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-12-10 19:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 21:45 IPv6: presentation format for zero scope ID Chuck Lever
2009-12-08  3:27 ` Brian Haley
2009-12-08 13:03   ` Jeff Layton
2009-12-08 15:57     ` Chuck Lever
2009-12-09 19:57     ` Chuck Lever
2009-12-09 22:50       ` Brian Haley
2009-12-10 18:19         ` Chuck Lever
2009-12-10 19:32           ` Brian Haley
2009-12-08 16:08   ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).