Commit Graph

845 Commits

Author SHA1 Message Date
rpaulo de8db47547 Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.
2006-05-05 00:03:21 +00:00
rpaulo 2c7819a4c8 Make macros more readable. No functional change. 2006-03-25 12:09:40 +00:00
christos bd4761ac59 Coverity CID 2279: Plug memory leak. 2006-03-22 00:03:51 +00:00
christos c882076269 Coverity CID 2280: Plug memory leak. 2006-03-22 00:03:00 +00:00
christos 40c58e8b04 Coverity CID 2363: cur is known not to be NULL. 2006-03-21 23:56:47 +00:00
christos 432fdd32e0 Coverity CID 2364: cur is known not to be NULL. 2006-03-21 23:55:56 +00:00
christos f12fd11960 Coverity CID 2430: cur is known not to be NULL. 2006-03-21 23:55:02 +00:00
mjl f0174eb74b Correct obvious typo 2006-03-21 12:08:19 +00:00
ginsbach f44127c4ef Fix Coverity issue 2281, resource leak, function return without freeing
dynamically allocated storage.
2006-03-17 15:53:29 +00:00
wiz bf38813317 We have 2006. 2006-02-24 21:57:53 +00:00
ginsbach c4276fd553 Add EAI_OVERFLOW per RFC3493, POSIX and XPG6. 2006-02-22 14:26:30 +00:00
ginsbach 80194aa8a4 Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is
too short.  This conforms to RFC3493, POSIX and XPG6.  [from KAME]
2006-02-17 15:58:26 +00:00
ginsbach e0882f7342 Add EAI_OVERFLOW as specified in RFC3493, POSIX and XPG6. 2006-02-17 15:55:01 +00:00
ginsbach ac8d9f1ddd Fix spelling mistake in comment. From OpenBSD. 2006-02-13 17:16:20 +00:00
uwe aa9f62b35d Use different wording as "null macro" is too ambiguous. 2006-02-04 22:47:28 +00:00
christos 90d0f8cfa0 PR/32616: Yves-Emmanuel JUTARD: Fix compilation with -DDEBUG 2006-01-24 17:29:33 +00:00
perry fd18408b9a u_intN_t -> uintN_t 2005-12-26 19:40:14 +00:00
christos e5548b402a Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
yamt 92ca7d2b16 constify and remove an unnecessary __UNCONST. 2005-12-02 11:33:26 +00:00
yamt 765035980c constify and remove an unnecessary __UNCONST. 2005-12-02 11:22:09 +00:00
christos 03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
christos 3897500b28 forgot to commit this; cleanup to compile with WARNS=4, since lpd uses it. 2005-11-28 14:18:20 +00:00
christos 849dc6749d Let the default case handle all the errors; no functional change. 2005-10-19 22:56:42 +00:00
tsarna 064cb14faa Rest of fix for PR#31184: getaddrinfo() now honors resolv.conf sortlist
directive for dns answers.

Also, unifdef the RESLVSORT (non-)option sillyness.

