summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* use strdup().ume2005-01-281-2/+1
| | | | | Obtained from: KAME MFC after: 1 week
* make _getipnodebyname_multi() static.ume2005-01-271-1/+1
|
* implement AI_NUMERICSERV (as defined in RFC3493).ume2005-01-271-10/+13
| | | | | Obtained from: KAME MFC after: 1 week
* fill ai_canonname field for numeric hostname, by the given hostname.ume2005-01-271-7/+25
| | | | | | | follow new recommendation in RFC3493. Obtained from: KAME MFC after: 1 week
* query A RR before AAAA RR.ume2005-01-271-10/+10
| | | | MFC after: 1 week
* Markup and grammar fixes.ru2005-01-243-23/+31
|
* Update man pages to be in line with guidelines for IPv6 in FreeBSD.gnn2005-01-243-653/+17
| | | | | | | | | FreeBSD currently implements the most up to date IPv6 APIs for option and route header parsing. This checkin marks the older APIs as deprecated and points the reader to the newer pages. Reviewed by: Jun-ichiro Itojun Approved by: rwatson (mentor)
* Fix a dangling MKLINK from my last commit.gnn2005-01-241-1/+1
| | | | Approved by: rwatson (mentor)
* Submitted by: George V. Neville-Neil (gnn at freebsd dot org)gnn2005-01-237-0/+2099
| | | | | | | | | | | | | | | | Reviewed by: Kame Project (including Itojun-san, Jinmei-san and Suzuki-san) Approved by: Robert Watson (robert at freebsd dot org) Obtained from: Kame Project and OpenBSD Replace manual pages that may have violated the IETF's Copyright. All come from the Kame tree. Several were from OpenBSD except for ip6.4, and the inet6* pages which were rewritten by me. All of the text is new and drawn from reading the code and documentation.
* Submitted by: George V. Neville-Neil (gnn at freebsd dot org)gnn2005-01-237-2357/+2
| | | | | | | | | Approved by: Robert Watson (robert at freebsd dot org) Remove files in preparation for replacement with totally new versions of the manual pages. Update the Makefile to handle the new file to be added.
* Sort sections.ru2005-01-2014-95/+95
|
* Eliminate macro calls inside literal displays.ru2005-01-151-1/+1
|
* Scheduled mdoc(7) sweep.ru2005-01-111-7/+10
|
* Don't ignore the last line of config file (/etc/hosts, /etc/services, etc)sobomax2005-01-035-15/+12
| | | | | | | | which doesn't end in \n, since it may be very confusing. Also this should increase consistency, since most other config files work just fine regardless of the presence of traling \n in the last line. MFC After: 2 weeks
* Various markup and spelling fixes.trhodes2004-12-291-1/+1
| | | | | PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
* Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.bz2004-11-131-1/+1
| | | | | | | | | | | If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks
* o Backout rev. 1.16, see 1.3 commit log for more info.maxim2004-10-091-6/+4
| | | | | | | | | | | Requested by: bde o Remove unneeded sys/types.h and netinet/in.h from the synopsis and the example. o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h. o Mention where AF_* constants defined are. Educated by: bde
* Reflect the fact addr2ascii(3) and ascii2addr(3) need sys/socket.hmaxim2004-09-291-0/+1
| | | | | | | for AF_* constants. Submitted by: Matthew George MFC after: 2 weeks
* Use the recently introduced RES_DFLRETRY parameter instead of a well-hiddenyar2004-09-091-1/+1
| | | | constant for the default number of retries.
* Bump the document date, since the content changed today.roam2004-08-063-3/+3
| | | | Discussed with: ru
* Cross-reference getnameinfo(3), getaddrinfo(3), getipnodebyname(3) androam2004-08-063-0/+4
| | | | | | | | getipnodebyaddr(3). PR: 54229 Submitted by: Samuel Tardieu <sam@inf.enst.fr> MFC after: 2 weeks
* now e.f.f.3.ip6.arpa is delegated, we no longer need to query ip6.intume2004-07-212-7/+1
| | | | Obtained from: KAME
* Markup nits.ru2004-07-071-2/+4
|
* Markup fixes.ru2004-07-053-128/+180
|
* Eliminate double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-0212-35/+66
|
* Markup, grammar, and spelling fixes.ru2004-06-303-3/+7
|
* Spelling fixes.mpp2004-06-212-3/+3
|
* Rename variable name from `name' to `hostname'.ume2004-06-161-7/+7
| | | | | | | | | | This is a corresponding change to bin/67994. I'll soon commit bin/67994 into 4-STABLE. Actually, 5-CURRENT's getaddrinfo() doesn't have the problem mentiond in bin/67994. However, it is good to be in sync variable name with 4-STABLE and KAME. PR: bin/67994 Submitted by: JINMEI Tatuya <jinmei@ocean.jinmei.org>
* Date bump.bms2004-06-141-1/+1
| | | | Requested by: krion
* Document some return values.bms2004-06-141-1/+20
| | | | | PR: bin/22198 Submitted by: Nick Johnson (with cleanups)
* use source address as a hint to determine destination addressume2004-06-021-50/+361
| | | | by getipnodebyname().
* Add Aerospace Corporation copyrights to EUI64 support files.brooks2004-06-012-0/+52
| | | | Suggested by: marcel, imp
* Treat IPv4 private address as global scope rather than site scope.ume2004-05-311-1/+1
| | | | | Though it breaks RFC 3484, without this change, dest addr selection doesn't work well under NAT environment.
* use source address as a hint to determine destination address.ume2004-05-311-0/+111
| | | | Obtained from: KAME
* Add support for an /etc/eui64 file modeled on /etc/ethers. The API isbrooks2004-05-263-2/+492
| | | | | | modeled on ethers(3) except that all functions are thread-safe. Reviewed by: simokawa
* Unbreak world.ru2004-04-211-3/+2
|
* MFdragonfly: resolver fix for timeouts on unqualified hostnamesnjl2004-04-211-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | res_search only incremented got_servfail for h_errno == TRY_AGAIN *AND* hp->rcode == SERVFAIL. However, there are cases such as timeouts where rcode is not always set to SERVFAIL. This leads to inconsistent nameserver operation during multi-domain and truncated dot searches, especially during booting when portions of the network are being brought up simultanious with dns lookups. This patch attempts to correct the problem by unconditionally terminating the search if TRY_AGAIN is returned (after res_query has gone through all retries and name servers) instead of trying other domain elements in the domain seach path. This patch should fix reported problems (which I can reproduce) with some NFS mounts failing during boot. This occured because mount_nfs thought the host name lookup returned a definitive failure using a non-dotted host name when, in fact, it timed out on the first part (host.search.domain.name) and got a definitive host-not-found response on the second part (host.). Generally speaking, search path name server timeouts can exceed 60 seconds per element and most machines which consistently timeout on earlier portions of a search path are effectively non-operational due to the imposed delays. It is more important for DNS lookups to return the proper error code then to be able to recover a valid lookup in later portions of the search path in these situations. Obtained from: DragonFly MFC after: 3 weeks
* Add a missing "*errp = h_errno" forgotten in rev 1.36.pb2004-04-061-1/+2
|
* Fix _dns_ghbyname() to return NS_TRYAGAIN instead of NS_NOTFOUNDpb2004-04-051-4/+12
| | | | | | | | | on temporary nameserver failure. This is necessary to get getipnodebyname(3) to correctly return h_errno=TRY_AGAIN instead of HOST_NOT_FOUND. Reviewed by: green, thomas MFC after: 1 week
* The previous commit changed the behavior of nsdispatch() in thenectar2004-04-011-3/+1
| | | | | | | | | | | | | | case where an /etc/nsswitch.conf file was present, but could not be opened (e.g. due to permissions). Previously, the open failure condition was suppressed, and the built-in defaults were used. In revision 1.11, however, propagated the open failure causing all nsdispatch() invocations to return NS_UNAVAIL, and thus many APIs including getpwnam and gethostbyname unconditionally failed. This commit restores the previous behavior. Pointy hat: nectar (+1 for obstinance; ache had to use clue bat) Reported by: ache
* When a dynamic NSS module is built and linked against a threadnectar2004-03-302-22/+42
| | | | | | | | | | | | | library, it may pull in that thread library at run time. If the process started out single-threaded, this could cause attempts to release locks that do not exist. Guard against this possibility by checking __isthreaded before invoking thread primitives. A similar problem remains if the process is linked against one thread library, but the NSS module is linked against another. This can only be avoided by careful design of the NSS module. Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine)
* Don't try to pass off a struct sockaddr as a struct sockaddr_in when itdes2004-03-151-2/+2
| | | | | | | may in fact very well be a struct sockaddr_in6. Just use plain struct sockaddr. This brings us yet another step closer to a clean -O2 build.
* Make this compile with -O2. A proper fix would use a struct to representdes2004-03-151-22/+22
| | | | | vectors, instead of requiring the caller to keep track of element size and count and pass them in by reference.
* Whitespace nits.des2004-03-151-4/+4
|
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)markm2004-03-051-2/+2
| | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64
* Make the resolver(3) and many associated interfaces much more reentrant.green2004-02-2512-52/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now with what should be totally reentrant, and h_errno values will now be preserved correctly, but this does not affect interfaces such as gethostbyname(3) which are still mostly non-reentrant. In all of these relevant functions, the thread-safety has been pushed down as far as it seems possible right now. This means that operations that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected still under global locks that getaddrinfo(3) defines, but where possible the locking is greatly reduced. The most noticeable improvement is that multiple DNS lookups can now be run at the same time, and this shows major improvement in performance of DNS-lookup threaded programs, and solves the "Mozilla tab serialization" problem. No single-threaded applications need to be recompiled. Multi-threaded applications that reference "_res" to change resolver(3) options will need to be recompiled, and ones which reference "h_errno" will also if they desire the correct h_errno values. If the applications already understood that _res and h_errno were not thread-safe and had their own locking, they will see no performance improvement but will not actually break in any way. Please note that when NSS modules are used, or when nsdispatch(3) defaults to adding any lookups of its own to the individual libc _nsdispatch() calls, those MUST be reentrant as well.
* add destination address selection support for getipnodebyname(3).ume2004-02-201-1/+225
| | | | | though getipnodebyname(3) is obsoleted api, some major applications such as Mozilla are still using it. so, it will help ipv4 users.
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-101-1/+0
| | | | | | | | These files had tags at the start of the file (incorrect, removed), and after the copyright notices (correct). Approved by: rwatson (mentor)
* Unbreak world.ru2004-02-071-2/+2
|
OpenPOWER on IntegriCloud