netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC 3484 support
@ 2003-11-12  1:05 Ulrich Drepper
  2003-11-13 10:07 ` kuznet
  0 siblings, 1 reply; 8+ messages in thread
From: Ulrich Drepper @ 2003-11-12  1:05 UTC (permalink / raw)
  To: netdev, yoshfuji, kuznet

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I want to implement RFC 3484 support in getaddrinfo for glibc but there
is the tiny little problem with the source address selection which has
to be solved as part of the destination address selection.

To sort the destination addresses the source address for each of the
addresses returned by getaddrinfo must be determined.  This can be done
in two ways:

1. use the existing kernel functionality and provide an interface to it
   which userlevel can use

2. re-implement routing at userlevel


#2 above has serious problems.  To accurately re-implement the kernels
routing decision making a huge amount of data is needed.  Not only the
routing information, but also transient errors, all the kernel
parameters and flags influencing routines etc.  This is, I'd say,
virtually impossible which would mean an implementation with the source
address selection happening at userlevel would do a bad job in some cases.

So my question is: is there interest in adding support for method #1 to
the kernel?  Could we get a syscall or whatever to pass down to the
kernel a set of addresses (and whatever else is needed) and the kernel
passing back information about the sorted list (either the sorting list
or a transformation description of some sort)?


[I'm not on this list, so please cc: me.  DaveM made me post here.]


- -- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/sYdY2ijCOnn/RHQRAppvAJ9MuBPXJM5tH93mXwRu2prifwo+GACfSjzg
tuMC3yIgcqugevSYvuJpC2g=
=yEdb
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2003-11-18  8:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12  1:05 RFC 3484 support Ulrich Drepper
2003-11-13 10:07 ` kuznet
2003-11-13 13:26   ` Pekka Savola
2003-11-13 23:17     ` Ulrich Drepper
2003-11-13 23:29       ` Pekka Savola
2003-11-13 23:12   ` Ulrich Drepper
2003-11-14 23:45     ` kuznet
2003-11-18  8:59       ` Ulrich Drepper

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).