summaryrefslogtreecommitdiff
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Suppress vast quantities of unneeded warnings spewed by libc's gethostbydnsRobert Watson1999-12-281-3/+4
| | | | | | | | | | on encountering a real-world SIG record during a lookup of another type. PR: bin/7352 Reviewed by: peter, eivind Notes: svn path=/head/; revision=55174
* Small bug fix and improvementsYoshinobu Inoue1999-12-281-0/+7
| | | | | | | | | | | (1)added error check of if_nameindex() return value at getaddrinfo(). (2)print out more detailed information when getaddrinfo() error value is EAI_SYSTEM.(in this case system error num is kept in errno) (1) is Discovered by: jinmei@kame.net in KAME environment. Notes: svn path=/head/; revision=55167
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.Yoshinobu Inoue1999-12-288-4/+3657
| | | | | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=55163
* Make this compile with -Wall -WerrorPeter Wemm1999-12-271-1/+2
| | | | Notes: svn path=/head/; revision=55135
* Fixed missing includes in synopsis.Bruce Evans1999-12-231-0/+2
| | | | Notes: svn path=/head/; revision=55038
* KAME 4th patchYoshinobu Inoue1999-12-166-4/+1088
| | | | | | | | | | | IPv6 specific library functions addition. (getnameinfo(), getaddrinfo(), and IPv6 transport support is not yet) Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=54696
* Add unsigned char cast to isalphaAndrey A. Chernov1999-11-042-2/+2
| | | | Notes: svn path=/head/; revision=52865
* Add unsigned char cast to is[x]digitAndrey A. Chernov1999-11-042-5/+5
| | | | Notes: svn path=/head/; revision=52863
* unsigned char cast to ctype macrosAndrey A. Chernov1999-11-041-1/+3
| | | | Notes: svn path=/head/; revision=52859
* Add unsigned char cast to ctype macros argAndrey A. Chernov1999-11-045-37/+39
| | | | Notes: svn path=/head/; revision=52858
* Fix a really lame buglet which broke with IPs of 34Brian Feldman1999-11-031-1/+1
| | | | | | | (ERANGE...) Notes: svn path=/head/; revision=52820
* Allow whitespace termination. Internal use of /etc/resolv.conf reliesBrian Feldman1999-10-311-3/+6
| | | | | | | on this, and who knows what else would, too... Notes: svn path=/head/; revision=52708
* This is the new inet_addr/inet_aton with proper error checking. ThisBrian Feldman1999-10-311-65/+69
| | | | | | | | | | | | should close all outstanding PRs on incorrect inet_aton behavior, and since it has a decent parsing routine, doesn't allow some hysterically working behavior. PR: 13628 Submitted by: Adrian Chadd <adrian@FreeBSD.org> Notes: svn path=/head/; revision=52707
* Back out my backout, it was already posix compliant. Any new fields arePeter Wemm1999-09-281-1/+0
| | | | | | | | | required to be "announced" by a new bit in sa_flags to indicate the program is aware of and has taken care of them. eg: SA_SIGINFO means the program has used the sa_siginfo field (versus sa_handler). Notes: svn path=/head/; revision=51764
* Fix previous commit. The standards specifically say: "The structurePeter Wemm1999-09-281-0/+1
| | | | | | | | | | | | sigaction, used to describe an action to be taken, is defined in the header <signal.h> to include at least the following members:" ^^^^^^^^ A sigaction defined on stack with essentially random contents may have just about anything underneath fields that the program doesn't know about. It is not safe to delete the bzero. Notes: svn path=/head/; revision=51762
* Explicitly use sigemptyset to clear a sigset_t. ExplicitMarcel Moolenaar1999-09-281-1/+2
| | | | | | | initialization of sa_flags allows us to lose the bzero. Notes: svn path=/head/; revision=51759
* Fix typoAlexey Zelkin1999-09-191-1/+1
| | | | | | | | PR: docs/13814 Submitted by: Alex Vasylenko <lxv@mix.nest.org> Notes: svn path=/head/; revision=51419
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2847-50/+50
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-126-0/+6
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Ensure that host_addr (which is returned in struct hostent::h_addr_list[0])Dmitrij Tejblum1999-06-071-2/+2
| | | | | | | is aligned so that pointer to it can be safely casted to struct in_addr *. Notes: svn path=/head/; revision=47819
* Change an internal variable from "class" to "ns_class" for C++'s benefit.Peter Wemm1999-06-041-2/+2
| | | | | | | | | Apparently BIND-8.2.1 uses ns_class. Submitted by: John Plevyak <jplevyak@inktomi.com> Notes: svn path=/head/; revision=47742
* Mention that getservbyport requires its port parameter to be inGuy Helmer1999-03-021-2/+3
| | | | | | | | | network byte order. PR: docs/9376 Notes: svn path=/head/; revision=44387
* Removed occurrences of consecutive repeated words (such as "the the").Alexander Langer1999-02-122-3/+2
| | | | Notes: svn path=/head/; revision=43920
* gethostbyname2() was broken for lookups via NIS on FreeBSD/alphaAndrew Gallatin1999-01-251-4/+7
| | | | | | | | due to _gethostbynis() setting h.h_length to sizeof(u_long), which works out to 8 on alphas. And 8!= NS_INADDRSZ. Notes: svn path=/head/; revision=43171
* 64bit portability fixes.Doug Rabson1998-10-051-11/+11
| | | | | | | Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=39979
* o use strncpy safelyWarner Losh1998-09-141-3/+8
| | | | | | | | | | o Only allow options and domain name to be set when we aren't running setuid. Obtained from: OpenBSD Notes: svn path=/head/; revision=39194
* Implement the weak aliases for private entry points in the inet_*John Polstra1998-09-0220-90/+167
| | | | | | | | | | | | | | and res_* modules in a way that works for ELF. I moved the aliases out of res_stubs.c and into the individual modules where the entry points are defined. Weak aliases don't work in ELF unless that is the case. (Actually, I'm surprised it worked for a.out.) This should fix the undefined "inet_addr" and related symbols in various applications that fail to include <arpa/inet.h> or <resolv.h> as they are supposed to do. Notes: svn path=/head/; revision=38736
* Fixed bitrot in prototypes in synopsis.Bruce Evans1998-08-031-5/+5
| | | | Notes: svn path=/head/; revision=38060
* Fixed printf format errors.Bruce Evans1998-06-301-1/+1
| | | | Notes: svn path=/head/; revision=37301
* Don't compile in the use of poll() when building libc_r. This isn'tPeter Wemm1998-06-141-1/+15
| | | | | | | | so much a "fix", rather a bandaid to buy time to fix it properly within the thread engine. Notes: svn path=/head/; revision=36967
* Update the resolver parts to bind-8.1.2 level. I have not touched thePeter Wemm1998-06-1125-1733/+3219
| | | | | | | | | getXXXXbyYYYY() interfaces yet. Obtained from: diff relative to bind-8.1.2 sources Notes: svn path=/head/; revision=36891
* Spelling corrections.Joseph Koshy1998-06-062-3/+3
| | | | | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36692
* Resolve some unexpected differences when comparing with the 2.2 version.Peter Wemm1998-05-021-2/+10
| | | | | | | | | One bug was relatively harmless (select's timeout had an uninitialized tv_usec), the other I'm not so sure.. (neglected to catch select returns less than zero). Both of these were irrelevant on kernels with poll(). Notes: svn path=/head/; revision=35624
* Update libc dns code to 4.9.7-T1B level. This involved chopping out largePeter Wemm1998-05-023-249/+753
| | | | | | | | | chunks of res_comp.c and replacing it with chunks of bind-8.1.1's resolver code. (There are no interface changes though) The other parts are better bounds checking related. Notes: svn path=/head/; revision=35623
* (Ab)use .Vt instead of .Fd for a variable declaration.Bruce Evans1998-03-231-2/+2
| | | | Notes: svn path=/head/; revision=34817
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.AqPhilippe Charnier1998-03-191-3/+4
| | | | Notes: svn path=/head/; revision=34669
* Change MACHINE references to MACHINE_ARCH.John Birrell1998-02-201-3/+3
| | | | Notes: svn path=/head/; revision=33668
* Add #include <string.h> to get prototypes.John Birrell1998-02-201-1/+2
| | | | Notes: svn path=/head/; revision=33667
* Fixed #includes in the synopsis and in an example. <sys/socket.h>Bruce Evans1998-01-201-1/+1
| | | | | | | | | isn't a prerequisite, since it isn't required for the prototypes and isn't always needed to call the functions (the address family might be a variable). Notes: svn path=/head/; revision=32647
* handle long usernames more carefullyWarner Losh1998-01-071-5/+8
| | | | | | | | Reviewed by: guido Obtained from: OpenBSD (Theo de Raadt) Notes: svn path=/head/; revision=32299
* Removed unnecessary initialization of hp in gethostbyaddr_r.Alexander Langer1997-12-251-3/+3
| | | | Notes: svn path=/head/; revision=31984
* Sorted lists.Bruce Evans1997-10-211-20/+19
| | | | Notes: svn path=/head/; revision=30624
* Removed the subdirectory paths from the definitions of MAN[1-9]. TheyBruce Evans1997-10-151-7/+5
| | | | | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago. Notes: svn path=/head/; revision=30447
* Some adjustments for the resolver use of poll(). For some reason I thoughtPeter Wemm1997-09-161-7/+8
| | | | | | | | | | an unimplemented syscall returned ENOSYS, rather than EINVAL. I have run statically linked code with this wrapper and it does appear to work fine on 2.2-stable which doesn't have poll(). ktrace shows the poll syscall fail once and the fallback to select() working. Notes: svn path=/head/; revision=29488
* Call poll(2) from within the resolver but adapt to older kernels without itPeter Wemm1997-09-141-26/+68
| | | | | | | | | | | | | | | | if necessary. This removes the need to malloc large fd_set's for selecting on high fd's (larger than FD_SETSIZE at libc compile time). The syscall adaptive stuff only happens on the very first call. SIGSYS is masked, and if the call to poll fails with ENOSYS, then we use select for the life of the program. If poll does not fail with ENOSYS, then we always use poll and skip the once-off signal masking gunk. This may be overkill, but it saved my neck a few times while working on multiple different sets of kernel sources, some with poll, some without. Notes: svn path=/head/; revision=29380
* Add "options no_tld_query" to resolv.conf.Brian Somers1997-09-012-4/+6
| | | | | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers Notes: svn path=/head/; revision=28982
* kill the undeadPeter Wemm1997-07-133-239/+0
| | | | Notes: svn path=/head/; revision=27369
* This commit was generated by cvs2svn to compensate for changes in r27180,Bruce Evans1997-07-033-0/+239
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=27181
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,Bruce Evans1997-07-0310-0/+2712
| | | | | | | | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch. Notes: svn path=/vendor/CSRG/dist/; revision=27180
| * pull this in to avoid fixing these twicePeter Wemm1996-08-301-0/+250
| | | | Notes: svn path=/vendor/CSRG/dist/; revision=17961