Reviewed by christos.
2005-09-15 23:33:41 +00:00
tsarna 083c291209 Re-enable resolv.conf sortlist support in gethostbyname().
Fixes first part of PR#31184.  addrsort() was not exposed to the rest of
libc as it turns out not to be usable for getaddrinfo(), so a different
sorter will be implemented for that.
2005-09-15 15:25:40 +00:00
soda c87c2ee2fe typo - s/intger/integer/ 2005-09-11 02:23:52 +00:00
christos 99e58e3f96 add missing in6addr_linklocal_allrouters. 2005-08-07 16:00:01 +00:00
thorpej 1fc5e9b8c4 _nsdispatching needs to count, not just be 1 or 0. Also shuffle around
its use a little to eliminate some duplication.
2005-06-26 16:27:36 +00:00
lukem 2f0fdfa7f7 Move the test for "more strict reverse lookup handling" to the correct
location so that an uninitialized `in' won't be used if net_i == BYADDR.
Detected with gcc -Wuninitialized, confirmed by diffing against BIND 4.9.11.
(The bug was introduced in rev 1.26.  Hi Itojun! :)
2005-06-01 05:19:21 +00:00
lukem 178e201b11 appease gcc -Wuninitialized 2005-06-01 04:38:40 +00:00
christos eea147d9f9 check for pwd != NULL 2005-04-19 03:20:50 +00:00
kleink 4e3cae58ff Move the (at this time private) get{proto,serv}ent_r() prototypes and
data structures into the libc sources until the interface gets redone.
Approved by christos.
2005-04-18 19:39:45 +00:00
christos 096c521c10 Remove the bugs section. It has been fixed. 2005-03-31 15:45:53 +00:00
christos 5d3d04b484 use re-entrant versions of getpw*(). In libc only pwcache remains and this
cannot be changed easily because it involves an API change.
2005-03-30 16:12:58 +00:00
kleink 172675479e Only name <netdb.h> in the synopsis, like the old manual page used to. 2005-03-21 13:35:04 +00:00
kleink 53b42c4e52 Add restrict qualifiers to getaddrinfo() and getnameinfo() arguments. 2005-03-21 13:30:50 +00:00
ginsbach 27ff389ba6 Update standards section; add X/Open XNS and X/Open - IEEE POSIX.
RFC 2553 made obsolete by RFC 3493.  Approved by wiz.
2005-03-11 16:13:13 +00:00
lukem efd08c7b4f Prevent NULL deref upon malloc failure. 2005-02-28 01:25:24 +00:00
kleink fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
wiz b2d185782d Use In instead of Fd; use \*[Am]\*[Lt]\*[Gt] for html output. Uppercase FREENIX. 2005-01-28 11:04:52 +00:00
itojun cc1dea55c3 title was backwards. djm@openbsd 2005-01-28 01:36:17 +00:00
wiz 93f4ac130d Fix a double word, and improve mark up in FILES section. From jmc@openbsd. 2005-01-25 01:39:57 +00:00
wiz 379e07e3ac Use \*[Am] and \*[Gt], like before the previous revision; use .In; minor other changes. 2005-01-12 14:44:11 +00:00
wiz c3005f5671 Use .In for including header files, remove some unnecessary quotes. 2005-01-12 14:35:55 +00:00
itojun f6b6f2cd66 written-from-scratch manpage (fixes ISOC copyright violation) 2005-01-11 07:26:57 +00:00
itojun 2537b08b16 replace with written-from-scratch manpage. (fixes ISOC copyright issue) 2005-01-11 06:01:41 +00:00
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
mycroft f38bfebb8e Throw in mutex stubs to serialize access to the legacy global structures. 2005-01-07 22:22:49 +00:00
christos da6f1ded1d revert previous change while discussion is in progress. 2004-12-20 18:30:26 +00:00
itojun 2fdfeb359f RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.
2004-12-20 03:50:04 +00:00
ginsbach e9042901ff rresvport_af() should return -1 when the address family is unsupported
and set errno accordingly.
2004-11-29 17:00:06 +00:00
lukem 98a47ed075 Fix gethostent(3) (which was reenabled in rev 1.63) so that it actually
works by allowing _gethtent() to treat host.h_addrtype==0 && host.h_length==0
as "any address family" when parsing.
2004-11-23 03:42:13 +00:00
itojun da88342476 NI_WITHSCOPEID was not picked up by IETF standardization process 2004-11-16 06:04:12 +00:00
lukem 5994f053ec * Improve the comments in <nsswitch.h>
* Provide some more useful default ns_src arrays.
2004-11-10 07:23:32 +00:00
lukem 25d91a60fb * Re-number NS_FORCEALL from 1<<7 to 1<<8, moving it out of the "public"
bitrange for nsdispatch(3) return values.
* Tweak documentation comments in nsswitch.h
* Ensure the result from the back-end method is masked with
  NS_STATUSMASK before nsdispatch(3) returns it.
2004-10-04 04:02:27 +00:00
wiz 29ac95abc3 Fix a typo, fix an xref, an drop a space at EOL. 2004-09-29 09:20:19 +00:00
lukem e775b9e35a Implement NS_FORCEALL, which may be set in defaults[0].flags by a caller of
nsdispatch(3) to indicate that all available database methods for a source
will be invoked.  This is useful for functions such as endgrent(3).
2004-09-29 02:47:32 +00:00
lukem 22e72f089d slight formatting tweaks 2004-09-28 14:44:05 +00:00
lukem 3d2c2adc4d also ensure defaults != NULL 2004-09-28 11:51:42 +00:00
lukem adea87aed9 s/foe/for/ 2004-09-28 11:37:26 +00:00
lukem 115b984fd6 correct the va_list arg for nss_method 2004-09-27 07:00:52 +00:00
simonb 965b11f656 Fix non-ELF case in _nsloadmod(). 2004-09-08 10:52:56 +00:00
ginsbach 3cb63a0abe Add MLINK for gethostent as suggested by Matthias Drochner. 2004-08-24 01:41:51 +00:00
wiz 11a3ae1c04 Add commas in enumerations; drop trailing whitespace; bump date for previous. 2004-08-17 13:45:14 +00:00
ginsbach ab52fcd2c6 endhostent() and sethostent() should actaully do something now that
gethostent() has been restored to libc.  Reviewed by <christos>.
2004-08-17 02:40:05 +00:00
ginsbach 30ef75e3f4 Restore gethostent() as a supported interface. Yes, it maybe obsolete
but it is specified by IEEE Std 1003.1, 2004 Edition (POSIX) and
the X/Open standards (Issue 6 and XNS 5.2).

* revert change removing gethostent() from gethostbyname(3) man page
* delete kruft from gethnamaddr.c leaving only gethostent() as a
  wrapper around _gethtent().
* revert recent changes to <netdb.h>
  + restore gethostent() prototype
  + restore freehostent() prototype; handle similar to non-shipped
    getipnodby*() prototypes
  + use correct XOPEN_SOURCE version (520 not 500) for freeaddrinfo()
    prototype; interface specified by XNS5.2 not XNS5

Reviewd by <christos> and <drochner>.
2004-08-17 02:29:56 +00:00
thorpej a2bbd45143 Prevent a deadlock that could occur if we try to update the configuration
data structures during a recursive call to nsdispatch() by keeping a record
of which threads are inside nsdispatch() at any given time.
2004-08-02 00:19:34 +00:00
wiz e9abe80526 Use \*[Lt]\*[Gt] or Aq instead of <>; sort SEE ALSO. 2004-07-27 14:35:56 +00:00
thorpej 43d6d8d887 Add support for dynamically loading nsswitch modules on ELF platforms.
Adapted from FreeBSD.  Maintains full backward API / ABI compatbility
with built-in-only nsdispatch().

While here, also make nsdispatch() itself thread-safe.
2004-07-24 18:42:51 +00:00
itojun 588f60ad8b now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int 2004-07-21 03:16:29 +00:00
thorpej b8b64b05f9 Use ANSI function decls. 2004-07-16 16:11:43 +00:00
wiz da71bc8372 Sort sections. 2004-06-25 15:27:39 +00:00
kleink 79d01decfe Update for use of uint{16,32}_t. 2004-06-10 11:37:35 +00:00
ginsbach 9fcbc1ee6b Change remaining K&R style function definition to ANSI; Reviewd by <christos>. 2004-06-04 20:05:25 +00:00
christos 71fe243008 make yp stuff re-entrant. 2004-05-27 18:40:07 +00:00
christos cbebf25ae4 remove stray NSUNLOCK(); pointed out by Brian Ginsbach. 2004-05-24 16:16:26 +00:00
christos 13cc3543b5 centralize res_*init() calls in __res_get_state() 2004-05-23 16:54:12 +00:00
christos 94564d94a6 make this thread-safe. 2004-05-23 16:53:22 +00:00
itojun 30dd6e8b37 inet6_{option,rthdr}_space are still alive. 2004-05-21 04:51:00 +00:00
christos d14c1915e0 Finish bind9 resolver merge. 2004-05-21 02:30:03 +00:00
kleink 6108f6dd87 Need namespace.h for internal name of strlcpy. 2004-05-09 11:25:20 +00:00
kleink 8d54bc1847 struct netnet.n_net used to be an unsigned long integer.
In XNS5, and subsequently in POSIX-2001 it was changed to socklen_t.

To accomodate for this while preserving binary compatibility with the
old interface, prepend or append 32 bits of padding, depending on
the (LP64 data model) architecture's endianness.  Fixes PR
standards/21411 from Ben Harris.

This should be deleted the next time the libc major number is
incremented.

Also, update getnetbyaddr(3)'s `net' argument accordingly.
2004-05-08 18:52:15 +00:00
wiz 6677b3582e Add missing "-". 2004-04-14 13:40:30 +00:00
itojun 05e937a343 remove unneeded refs to rfc2553. jmc 2004-04-14 08:07:29 +00:00
itojun 66909f0052 remove prototype decl for removed function 2004-04-14 04:46:04 +00:00
itojun 777d124a65 remove unused code 2004-04-14 04:45:28 +00:00
itojun 8803684aa2 document AI_NUMERICSERV 2004-04-14 04:42:35 +00:00
itojun a1b7e86ab4 implement AI_NUMERICSERV (as defined in RFC3493) 2004-04-14 04:37:06 +00:00
mrg 05cd119306 remove my copyright statement 2004-03-21 05:46:42 +00:00
enami 119b5f631a Don't call end{serv,proto}ent_r() on return. It results dangling pointer. 2004-03-04 02:30:41 +00:00
itojun ca0ee478c7 use "%s" for err(), do not pass pointer directly. Pedro Martelletto 2004-03-01 23:06:21 +00:00
taca 5509874609 Semantic fix for allocation size for malloc() and realloc() previously
modified.  Allocation unit isn't sizeof(char **) but sizeof(char *).

