summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbydns.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove two stray lines that snuck in the cvs mergeimp2002-06-261-1/+0
|
* Include more robust checking of end of buffer that more completelyimp2002-06-261-24/+15
| | | | plugs the hole.
* Fix a minor last, minute issue that came in after I committed.imp2002-06-261-1/+1
| | | | Noticed by: nectar
* Avoid remote buffer overflow on hostbuf[].imp2002-06-261-0/+1
| | | | Submitted by: joost Pol <joost@pine.nl>
* Fix the style of the SCM ID's.obrien2002-03-221-1/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove __P() usage.obrien2002-03-211-2/+2
|
* Remove 'register' keyword.obrien2002-03-211-7/+7
|
* Mark some functions as __printflike() and/or taking const char * argumentskris2001-08-201-0/+4
| | | | | | instead of char *. MFC after: 2 weeks
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-061-24/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* Fix coredump in gethostbyaddr() when the returned answer is too large tofenner2000-02-161-0/+4
| | | | | | | | | fit in the static buffer. This fix causes it to look like there is no data available, which is also wrong but is better than dumping core. PR: bin/10344 Reviewed by: billf Approved by: jkh
* Suppress vast quantities of unneeded warnings spewed by libc's gethostbydnsrwatson1999-12-281-3/+4
| | | | | | | on encountering a real-world SIG record during a lookup of another type. PR: bin/7352 Reviewed by: peter, eivind
* Add unsigned char cast to is[x]digitache1999-11-041-4/+4
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Update libc dns code to 4.9.7-T1B level. This involved chopping out largepeter1998-05-021-5/+42
| | | | | | 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.
* Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-271-9/+25
| | | | overflow problem differently.
* _res_close() -> res_close()peter1997-03-121-2/+2
| | | | Pointed out by: bde
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fix fake failures on the short names which looks like hexadecimal numbersache1997-01-081-8/+4
| | | | Submitted by: paul@vix.com
* Disable isxdigit block until proper solution will be foundache1997-01-051-2/+7
| | | | | isxdigit(name[0]) gives false failures on short names which looks like hexadecimal digits, f.e. "fade", "babe", "d133", etc.
* Here goes.. Bring the 4.9.5-P1 resolver into -current. This has thepeter1996-12-301-9/+40
| | | | | DNSSEC stuff, among other things. There are also some renamed functions, I've left out the res_stubs.c from this commit in case cvs bombs out..
* Small yet significant tweaks/cleanups:wpaul1996-12-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | - getservent: o put _yp_check() proto under #ifdef YP where it belongs o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - gethostbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long - getnetbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - ether_addr: o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying (in this case it's BUFSIZ + 2 bytes, but it happens that BUFSIZ == YPMAXRECORD. - gethostbydns: o nuke stray 'return(NULL)' in __dns_getanswer() (harmless but looks silly) These are 2.2 candidates. I will wait a few days to make sure these don't break anything and then, if there are no objections, move them to the 2.2 branch.
* Make the __dns_getanswer() wrapper work right. For the newer versionswpaul1996-12-241-1/+14
| | | | | | | of BIND, we need to tweak some things to that gethostanswer() knows whether or not we're dealing with an IPv4 or IPv6 address. (This'll teach me to use a 2.1.0 system for NIS development -- but it's so nice and stable I just can't being myself to upgrade it. :)
* Add __dns_getanswer() hook to allow access to the gethostanswer()wpaul1996-12-221-1/+11
| | | | functions from outside libc. (Needed for async DNS resolver in ypserv.)
* Add an "officially undocumented" tweak for squid so that it can see thepeter1996-11-011-2/+7
| | | | | | TTL of DNS records that it looks up for it's resolver cache. Obtained from: Endre Balint Nagy <bne@CareNet.hu>, via squid-1.1.x source.
* Skip results that have unexpected lengthspst1996-10-011-7/+6
|
* Merge in bind-4.9.4-P1 resolver...peter1996-08-291-78/+155
|
* General -Wall warning cleanup, part I.jkh1996-07-121-3/+3
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* The last of the bind-4.9.3-REL resolver merges.peter1996-01-131-60/+94
|
* As above.phk1995-10-221-1/+2
|
* Fix bogus include paths, some of which stopped libresolv from compiling.bde1995-08-211-2/+2
|
* Update the resolver part of libc to bind-4.9.3-beta24 level (from beta9p1)peter1995-08-201-29/+102
| | | | | | | | Note that this was done by selective patching from diffs, to not conflict with the 4.4bsd base code.. This was *not* a trivial task.. I have been testing this code (apart from cosmetic changes) in my libc for a while now. Obtained from: Paul Vixie <paul@vix.com>
* Remove trailing whitespace.rgrimes1995-05-301-6/+6
|
* In _gethostbydnsaddr(), force RES_RECURSE into _res.options. This iswollman1994-12-011-1/+4
| | | | | | incredibly obnoxious, but also makes inverse mappings work when the local resolver is in a cache-only configuration. (Maybe this is actually a bug in BIND?)
* remove need for -DDEBUG from resolver code (conflict with db/hash)pst1994-09-251-7/+1
|
* get* rework and new bind codepst1994-09-251-0/+480
OpenPOWER on IntegriCloud