summaryrefslogtreecommitdiffstats
path: root/libc/netbsd/net
Commit message (Collapse)AuthorAgeFilesLines
* Fix comparison of IPv6 prefixesKenny Root2010-03-241-1/+1
| | | | | | | Typo assigned prefixlen1 twice instead of to the two different variables for comparison and difference computation. Change-Id: I6631b8269ca6aae264c8d7d414127b756838df96
* Implement support for RFC 3484 (address selection/sorting) in bionic. (TheSteinar H. Gunderson2010-02-241-27/+356
| | | | | | | | | | | | | | | | | | | | | | | | Java changes required not to mess up the ordering from bionic will arrive in a later commit.) In particular, this will give us more correct behavior when on a 6to4 network, in that IPv4 will usually be preferred over 6to4. Most of RFC 3484 is implemented -- what's not is rule 3 (avoid deprecated addresses), 4 (prefer home addresses) and 7 (prefer native transport) as they require low-level access to the kernel routing table via netlink. (glibc also started out this way, and these rules are primarily useful in pretty obscure circumstances, so we should be fine for the time being.) Also, rule 9 (use longest matching prefix) has been modified so it does not try to sort IPv4 addresses; given current IPv4 addressing practice these rules are pretty much meaningless. Finally, I've added support for Teredo as a separate label, with slightly lower preference than 6to4. (Vista puts the preference below IPv4 by default. glibc puts the preference together with non-tunneled IPv6.) Note that this patch removes support for the "sortlist" directive in resolv.conf; I've never seen it in actual use, it's irrelevant for Android (since we don't use resolv.conf anyway), and it's not clear how it would be implemented alongside RFC 3484.
* merge from open-source masterJean-Baptiste Queru2009-09-151-1/+1
|\
| * Include <endian.h> instead of <sys/endian.h>,Chih-Wei Huang2009-08-311-1/+1
| | | | | | | | since the later doesn't define byte order.
* | Don't request IPv6 addresses if AI_ADDRCONFIG is specified and the system ↵Lorenzo Colitti2009-08-041-8/+42
|/ | | | has no IPv6 connectivity.
* Fix getservent() so that it returns s_port in network byte order.David 'Digit' Turner2009-05-271-2/+7
| | | | Also add a new document detailing known issues in the C library.
* change getaddrinfo() implementation to match GLibc.David 'Digit' Turner2009-05-051-2/+6
| | | | | | | | | | | | | | the issue is that the BSD implementation doesn't accept a call like: getaddrinfo(SERVER_NAME, "9999", NULL, &res); because if will reject a numerical string in the second parameter if no hints are explicitely provided. This technically doesn't violate POSIX but might make porting Linux software a bit difficult. For more details see: http://groups.google.com/group/android-ndk/browse_thread/thread/818ab9c53f24c87 also comment debugging printf() calls which shouldn't be there.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0313-0/+4118
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0313-4118/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-5/+5
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-2113-0/+4118