Noted by Geoff Wing.
2004-02-25 06:28:10 +00:00
christos e79fe4ef48 Fix allocation size bug from Takahiro Kambe. 2004-02-24 15:28:07 +00:00
christos d3516aeed5 - fix a memory leak on the current line buffer.
- fix a memory leak on realloc failure.
2004-02-23 16:06:52 +00:00
christos d68ecdf1c9 getservent_r/getprotoent_r 2004-02-19 19:27:53 +00:00
christos ec210d4a19 Implement the non-reentrant ones using the reentrant ones.
Name files by function name.
2004-02-19 19:27:26 +00:00
christos 8059eed1bc Re-entrant versions of services and prorocols functions. 2004-02-19 19:21:44 +00:00
itojun 4348bc0770 whitespace KNF 2004-01-29 08:25:28 +00:00
lukem b763e0987d Use the correct parameters when building the YP map name in _yp_getnetbyaddr().
Fixes getnetbyaddr() when reading from YP.  From Brian Ginsbach in email.
2004-01-29 01:39:15 +00:00
lukem b776c8e6bb Retain the euid of the target user whilst reading the
.rhosts file.  This allows it to have a mode of 600
and still function correctly even when used on an NFS
client with uid 0 mapped to another (anonymous) UID.
Patch from Brian Ginsbach <ginsbach@cray.com>,
and fixes [bin/14880] from Darren Reed <darrenr@>.
2004-01-27 11:46:34 +00:00
lukem c5a53802fe Use syslog(3) instead of err(3) to log errors.
Based on email conversation with Brian Ginsbach.

