Commit Graph

565 Commits

Author SHA1 Message Date
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