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
itojun
9cdbc86d39
correct bad practice in the code - it uses two changing variables
...
to manage buffer (buf and buflen). we eliminate buflen and use
fixed point (ep) as the ending pointer.
this fix is NOT critical.
2002-06-26 06:00:26 +00:00
itojun
092b3bc66a
avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>
...
correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen). we eliminate buflen and use
fixed point (ep) as the ending pointer.
this fix is critical.
2002-06-26 06:00:07 +00:00
itojun
fb40d48413
do not pass uninitialized variable to nsdispatch().
2002-06-26 02:40:46 +00:00
itojun
9ed8a29685
refer nsswitch.conf(5). From: Jim Bernard <jbernard@mines.edu>
2002-06-15 21:49:18 +00:00
wiz
e3e4fede44
__STDC__ is always defined on NetBSD.
2002-05-26 14:48:19 +00:00
tron
f2679ef4e3
Revert last change after protoype of getnameinfo(3) has been changed back.
2002-05-22 14:42:37 +00:00
kleink
a24f74d0fd
Turn the flags argument to getnameinfo(3) back into an int (from unsigned
...
int); this is consistent with RFC2553, the current draft-ietf-ipngwg-
rfc2553bis-05 and the majority of deployed implementations.
Also, there is an effort under way to have this changed back to int in
XBD6/XSH6, XNS, and POSIX-2001 TC1.
2002-05-22 09:42:37 +00:00
itojun
6a3445b8a3
be picky about string manipulation in reverse lookups
2002-05-22 02:39:15 +00:00
itojun
b617695b31
use strlcpy, not strcpy
2002-05-22 01:52:24 +00:00
itojun
449d6afcab
style
2002-05-18 00:07:28 +00:00
itojun
c37fca45ce
do not reverse-lookup scoped IPv6 address. it does not make sense as
...
there's no way to give scope identifier. sync w/kame
2002-05-17 22:40:31 +00:00
kleink
3f6b0b61a5
<netdb.h> doesn't need prerequisite headers.
2002-05-15 08:53:42 +00:00
thorpej
2afd826926
Delint after getaddrinfo(), etc. changes.
2002-05-14 23:58:08 +00:00
kleink
ba77dc646c
XNS5.2/POSIX-2001: change the size argument to inet_ntop from size_t to
...
socklen_t.
2002-05-14 18:57:31 +00:00
kleink
4b77e72e94
More XNS5.2/POSIX-2001 alignment: change the flags argument to
...
getnameinfo() from int to unsigned int.
2002-05-14 14:35:36 +00:00
kleink
485febee55
Align with XNS5.2/POSIX-2001: change hostlen and servlen arguments to
...
getnameinfo() from size_t to socklen_t.
2002-05-14 14:31:05 +00:00
kleink
dddf6754e0
ai_addrlen: size_t -> socklen_t.
2002-05-14 13:50:21 +00:00
kleink
06d36d9eee
struct addrinfo.ai_addrlen used to be a size_t, per RFC 2553.
...
In XNS5.2, and subsequently in POSIX-2001 and draft-ietf-ipngwg-rfc2553bis-02
it was changed to a 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.
This should be deleted the next time the libc major number is
incremented.
2002-05-14 13:45:13 +00:00
kleink
4396915999
Rip out <sys/types.h> and <sys/socket.h> inclusions: there are no
...
pre-requisites for <netdb.h>.
2002-05-10 22:26:59 +00:00
kleink
c88f6e9e24
In the examples, initialize struct addrinfo explicitly to either 0 or a
...
NULL pointer; from der Mouse in PR lib/16634.
2002-05-10 22:11:24 +00:00
simonb
fdf099ea04
Remove a check for a u_int8_t variable being greater than 255.
2002-05-05 08:28:47 +00:00
groo
fbac9d8372
botched strncpy -> strlcpy
...
from xs@kittenz.org
2002-04-16 19:17:17 +00:00
groo
1e880d776e
botched strn* -> strl*
...
from xs@kittenz.org
2002-04-16 19:16:22 +00:00
groo
6bf409aa5b
Minor KNF + proper end of string detection in read_config_file()
...
Inspired by xs@kittenz.org
2002-04-16 19:12:40 +00:00
thorpej
9c33b55e7c
Split the notion of building Hesiod, Kerberos, S/key, and YP
...
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
lukem
247856f4d7
Fixes from Bill Fenner <fenner@research.att.com> for problems he found
...
in FreeBSD's port of this nsswitch code:
- Don't ignore unknown characters. The old lexer would treat
hosts:!!!!!!!!@@@@@$%^&*()()*$(files{}{}|||++!)(dns
exactly the same as
hosts: files dns
- Recover from errors by looking for the end of a line. This means
that having a syntax error near the top of the file doesn't prevent
a service at the bottom of the file with no syntax error from being
looked up.
Thanks Bill!
2002-03-19 00:04:09 +00:00
sommerfeld
3e18fc136f
More ipip references
2002-03-04 15:15:39 +00:00
augustss
8f814a0ad6
Make this lintable so we can build libc again.
2002-02-14 22:10:56 +00:00
martin
63ad589924
Fix a LP64 problem. Patch from Minoura Makoto in PR lib/15596.
2002-02-14 19:53:00 +00:00
ross
9856438e91
generate & symbolically
2002-02-07 09:24:04 +00:00
ross
814f296b77
Generate <>& symbolically.
2002-02-07 07:00:09 +00:00
lukem
4d32f2f102
- be consistent about using "u_char" instead of "unsigned char"
...
- delint
2001-12-09 01:17:36 +00:00
lukem
686d221d91
Implement AF_INET6 back-ends for inet_net_ntop() and inet_net_pton(), from
...
the BIND 8.3.0-T2A sources. Thanks to Paul Vixie for the pointer to it.
2001-12-08 12:06:12 +00:00
lukem
32a96141e4
ansi knf
2001-12-08 11:47:04 +00:00
gmcgarry
d28c8e0f2a
Add .Os
2001-12-08 04:52:01 +00:00
lukem
d62c475930
ansi knf. remove unused cruft
2001-12-01 04:43:24 +00:00
ross
28e17cffb8
Delete the old BUGS section entry:
...
> On the VAX bytes are handled backwards from most everyone else in
> the world. This is not expected to be fixed in the near future.
Multiple levels of irony there...
2001-11-29 22:55:57 +00:00
itojun
3c0303a158
sync with reality; scope identifier comes with the result even without
...
NI_WITHSCOPEID.
2001-11-15 06:46:33 +00:00
itojun
6c9440f374
make NI_WITHSCOPEID a default (always on), to synchronize with recent 2553bis.
...
sync with kame.
2001-11-15 04:49:01 +00:00
itojun
72a8eddd96
synchronize with kame better. get rid of #defines for ENI_xx.
2001-11-15 04:38:32 +00:00
lukem
50f5afd52e
fix WARNS=2 (-Wshadow) warnings
2001-11-04 13:57:29 +00:00
wiz
2a5b4efdf5
sort sections
2001-10-22 23:47:01 +00:00
kleink
bec52f0825
Add a reference to recv(2) as well.
2001-10-22 22:29:39 +00:00
kleink
d4c0d0f2a2
Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.
2001-10-22 17:53:43 +00:00
bjh21
b12979794e
Put back AF_LINK support. This time, all the new code passes lint(1), modulo
...
bin/14175. It should pass lint on a native i386 build, but I can't test that.
2001-10-06 13:59:41 +00:00
bjh21
5a7a518e05
Remove AF_LINK support. It generates lint warnings, and hence won't compile
...
on i386. I'll re-commit once I've understood and fixed the problems.
2001-10-05 20:51:19 +00:00
itojun
84bfe490e4
make it at least compile (there's no /usr/include/net/if_ieee1394.h exist).
...
avoid overrun with snprintf. be careful about snprintf return value.
2001-10-05 01:39:38 +00:00
bjh21
5b533f601d
Extend getnameinfo() to support AF_LINK sockaddrs. The intention is that
...
anything that wants to print a link-layer address should go through here,
rather than re-inventing the wheel.
2001-10-04 23:09:04 +00:00
wiz
cb19ecf339
Actually, we don't have libhesiod -- the functions are in libc.
...
Noted by Gregory McGarry.
2001-10-04 11:27:19 +00:00
wiz
104fe43050
mdoc'ify.
2001-09-16 15:53:03 +00:00
wiz
97ff145f62
Sort sections, sort SEE ALSO, and misc. fixes.
2001-09-16 02:54:17 +00:00
wiz
e7560d5642
Boring whitespace fixes.
2001-09-16 02:23:09 +00:00
itojun
5996ba4042
make it possible to turn on RES_INSECURE[12] with /etc/resolv.conf.
...
don't connect datagram socket if RES_INSECURE1.
needed to implement IPv6 anycast UDP DNS queries as documented in
<draft-ietf-ipngwg-dns-discovery-02.txt>.
sync with kame.
2001-09-13 11:05:02 +00:00
itojun
9fe945f2fe
sync argument/return type of [hn]to[nh][ls] to XNET 5.2 (uint{16,32}_t).
...
as discussed on tech-net.
2001-08-22 07:42:07 +00:00
itojun
cba884a178
cope with sa_len < sizeof(struct sockaddr).
...
From: Patrik Lindergren <patrik@datacom.nu>
sync with kame
2001-08-20 02:33:49 +00:00
itojun
6cc1136ae1
use snprintf, not sprintf. sync with kame.
2001-08-20 02:33:31 +00:00
itojun
511e898dc2
snprintf return value audit. inspired by deraadt
2001-08-19 01:37:39 +00:00
itojun
908c009e33
there's no host.conf in netbsd. pointed out by smb
2001-08-05 18:09:03 +00:00
itojun
879d773221
make sure we do not touch *pp outside of parts[4].
2001-07-22 15:16:18 +00:00
jdolecek
505574ea9b
remove trailing whitespace
2001-07-08 20:18:36 +00:00
jdolecek
0bab4db966
Change ns_addr() to allocate 'addr' on stack, rather than using a global -
...
we don't need a global variable here.
2001-06-25 09:07:08 +00:00
jdolecek
40a434c929
Fix fallout from variable string format audit, so that this works again.
2001-06-17 23:24:22 +00:00
wiz
40ac848024
Fix various misspellings of compatible/compatibility.
2001-06-11 01:50:48 +00:00
itojun
e007813605
remove obsolete MAN lines for getipnodeby* (has been comented out)
2001-04-29 04:33:54 +00:00
itojun
c19c7735af
copy-paste mistake; s/getaddrinfo/getnameinfo/
2001-04-29 04:32:26 +00:00
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
christos
bc44f19756
add explicit casts
...
elide non-portable casts
2000-07-06 03:00:16 +00:00
christos
e464ac9461
add explicit casts
2000-07-06 02:59:47 +00:00
christos
43264d6a9a
add argsused lint directives
...
add explicit casts
elide non-portable casts
2000-07-06 02:59:20 +00:00
christos
e9001c0972
elide non portable casts
...
add lint const castaway directives
2000-07-06 02:58:07 +00:00
christos
db34dc9efd
de-register
...
use the proper types for vars
2000-07-06 02:57:23 +00:00
christos
b5835eb63b
remove noop checks
2000-07-06 02:56:55 +00:00
christos
47197be00f
elide non-portable casts
2000-07-06 02:56:25 +00:00
christos
a0d18445ab
avoid non portable casts
2000-07-06 02:55:45 +00:00
christos
970724237c
avoid non-portable casts
2000-07-06 02:54:55 +00:00
christos
7bc5ea812e
- remove unused vars
...
- fix non-portable casts
2000-07-06 02:54:12 +00:00
christos
b0c8c0de7d
- avoid non portable casts
...
- cast arguments to avoid promotion warnings
2000-07-06 02:53:12 +00:00
christos
5570317afb
add CONSTCOND where appropriate
2000-07-06 02:52:07 +00:00
itojun
920101cf2e
return EAI_NODATA, instead of EAI_NONAME, on name resolution errors.
...
EAI_NONAME does not make sense in these situations. from kame.
From: enami@netbsd.org
2000-07-05 12:41:16 +00:00
itojun
f64eeac13d
typo in RFC number. KAME PR 263
2000-06-30 16:48:47 +00:00
itojun
d18bfb3eba
add cmetz paper, correct example
2000-06-22 20:32:28 +00:00
itojun
35d0fb470c
do not assume that nsaddr_list[n].sa_len is properly initialized,
...
there can be some third-party code that does not.
2000-06-18 21:41:23 +00:00
itojun
855792d5bd
recomend get{addr,name}info for scoped address support.
2000-06-18 20:30:26 +00:00
ghudson
dcb9078cff
Set errno when res_mkquery fails.
2000-06-18 04:07:03 +00:00
cgd
d220ca5ba3
fix up NetBSD RCS Ids to match the standard, and the leading comment as
...
to match as well. No functional changes.
2000-06-14 06:48:47 +00:00
itojun
b3d17a6362
besure to check getnameinfo() return value. (debugging code)
2000-06-14 01:52:41 +00:00
itojun
814b7243b2
correct ENI_SALEN case to meet rfc2553bis.
2000-06-12 04:27:58 +00:00
itojun
87a2cc9945
correct return value from getnameinfo to meet rf2553bis.
...
(this also corrects incorrect "success" value, 0, on invalid sockaddr)
2000-06-12 03:55:10 +00:00
itojun
7eab145046
correct arg type (salen) to conform to RFC2553.
2000-06-04 08:52:21 +00:00
itojun
b757ddbced
correct arg type for getnameinfo(3) for RFC2553 conformance.
2000-06-04 08:51:23 +00:00
itojun
ed26506c25
usr.sbin/lpr/lpd now compiles lib/libc/net/rcmd.c on its own, to avoid
...
use of non-exported function __ivaliduser{,_sa}().
we cannot make __ivaliduser{,_sa}() static yet, since doing that would choke
compiled lpd binaries. we should do it on next libc major version bump.
added a memo on lib/libc/shlib_version.
2000-05-30 01:07:43 +00:00
tron
b4969ca513
Fix an alignment problem introduced by the patch for PR lib/8032.
...
Fixes PR lib/10048 by J.T. Conklin.
2000-05-23 07:03:10 +00:00
itojun
854cf60c06
nroff correction. from openbsd.
2000-05-17 14:36:41 +00:00
itojun
4d829aa5ea
linebreak fix (nroff tradition)
2000-05-17 14:31:06 +00:00
itojun
4b9654f602
typo in function name
2000-05-17 14:24:59 +00:00
itojun
cc50260947
correct use of .Dt. nuke space at EOL. wording (duplicated verb).
2000-05-17 14:20:21 +00:00
itojun
5cf4e14fea
$NetBSD$
2000-05-11 03:08:46 +00:00
itojun
e2a25fa8de
update internet draft #. correct samples.
...
sync getnameinfo function prototype with /usr/include/netdb.h (not
standard conformant yet, needs update - will do soon)
2000-05-11 03:08:06 +00:00
kleink
cd628af723
Need an internal name for send(); noticed by itojun.
2000-05-08 13:38:44 +00:00
itojun
183b1060ec
typo in comment
2000-04-28 02:37:57 +00:00
itojun
15311778c6
don't look at $HOSTALIASES, if issetugid() says the binary is dirty.
2000-04-27 16:32:37 +00:00
itojun
c90f48caf4
remove unused struct def. more sanity check for NULL.
2000-04-27 05:30:22 +00:00
itojun
3fc57d3ff8
bring in latest KAME implementation.
...
conforms to draft-ietf-ipngwg-scopedaddr-format-01.txt.
behavior change: returns numeric scopeid if we can't convert to string.
removed #if 0'ed portion which we will never revisit.
2000-04-26 16:08:38 +00:00
itojun
4009c33ef7
add $KAME$
2000-04-26 16:08:10 +00:00
itojun
e7cb023342
disable AI_ADDRCONFIG (post RFC2553 specification),
...
it has bug in PF_UNSPEC caes. From: ume
fix boundary check which was broken by delint in the past.
2000-04-26 12:25:51 +00:00
itojun
d585d4d8d9
simplify #ifdef a bit, by assuming getnameinfo.
2000-04-26 10:55:53 +00:00
itojun
0308db5ae0
improve comment before setbuf() in hostalias().
2000-04-26 06:51:37 +00:00
itojun
bdb0d9a667
sync with BIND 4.9.7. uses BIND 8.x codebase for dn_expand().
...
hyphenchar() definition is now fixed to specwise-correct declaration
(only "-" is permitted). may need more KNF and/or delint.
2000-04-25 14:39:00 +00:00
itojun
75753d9452
sync with BIND 4.9.7. mostly costmetic.
...
XXX 4.9.5 -> 4.9.7 moves _res from data to bss. the bss version of the code
is committed, but is wrapped with #ifdef __RES_IN_BSS and is disabled
(_res is still in data segment).
2000-04-25 13:57:08 +00:00
itojun
e1e1e8e6ba
sync with BIND 4.9.7. strict boundary checking.
2000-04-25 13:47:38 +00:00
itojun
393bcd0129
sync with BIND 4.9.7. reject too short messages.
2000-04-25 13:46:10 +00:00
itojun
c3f3ab4c5c
sync with BIND 4.9.7. correct boundary checking broken by delint mistake
...
(auto increment evaluation order). costmetic changes.
2000-04-25 13:27:22 +00:00
itojun
bb0ecf8c42
sync with BIND 4.9.7. mostly costmetic.
2000-04-25 13:26:03 +00:00
itojun
25855cd3a5
correct a use of sizeof() against nsaddr_list.
2000-04-25 08:56:06 +00:00
itojun
0635beac21
cleanup nsaddr_list handling.
...
- be more backward compatible with apps that update _res.nsaddr_list[n].
- allow scoped IPv6 addresses in /etc/resolv.conf (like fe80::1%lo0).
- simplify #ifdefs.
2000-04-25 08:51:39 +00:00
itojun
bcbd70d5bf
add missing period.
2000-04-24 16:17:07 +00:00
itojun
72eddcac5b
add __RCSID().
2000-04-24 10:40:24 +00:00
itojun
92db021bdc
use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
...
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.
2000-04-24 10:24:46 +00:00
itojun
c6bf4b09bd
supply weak alias for IPv6-related library additions. sorry to be late.
2000-04-24 09:27:30 +00:00
itojun
c217a09193
synchronize better with BIND 8.2.2P5 (actually, src/dist/bind).
...
inet_net_pton() becomes more strict on hexadecimals/octals.
2000-04-23 16:59:12 +00:00
itojun
79e89da473
change copyright notice from 3-clause TNF -> 4-clause TNF.
...
not sure if which we prefer, but the point is to use exactly the same
copyright. From: matthew green <mrg@eterna.com.au>
2000-04-19 15:16:02 +00:00
itojun
f716418a10
in yphostent, initialize res0 when getaddrinfo fails.
2000-04-03 01:12:26 +00:00