Commit Graph

430 Commits

Author SHA1 Message Date
kleink a51e2828bb Fix previous rev. the right way, using socklen_t. 2001-04-26 19:43:53 +00:00
tron d83ea5d25d Fix lint problem caused by the changes for PR standards/12703. 2001-04-26 18:50:13 +00:00
kleink 91491e8dda Change the `len' arguemtn to gethostbyaddr(3) from int to socklen_t in
accordance with XNS5.2; fixes PR standards/12703.
2001-04-26 12:55:31 +00:00
wiz 7742cb260f Fix date. 2001-04-10 15:20:18 +00:00
itojun dea3f7103b it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
2001-02-28 02:30:31 +00:00
sommerfeld 37a3c0e7bc Replace strcpy with strlcpy and bounds check.
From mheffner@vt.edu via freebsd-audit@freebsd.org via hesiod@mit.edu
2001-02-13 15:41:18 +00:00
itojun a20390114e fix listener side example. from deraadt, sync with kame 2001-02-12 09:28:40 +00:00
itojun f7d72dde3e use standard IPv6 address comparison macros. sync with kame 2001-02-12 09:27:46 +00:00
itojun 34cabf50d6 - scope separater is percentage, not atmark.
- typo in example.  s/err1/errx/.
- some wording improvements.
sync with kame.
2001-01-26 13:30:38 +00:00
jdolecek ca797c3c15 make local constant arrays const 2001-01-25 22:50:55 +00:00
itojun 2dda99193c make sure "qname" argument to getanswer() is properly given. from lukem 2001-01-24 15:05:48 +00:00
itojun c0ed349e69 do not refer getnodebyaddr.
sync with latest kame.
2001-01-05 13:40:28 +00:00
lukem 1e96402257 ensure that buf1 in res_queriesmatch() isn't dereferenced before
testing with _DIAGASSERT(buf1 != NULL).
(damn those pesky initialisations in declarations... :)
2001-01-04 15:04:19 +00:00
lukem a976c8e346 sprinkle _DIAGASSERT() around 2001-01-04 03:56:17 +00:00
christos 663f790f35 remove redundant declarations. 2000-12-20 20:51:08 +00:00
christos d76f22c50c add _nsyylineno declaration 2000-12-20 20:50:46 +00:00
christos 413f6305c4 remove unnecessary prototypes
lint casting.
2000-12-20 20:44:14 +00:00
christos 02db12eb31 appease lint casting. 2000-12-20 18:47:11 +00:00
christos 39b08b8fe0 remove redundant declarations of h_errno and __hostalias 2000-12-10 04:19:53 +00:00
itojun 1bc25f5914 strictly conform to RFC2553 (specifically ENXIO case). sync with KAME 2000-11-24 08:21:12 +00:00
lukem 73842568e7 english fixup 2000-11-16 07:25:36 +00:00
lukem afc75b9e6d Don't getenv $HESIOD_CONFIG or $HES_DOMAIN if issetugid().
Initial problem noted by Danny Braniss <danny@cs.huji.ac.il>
via Jacques A.  Vidrine <n@nectar.com>
2000-10-31 12:47:21 +00:00
itojun bcab9b6601 define HAVE_IFM_ADDRS for non-bsdi. sync with kame 2000-10-27 15:48:49 +00:00
ad 5b09090e8e insure -> ensure 2000-10-05 12:35:33 +00:00
sommerfeld 4c38fc5aac Varargsify dprintf to allow for format string checking 2000-10-04 14:56:24 +00:00
sommerfeld 76a009b2be Avoid compile-time variable format string (format audit) 2000-10-04 14:52:27 +00:00
sommerfeld ae42ec1652 Avoid run-time construction of format string we can build at compile time 2000-10-04 14:46:23 +00:00
itojun 9ebff4b328 remove merge error from kame. 2000-09-25 23:37:55 +00:00
itojun a931ac8209 off-by-1 error in string length validation.
From: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
2000-09-25 23:07:28 +00:00
lukem 4a1b4395d7 don't bother declaring in6_addrany[] and in6_loopback #ifndef INET6 2000-09-23 04:40:19 +00:00
ad 82759dbdf5 Use .{B,Bs,F,N,O}x and fix miscellaneous errors. 2000-09-21 10:43:49 +00:00
itojun e871d0cd31 on /etc/hosts lookup, set "official host name" (the leftmost hostname)
into ai_canonname.  this is to synchronize with practice in gethostby*.
comment from ume@mahoroba.org.  sync with kame.
2000-08-31 17:32:39 +00:00
itojun 14fcd6ed41 mention that current get{addr,name}info implementation are not thread-safe.
(sync with kame)
From: Greg Thompson
2000-08-09 22:52:49 +00:00
itojun babc498cc8 implement EDNS0 support, as EDNS0 support will be made mandatory for
IPv6 transport-ready resolvers/DNS servers.  need careful configuration
when enable it. (default config is not affected).
see manpage for details.

XXX visible symbol __res_opt() is added, however, it is not supposed to be
called from outside, libc minor is not bumped.
2000-08-09 14:40:52 +00:00
itojun 6acd1fa341 sync comment with reality. from kame 2000-08-07 16:18:45 +00:00
itojun 698d9a8d8b on gethostby* with NIS backend, make a lookup against ipnodes.{byname,byaddr}
for non-IPv4 address.  obeys solaris8 practice.

XXX does not support scoped address extension, as gethostby* are not
scope-aware.  always use getaddrinfo/getnameinfo.
XXX it is not very useful at this moment, if you define multiple entries for
single hostname.  see PR 10713 for detail.
2000-07-30 03:01:01 +00:00
itojun 31089a149f plug host_addrs overrun. rogue NIS server can transmit tons of lines,
effectively overrun host_addrs buffer.
2000-07-30 02:44:36 +00:00
itojun c8c092ff17 do not try to transmit UDP DNS query forever, in EINTR-busy situation.
the change uses extra variables which can be avoided,
it is to make the change look similar to BIND8 change.
question: timeout resolution is 1 second (time_t).  should we use
timevals instead?

PR 6410 From: maximum entropy <entropy@venom.bernstein.com>
2000-07-27 00:35:02 +00:00
itojun 3f0f0ab67d typo. s/Fa getaddrinfo/Fn getaddrinfo/. sync with kame. 2000-07-25 04:51:27 +00:00
itojun f69808cddd move pitfall example to downwards. wording fixes. sync with kame. 2000-07-25 04:39:54 +00:00
itojun e3256888e3 give pitfall examples.
in response to couple of PRs including 10666.  sync with kame.
2000-07-25 02:33:29 +00:00
itojun ff9df0b1b7 correct malloc() size computation mistake. bug from bsdi, found
by kjc.  sync with kame.
2000-07-24 12:06:55 +00:00
itojun 20aa4f5b37 reject empty scopeid/numeric portname explicitly. sync with kame. 2000-07-09 04:48:17 +00:00
itojun a00fcf14af use strtoul() to check for all-digit string, not isdigit(). sync with kame. 2000-07-09 04:23:49 +00:00
itojun d3884933be %-format pedant (always pass %s, don't use variable alone).
from openbsd.
2000-07-08 03:28:01 +00:00
itohy 7daefc5a5a Passing "char" values to ctype(3) functions is problematic.
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.

The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems.  On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems.  However, we leave the isascii()
untouched for now, so as not to change the current behavior.
2000-07-07 08:03:36 +00:00
cgd f447d9b890 to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.
2000-07-07 05:30:58 +00:00
christos ae40c8edb2 remove register
elide non-portable casts
2000-07-06 03:02:22 +00:00
christos 1c3b369611 add explicit casts
elide non-portable casts
2000-07-06 03:01:32 +00:00
christos 373996b8e8 add constcond lint directive 2000-07-06 03:00:39 +00:00