Commit Graph

714 Commits

Author SHA1 Message Date
wiz ee39be7187 Add missing article. 2006-12-23 07:42:30 +00:00
elad 020be40ef1 strncpy -> strlcpy. from David Holland. 2006-11-25 23:09:11 +00:00
reed f8ee2d04c1 Document AI_NUMERICSERV.
(When manpage was rewritten some docs were lost.)
2006-11-24 16:56:18 +00:00
christos 1d83cc5b6c nuke perror. 2006-11-03 20:21:16 +00:00
christos ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
martin a5cb9c8ff7 PR lib/34801 from David A. Holland: "static" comes first in declaration. 2006-10-15 10:55:01 +00:00
christos 48314d6d96 memset the whole struct addrinfo, instead of trying to figure out if we
have a pad member or not.
2006-10-14 21:45:29 +00:00
apb bed8b72282 Clarify that gethostbyname and gethostbyname2 can deal with
string representations of numeric addresses.  PR 28667
2006-10-07 21:30:39 +00:00
tsutsui 6a8419e3ee Change type of `net' variable passed via va_list in
_{files,dns,yp}_getenetbyaddr() functions from unsigned long to uint32_t.
In rev 1.29, getnetbyaddr(3) was changed to take uint32_t `net' argument
and also passisng uint32_t `net' to nsdispatch(3) varargs, but
these callback functions were not changed accordingly.

Patch was provided by christos, and this fixes amd(8) coredumps on alpha
when /etc/nsswitch.conf has more than one sources for netgroups.
2006-09-18 17:15:39 +00:00
christos fd58d46323 when re-opening the file only set SV_FIRST, don't clear accidentally SV_DB
because it leads to core-dumps.
2006-09-14 19:58:48 +00:00
matt acf2f4a0d7 Remove the XNS man pages. 2006-08-26 16:11:05 +00:00
matt 95ff9c00a4 Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.
2006-08-26 16:07:01 +00:00
christos 1463de6acb use the re-entrant version of getservbyport. 2006-08-24 15:39:11 +00:00
christos 55b31470bb use indirect lookup. 2006-07-28 15:14:45 +00:00
joerg d52654469c db->seq expects an u_int as fourth argument. 2006-07-28 01:24:24 +00:00
christos 754fca0e0d use a db version of services if one is there. 2006-07-27 22:03:49 +00:00
christos ae46aa1c5a Call endservent_r. From Hajimu UMEMOTO 2006-07-19 13:16:12 +00:00
christos 2bc28e91d7 use getservbyname_r. 2006-07-18 15:55:55 +00:00
christos 6b7bf056a3 Remove comments that do not reflect reality anymore. 2006-07-18 14:00:40 +00:00
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