Add '%option never-interactive' to nslexer.l, to prevent isatty() from
being called unnecessarily.
Per discussion on current-users@ between Christian Biere and Greg Woods.
2004-01-25 16:38:15 +00:00
matt 3c12447a00 Make building IPv6 support controllable by MKINET6 2003-12-07 21:57:22 +00:00
lukem 97f5444c8a MAKEVERBOSE tweaks 2003-12-04 01:02:44 +00:00
drochner 9122b04d59 the last argument to recvfrom() is a pointer, so use "NULL" for
consistency
2003-10-22 15:40:19 +00:00
agc b2b49933f4 Move Matt Green's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
enami f431b58f2b Back out rev. 1.56; `pointer points the byte just after the valid region'
is normal case.  If the parser wants something more, there should be
another bounds check for it.
2003-10-11 03:35:42 +00:00
itojun f462c5301e paren around macro arg 2003-10-03 22:04:44 +00:00
itojun d26799ebc9 off-by-one. from millert@openbsd 2003-10-03 22:04:03 +00:00
itojun 1db8823e19 out-of-bounds access. from openbsd 2003-09-23 03:19:28 +00:00
itojun cfbab92fdb use randomid(3). actually generate random ID for DNS queries (previous
fix was incomplete)
2003-09-09 22:16:58 +00:00
wiz a2f146d519 Mention RFC 3493; inet_{ntop,pton} are in 1003.1-2001; move XNS5.2 to HISTORY.
Okayed by kleink.
2003-09-08 17:21:31 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
christos cdf03491b8 rename exp to expo to avoid global shadowing warning. 2003-09-06 22:47:56 +00:00
itojun 08fc9c3284 move provos' copyright closer to res_randomid() 2003-09-06 11:46:32 +00:00
itojun a970cdd909 bring in openbsd lib/libc/net/res_random.c for truely-random res_randomid(). 2003-09-06 11:40:52 +00:00
wiz a24c4806d6 Nm -> Fn getnameinfo; grammar improvements; markup improvement;
all from jmc@openbsd, thanks.
2003-08-28 12:03:08 +00:00
wiz 520d0eab98 Bump date for CAVEATS; fix punctuation usage in one place;
drop trailing space; use \*[Am] instead of & for HTML generation.
2003-08-28 09:39:11 +00:00
itojun e3a97c1624 use NI_NUMERICHOST for 2nd invocation 2003-08-28 01:49:30 +00:00
itojun 9de573eee1 add int error in CAVEAT 2003-08-28 01:46:45 +00:00
itojun 91c72951cb add CAVEATS section 2003-08-28 01:43:14 +00:00
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
tshiozak 8adfd9b778 make _DIAGNOSTIC happy. 2003-07-10 08:50:43 +00:00
wiz 9d37bb0f6b Va Sq -> Sq Va so both work. 2003-07-01 10:17:36 +00:00
kleink 5a44432bf1 Sprinkle some restrict. 2003-06-30 15:14:17 +00:00
itojun 7a5741651c - sync up MLD declaration with RFC3542 (s/MLD6/MLD/)
- routing header declaration with RFC3542
  (note: sizeof(ip6_rthdr0) has changed!)
  also, sync up with RFC2460 routing header definition (no "strict" source
  routing mode any more)

part of advanced API update (RFC2292 -> 3542).
2003-06-06 08:13:43 +00:00
itojun e72a5afeb3 KNF. 2003-06-06 06:43:18 +00:00
itojun 6a95da7f05 bound copies 2003-05-17 01:36:03 +00:00
kleink affdf0b300 Change conformance reference to 1003.1-2001; the reference to 1003.1g is
retained in HISTORY.  Spotted by Thomas Klausner.
2003-05-15 10:16:36 +00:00
wiz ccc85581a5 Point to IPC tutorials in /usr/share/doc/psd, update names, and add authors.
Bump date.
Suggested by kleink.
2003-05-15 10:13:53 +00:00
uebayasi 385286938f Typo; from Onno van der Linden <o dot vd dot linden at quicknet dot nl>. 2003-05-10 08:51:54 +00:00
itojun ece2a37389 fill ai_canonname field for numeric hostname, by the given hostname.
folows new recommendation in RFC3493
2003-05-08 05:30:53 +00:00
bjh21 e3f0868ef4 ANSIfy, since I'm in the area. 2003-05-05 21:35:40 +00:00
bjh21 306b20c934 Handle struct in_addr with proper respect, rather than assuming we can
make one by casting in in_addr_t *.  This has the pleasant side-effect
of making the machine code shorter, at least on ARM.
2003-05-05 20:12:23 +00:00
bjh21 e6ad10a0b6 Remove some lint-pacification that's not necessary now that the signature of
inet_makeaddr() is correct.
2003-05-05 20:04:04 +00:00
bjh21 b8df43c967 Delint last change, reducing size of several variables. 2003-05-05 19:54:59 +00:00
bjh21 2c2e44766b Delint last change (change a variable from unsigned long to in_addr_t).
Remove "register" at the same time.
2003-05-05 19:53:29 +00:00
wiz fe160e31c2 No leading zero in Dd argument. 2003-05-05 17:16:20 +00:00
bjh21 83939562ef Document signature changes to inet_addr() and friends. 2003-05-05 14:04:50 +00:00
bjh21 77de1304d5 Fix the signatures of inet_addr(), inet_lnaof(), inet_makeaddr(), inet_netof(),
and inet_network() to match XNS and (where applicable) POSIX.  This is largely
just the replacement of unsigned long with in_addr_t.

This constitutes a small ABI change on sh5, but scw (sh5 portmaster) thinks
that both the users of that port will be able to cope.  kleink claims the
change is ABI-neutral on other LP64 ports, and it's a no-op on ILP32 ports.
Hence, I'm doing it this way and avoiding the whole __RENAME dance.
2003-05-05 13:56:13 +00:00
wiz 3ca9503cd5 Misc. fixes from jmc@openbsd. 2003-05-03 19:11:31 +00:00
itojun dc5aee069b english grammer. by Jason McIntyre via kame 2003-04-30 06:30:48 +00:00
wiz 48ceee3140 Bump date for last. 2003-04-29 12:39:20 +00:00
bjh21 e94b259c46 <arpa/inet.h> no longer has any prerequisite headers, so don't pretend
it does.
2003-04-29 12:20:29 +00:00
simonb 6312e6abc3 Add a missing full stop, join to short lines. 2003-04-23 07:33:36 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
perry 9b2c6bd3d7 preceeded->preceded, desciptor->descriptor from Igor Sobrado, PR misc/19814 2003-03-31 18:38:11 +00:00
perry 8e85db615f millenia->millennia from Igor Sobrado PR misc/19814 2003-03-31 18:35:38 +00:00
ross c73965d14b LP64 warnings 2003-03-21 03:07:40 +00:00
itojun b5dda3e238 From: "Jason L. Wright" <jason@thought.net>
The man page for getaddrinfo() and RFC2553 says it should return EAI_NONAME
for the case where hostname != NULL, hostname is not a numeric string and
ai_flags has the AI_NUMERICHOST bit set.  Instead, it returns EAI_NODATA
for this case.  The diff below makes it return EAI_NONAME for this case.

This is why ntpq and ntpdc from ntp-4.1.74 can't resolve hostnames,
but work fine with numeric strings like ::1 or 127.0.0.1.
2003-03-17 23:10:25 +00:00
wiz 1035faff1d writable, not writeable. 2003-01-06 20:30:28 +00:00
wiz 4824190751 transmission, not transmition. 2003-01-06 13:17:01 +00:00
itojun 233424cdc2 make sure to bound string operation by strlcpy
(there are bunch of "strcpy is safe" comments, i think we should change them
to strlcpy as much as possible)
2002-11-17 20:49:33 +00:00
itojun ca7918fced whitespace 2002-11-17 20:48:44 +00:00
itojun 9134efabd0 use strlcpy where it is more appropriate. 2002-11-17 01:51:24 +00:00
itojun 095b03757d pull in changes in http://www.isc.org/products/BIND/patches/bind4910.diff
- better error check on __dn_skipname
- more strict reverse lookup handling
2002-11-14 02:14:43 +00:00
itojun d7ec2d5997 fix remote buffer overrun. from openbsd tree (1997). 2002-11-13 00:21:05 +00:00
thorpej 0e69571cc2 Avoid strict alias warning. 2002-11-11 20:24:38 +00:00
thorpej de792f2457 Fix signed/unsigned comparison warnings. 2002-11-11 19:49:00 +00:00
thorpej 4747ad6ea7 Fix signed/unsigned comparison warnings. 2002-11-11 19:25:38 +00:00
thorpej 1289029f10 Fix signed/unsigned comparison warnings. 2002-11-11 17:56:11 +00:00
thorpej 585ad39ac1 Fix signed/unsigned comparison warnings. Catch error conditions
from snprintf().
2002-11-11 17:10:11 +00:00
thorpej fd128e9fb6 Fix signed/unsigned comparison warnings. 2002-11-11 16:50:34 +00:00
thorpej 20b98814a9 Fix signed/unsigned comparison warnings. 2002-11-11 01:12:04 +00:00
wiz 091f48096d writable instead of writeable. By Adrian Mrva. 2002-10-02 10:57:55 +00:00
wiz 3e44f1568a Correct spelling of "constraints". Noted by Adrian Mrva. 2002-10-02 10:53:50 +00:00
wiz 8f0a2a607c function with n. 2002-10-02 10:48:35 +00:00
tron 377e179dcb Use "const" for all input parameters of ethers(3) functions. 2002-09-16 19:25:30 +00:00
wiz 604d7cb2eb implemented, not implementated; arbitrary, not arbritrary. 2002-09-04 01:07:12 +00:00
onoe a5fc25f65e Limit UDP payload size for EDNS0 to 0xffff, not use lower 16bit value. 2002-08-28 02:37:09 +00:00
itojun 006281a1e2 kill register decl 2002-08-27 23:47:07 +00:00
itojun 62f36ff8e2 allocate 64K recieve buffer for DNS responses. 2002-08-27 08:50:49 +00:00
itojun 36e473ebb2 off-by-one. PR 18049
correct snprintf() return value handling in another place.
2002-08-23 16:10:42 +00:00
itojun 949583590f drop AAAA reply with IPv4 mapped address. sync w/kame
draft-itojun-v6ops-v4mapped-harmful-00.txt
2002-08-22 16:32:14 +00:00
itojun 4005a5250f set h_errno properly if internal string manipulation fails. 2002-08-16 21:54:00 +00:00
itojun 44ca8f4da1 use sizeof, avoid duplicated use of MAXDNAME 2002-08-16 13:59:39 +00:00
itojun 1173373b45 be more picky about size arg 2002-08-16 12:23:20 +00:00
itojun 1e1a07972c lint clean 2002-08-16 12:20:19 +00:00
itojun bb80ac654a avoid sprintf. use snprintf with picky error traps. 2002-08-16 12:18:06 +00:00
itojun 0de70db9cd check for pointer overwrap 2002-08-16 12:10:37 +00:00
itojun b51bffa186 correct cases with zero in the middle
(0x00ff00ff should be "0.255.0.255", not "255.255")
2002-08-16 12:05:01 +00:00
itojun 0b6566bcda avoid sprintf. use snprintf. simplify cases where 1st arg is 0. 2002-08-16 12:03:41 +00:00
itojun c6a3499c08 use snprintf. don't duplicate MAXDNAME (use sizeof). 2002-08-16 11:53:19 +00:00
itojun 90a8853f46 use strlcat 2002-08-16 11:49:57 +00:00
itojun f425242dc9 fix weird indent for comment lines 2002-08-16 11:48:25 +00:00
itojun c5a4255163 eliminate sprintf. use snprintf.
XXX loc_ntoa should be changed to take additional size_t as arg
2002-08-16 11:45:55 +00:00
itojun 5c323232e7 eliminate sprintf, use snprintf. check strlcat error. 2002-08-16 11:30:28 +00:00
itojun 3452fa16c4 be more picky about string buffer manipulation. hints from freebsd 2002-08-16 07:39:44 +00:00
itojun 0cb9a97393 lint clean 2002-08-09 04:29:29 +00:00
itojun cb4277ff85 unifdef for auditability. 2002-08-09 04:26:07 +00:00
soren 69e08c5b46 Make SYNOPSIS accurate about required headers.
Fixes PR lib/11021 from wiz.
2002-08-06 16:08:47 +00:00
itojun 463bfdcd98 use strlcpy where appropriate 2002-08-02 07:50:35 +00:00
itojun 0c0bf329c4 query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152. 2002-07-29 10:01:58 +00:00
wiz 18c66da5b7 Two typos. 2002-07-18 10:41:17 +00:00
itojun a4cf77c9bb pacify lint. from he@netbsd 2002-07-01 22:05:08 +00:00
itojun 754f8759a4 lint clean. from martin husemann 2002-07-01 21:05:56 +00:00
itojun 9922c987a9 make more pedantic check on strtoul. from deraadt, sync w/kame 2002-07-01 07:42:49 +00:00
itojun 28735a6a17 correct port range check. from deraadt, sync w/kame, diff sent to bind-bugs 2002-06-29 12:23:10 +00:00
itojun 0c63dd3cf2 correct %d/%u mixup. 2002-06-27 10:22:07 +00:00
itojun 0c4fb2c7e1 correct DIAGASSERT 2002-06-26 09:39:48 +00:00