itojun
37e8159125
add IPv6 support functions.
...
get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).
(shlib minor version)++, as new interfaces are added.
TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)
1999-07-01 18:23:53 +00:00
itojun
e24b45d811
IPv6 DNS transport support for resolver.
...
Now you can write
nameserver 3ffe:0501:4819::42
in /etc/resolv.conf for DNS query over IPv6 network.
(the above address is alive as DNS server)
1999-07-01 18:19:35 +00:00
itojun
7f7f5bff87
document gethostbyname2().
1999-07-01 18:18:27 +00:00
itojun
e061ef3163
fix hardcoded T_A.
...
this fixes gethostbyname2(host, AF_INET6) to actually work.
1999-07-01 16:43:18 +00:00
sommerfeld
fc8fafa627
Clarify that sdl->sdl_len must be initialized before call to link_addr()
1999-06-25 16:13:21 +00:00
tron
23b3336739
As discussed on "tech-net@netbsd.org":
...
Enhance the file resolver to return all IP addresses of a host on a
call to gethostbyname().
1999-06-02 22:14:07 +00:00
kleink
0b4eeeca95
Use a _files prefix for local backend routines; would clash with namespace.h
...
otherwise.
1999-05-04 15:11:42 +00:00
christos
5b997c7925
Remove unused 'len' and the relevant gcc kludges.
1999-05-04 13:51:39 +00:00
christos
180ff547a4
int -> socklen_t
1999-05-03 15:26:12 +00:00
christos
588dd8cf5a
Don't bother de-linting inside __GNUC__ ifdefs.
1999-05-03 15:20:28 +00:00
christos
8fe3352a10
sprinkle argsused till lint smiles at you.
1999-05-03 15:17:13 +00:00
christos
bcb1db5f7b
Make these work again, by undef'ing the macro that could cause syntax errors.
...
Also add NOSTRICT in the {h,n}to{n,h}s() cases where the prototype would get
widened...
1999-05-03 13:12:34 +00:00
mycroft
77b2201463
Do a lame hack to reduce the size of the lexer state buffer, which reduces
...
memory consumption substantially. The buffer is only used to print line
numbers...
1999-04-22 00:37:42 +00:00
lukem
257ec2e899
specifically include stdarg/varargs.h
1999-04-18 02:27:53 +00:00
mycroft
68d6f4bf44
Remove spurious .ne's.
1999-03-24 06:27:49 +00:00
garbled
38c96853cf
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Wheee!
1999-03-22 19:44:33 +00:00
fair
0204f38aae
Several things: a patch from PR#6355, nroff/mandoc cleanup, and
...
update a reference to RFC 1884 to RFC 2373.
1999-03-17 23:19:43 +00:00
christos
3bb2365914
- fix gcc-2.8.1 warnings
...
- portability fix: Don't use bindresvport() if !BSD4_4 because we could
be on an operating system where it takes different arguments (hint, hint).
1999-03-16 18:15:13 +00:00
drochner
a34eb7c1b7
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
...
libc builds on pmax again
1999-02-24 15:05:20 +00:00
simonb
36362e2a99
In hesiod_to_bind(), don't append lhs and an extra dot if lhs is empty.
...
Now works with Ultrix hesiod.conf files.
1999-02-11 06:16:38 +00:00
kleink
73991fa256
Add missing LIBRARY section.
1999-02-10 17:30:45 +00:00
lukem
efa00c6291
nsdispatch isn't currently thread safe; highlight this as a bug
1999-02-09 23:38:25 +00:00
lukem
712ba4aec4
after discussion with greg hudson, change default classes back to "in,hs"
1999-01-25 22:36:19 +00:00
lukem
0b7af13a74
add hesiod(3) et al
1999-01-25 03:43:04 +00:00
lukem
3ca17e24f3
* change default classes from "IN,HS" to "HS" (for backwards compat
...
with older hesiod.conf files & parsers)
* check list != NULL in hesiod_free_list()
* hes_free() is now just a wrapper to hesiod_free_list()
1999-01-25 00:33:36 +00:00
lukem
7a51f6df99
merge in hesiod 3.0.2 distribution
1999-01-25 00:17:55 +00:00
lukem
645b10c9c4
add rcsids
1999-01-25 00:16:17 +00:00
mycroft
d9729a5fd6
Use class IN. (In current Athena code, this is configurable.)
1999-01-21 12:40:07 +00:00
lukem
0da2aba208
minor knf; don't exceed 80 columns ;)
1999-01-20 23:31:02 +00:00
lukem
4e06f52312
s/missing or absent/missing or corrupt/
1999-01-20 23:26:50 +00:00
christos
a45cc02ea7
add ARGSUSED
1999-01-20 13:09:04 +00:00
christos
4e07a5c03b
- add ARGSUSED
...
- remove unnecessary casts
- const poisoning
1999-01-20 13:05:29 +00:00
christos
702c6d8625
- fix a misplaced parenthesis in an if statement
...
- caddr_t -> void *
- remove unnecessary casts
- turn code repeated 3 times into a macro
1999-01-20 13:04:27 +00:00
lukem
c8851d63a0
weak_alias nsdispatch
1999-01-20 11:49:33 +00:00
lukem
6b348d99e9
constify ns_dtab defs
1999-01-19 08:26:35 +00:00
lukem
0ae6c2e5b8
convert to new nsdispatch(3)
1999-01-19 08:01:48 +00:00
lukem
66c9a837d5
convert to new nsdispatch(3). lookup defaults back to "dns files"
1999-01-19 08:01:12 +00:00
lukem
37df672063
* support extra two arguments to nsdispatch():
...
const char *method /* method name for dynamic linking */
const ns_src defaults[] /* list of defaults */
* document above, and expand other docco.
1999-01-19 07:58:05 +00:00
lukem
df91e2ba06
support nis lookups for getnetby*()
1999-01-19 04:10:23 +00:00
lukem
94773c129b
highlight nsswitch.conf(5) in the first paragraph
1999-01-18 12:10:06 +00:00
lukem
8b9d148c71
before each call to nsdispatch(), set h_errno to NETDB_INTERNAL, and only
...
change to NETDB_SUCCESS if nsdispatch() returns NS_SUCCESS. it is up to the
internal methods to change h_errno from NETDB_INTERNAL to a more appropriate
value when an error is detected.
1999-01-18 05:26:08 +00:00
lukem
29f39a2ca1
fix thinko introduced in last rototilling of nsdispatch; _nsdbtget()
...
would always return the entry for the first entry looked up. noted by
andrew gillham (manifesting itself as ftp failing to lookup names).
1999-01-17 04:49:04 +00:00
lukem
531c1c25e4
remove unused vars. remove register
1999-01-16 11:43:08 +00:00
lukem
d3f8abaacb
reference nsswitch.conf(5)
1999-01-16 07:59:39 +00:00
lukem
73a3905845
clarify that the lack of support for dynamic loading is only for callback funcs
1999-01-16 07:55:43 +00:00
lukem
2bf40fa435
pull nsswitch up to main branch
...
convert getnetby*() to nsswitch (from resolv.conf lookup)
1999-01-16 07:48:23 +00:00
lukem
6c5df78e61
remove debugging override of _PATH_NS_CONF
1999-01-16 01:21:01 +00:00
thorpej
71522016ba
Fix LP64 warnings.
1999-01-15 22:03:57 +00:00
lukem
de3b78d72a
merge nsswitch into main branch
1999-01-15 12:48:41 +00:00
pk
d92652f4ae
Check the results of argument decomposition in octets to prevent
...
garbage being sent to name servers.
1998-12-05 13:17:55 +00:00
thorpej
739da0b44f
h_errlist[] is not exported in any header file. We should consider making
...
the symbol static when libc's major is bumped. Indicate this with a comment.
1998-11-30 20:15:41 +00:00
christos
8b132ea145
- (void) casts.
...
- fix off-by-one bug in fgets()
- don't make the file unbuffered.
1998-11-24 22:19:01 +00:00
christos
38676913cd
delint
1998-11-15 17:39:20 +00:00
christos
2c89343c25
delint
1998-11-13 15:46:52 +00:00
christos
dfa4e2c867
Portability. Use #ifdef BSD4_4 for sin_len
1998-10-18 14:22:05 +00:00
kleink
571ab7ae88
Need an internal name for herror().
1998-10-16 20:26:02 +00:00
kleink
a292d8ec80
(bcmp(), bcopy(), bzero()) -> (memcmp(), memcpy(), memset())
1998-10-15 10:22:23 +00:00
kleink
b0decd2b79
Need an internal name for dn_expand().
1998-10-15 09:28:13 +00:00
kleink
a0744c7ad0
Need "namespace.h" for internal {end,get,set}netent() names.
1998-10-14 19:52:57 +00:00
kleink
7a85778bf7
Need internal names for {end,set}hostent().
1998-10-14 19:41:03 +00:00
kleink
0b11c41974
Since these files are shared with parts of the BIND-4 userland (outside libc),
...
do the internal symbol renaming dance only if inside the libc build environment.
1998-10-14 19:33:49 +00:00
kleink
886f927ec6
Need internal names for res_init(), res_mkquery(), res_query() and res_search().
1998-10-14 19:13:01 +00:00
kleink
0d8a0f5d93
Need an internal name for inet_aton().
1998-10-13 21:03:31 +00:00
kleink
b1683a098a
Need internal names for gethostby{addr,name}().
1998-10-13 20:54:02 +00:00
christos
c4a835f8e9
Use posix signal system calls.
1998-09-26 23:58:29 +00:00
kleink
19800c4d6f
Use gmtime_r() rather than gmtime(); removes a potential source of surprise for
...
the application.
1998-09-13 16:05:34 +00:00
lukem
ce83c69e00
first pass at fixing up capitalization of function names and
...
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
ross
0af9b91fb6
Shut up egcs. (`...might be used uninitialized')
1998-08-19 20:58:42 +00:00
thorpej
fbfd17276b
Add some braces to keep egcs happy.
1998-08-18 23:57:02 +00:00
mycroft
e5d9823796
const poisoning.
1998-07-26 19:05:06 +00:00
mycroft
ec143cf9f4
Move an output buffer into the BSS.
1998-07-26 13:14:04 +00:00
mycroft
f4a2a13036
const poisoning.
1998-07-26 13:00:41 +00:00
mycroft
79788fe0d2
const poisoning.
1998-07-26 12:47:38 +00:00
mycroft
be9c427d60
const poisoning.
1998-07-26 12:29:33 +00:00
mycroft
9ad899cc18
constify some tables.
1998-07-26 11:24:14 +00:00
lukem
786b86d71b
use AF_LOCAL instead of AF_UNIX
1998-07-18 05:04:35 +00:00
mrg
32f519716b
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
fair
99b27640ed
fix mdoc references
1998-04-28 20:25:53 +00:00
fair
dc026e0515
Change occurrences of "UNIX" to .Ux or .At as appropriate.
1998-04-28 06:00:51 +00:00
kleink
f42a18d608
Need <stddef.h> for NULL definition.
1998-03-30 14:51:42 +00:00
lukem
fe28db95aa
install links for inet_ntop(3) and inet_pton(3)
1998-03-12 12:08:09 +00:00
kleink
643b6d9e61
Include <stddef.h> for NULL.
1998-02-18 12:22:42 +00:00
perry
6982982f8d
macroize BSD, NetBSD, FreeBSD and misc cleanup
1998-02-06 05:39:31 +00:00
perry
312aca536f
add LIBRARY section to man page
1998-02-05 18:45:17 +00:00
christos
bb0194f1ee
Add sorting of resolved addresses.
1998-02-04 12:19:03 +00:00
perry
b2e2f28353
add sys/time.h include
1998-02-02 22:36:15 +00:00
mrg
ba9b160fd5
merge in lite2 rcsids and a couple of man page fixes we had not yet found.
1998-02-02 11:53:07 +00:00
lukem
7b4851649d
use bindresvport for rresvport (from freebsd). old code #if 0-ed out
1998-01-18 06:22:19 +00:00
perry
198f98faf0
$Id: -> Id: (to make hunting down other bad Ids easier).
1998-01-06 05:01:16 +00:00
christos
24f2924d70
inet_addr -> inet_aton
1997-12-21 17:14:24 +00:00
tv
b6573fcec0
Add xrefs to new hosts.equiv(5)/rhosts(5) man page.
1997-11-26 18:06:51 +00:00
mrg
4e252e8c4d
add missing .Nm entries. from spz@serpens.swb.de.
1997-11-14 02:04:36 +00:00
mjacob
ddaa6c3262
Fix compile problem.
1997-11-12 05:49:24 +00:00
cgd
023cd79c6b
lint stubs for functions which ports use assembly versions. When using
...
an assembly version of a function, add the right lint stub to the Makefile.inc
which specifies the source to build the function (see the
arch/i386/*/Makefile.inc). Can't just lint the normal C versions of these
functions, because some of them don't _have_ normal C versions and if
that were done dependencies would get messed up.
1997-11-06 00:51:04 +00:00
thorpej
2a43f22095
__warn_references and __indr_reference semicolon fixups. From
...
Chris Demetriou <cgd@pa.dec.com>.
1997-11-04 23:52:05 +00:00
lukem
d96a1a939d
* fix ether_line to limit size of parsed hostname to MAXHOSTNAMELEN
...
* modify ether_aton, ether_hostton, and ether_line to take 'const char *'
arguments as appropriate
* document the above in ethers(3)
1997-11-02 14:21:24 +00:00
lukem
4baee3e06e
fix mistake in previous commit (added too many __RCSID/#endif lines
1997-10-09 14:31:59 +00:00
lukem
038f3f9a9b
WARNSify if -DDEBUG
1997-10-09 11:34:15 +00:00
lukem
2a55b0f192
rcsid police
1997-10-09 10:07:40 +00:00
hubertf
5ce208addd
add xref of ns.4
1997-10-06 23:38:59 +00:00
kleink
0dfbaed62c
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
...
entropy <entropy@tardis.bernstein.com>.
1997-08-26 20:27:05 +00:00
mikel
e37bd19b9b
sync __getnetbyaddr() prototypes with the one in getnetbyaddr.c; from
...
Krister Walfridsson in PR lib/4009
1997-08-19 05:02:49 +00:00
thorpej
c91bdb8141
- Add __weak_alias() namespace protection and update for changes to
...
getnetnyname.c and getnetbyaddr.c.
- Now that getnetbyname() and getnetbyaddr() support looking up their
entries via BIND (they were previously file-only), add "lookup ..."
dispatch support (in /etc/resolv.conf), a'la gethostby*().
1997-07-31 23:43:26 +00:00
thorpej
34e2e251f2
Fix lossage caused by the __weak_alias() commit. The namespace protection
...
does NOT belong here; these implement the file lookups, and are internal
functions only. As such, use "__foo" rather than "_foo" in the names, to
avoid confusion.
1997-07-31 23:40:49 +00:00
thorpej
d80a000b62
This file was deleted with the last resolver merge, and mistakenly
...
brought back to life with the __weak_alias() commit.
1997-07-31 20:56:57 +00:00
thorpej
f6d3855780
Bring over changes where were mistakenly committed to gethostnamadr.c:
...
date: 1997/07/21 14:07:54; author: jtc; state: Exp; lines: +3 -2
If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.
This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-31 20:55:21 +00:00
jtc
990a11b9c6
Fix files using old TNF copyright notice
1997-07-30 23:53:32 +00:00
jtc
43fa6fe319
If port provides __weak_alias(), provide an Standard C and POSIX pure
...
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.
This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
mrg
38bfb6cd0a
merge bind 4.9.6 resolver. still need to fix <resolv.h>
1997-07-20 13:33:17 +00:00
mrg
d507e9e46d
bind 4.9.6 resolver files.
1997-07-20 04:07:42 +00:00
thorpej
0970670295
Be careful with types. XXX sys/netns needs to be swept, but this addresses
...
libc, at least.
1997-07-18 04:55:57 +00:00
thorpej
2f4f59a76f
Do the non-__indr_reference verions of thse like the cat*(3) functions,
...
modulo a slight kludge to get around the namespace trickery played
in <resolv.h>.
1997-07-17 21:27:33 +00:00
thorpej
a3ec8b6d7f
Cast the result of pointer arithmetic to "long" for printing, and use
...
%ld printf format.
1997-07-17 21:25:18 +00:00
thorpej
135f03fe8e
The return value from ntohl() is an in_addr_t, and should not be printed
...
with a "long" format modifier.
1997-07-17 18:48:01 +00:00
christos
793912a9df
When removing $'s to preserve rcsid's remove them from both sides.
1997-07-16 14:54:01 +00:00
mikel
d36455889e
xref gethostname(3) not gethostname(2), alphabetize xrefs
1997-07-14 01:17:05 +00:00
christos
8d36d3405e
Fix RCSID's
...
Fix gcc warnings
Add missing prototypes
Use "namespace.h"
1997-07-13 19:57:30 +00:00
christos
78587c990a
inet_pton4() did not handle
...
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.
1997-07-07 17:11:03 +00:00
lukem
5bacaabfd1
* add man page for inet_net_ntop(3) and inet_net_pton(3)
...
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)
1997-06-18 02:25:19 +00:00
lukem
25d1ca167b
Describe inet_ntop() and inet_pton(), and the IPv6 address format.
...
From BSD/OS 3.0, with permission from Jeffrey Finkelstein <finkels@bsdi.com>
1997-06-18 00:11:11 +00:00
lukem
9c3104a64c
document RES_USE_INET6
...
sort RFCs numerically (974 < 1032, not > 1535)
1997-06-08 06:33:47 +00:00
mrg
b98cd1ecc7
add a bugs section.
1997-06-05 16:40:16 +00:00
mrg
337facc4a3
install a man page (link) for orcmd(3).
1997-05-28 04:02:08 +00:00
mrg
cf3c0fcb9e
update rcmd documentation.
1997-05-28 04:01:06 +00:00
mrg
5a1ec9814a
allow rcmd() to use something other than rsh protocol.
1997-05-26 14:18:29 +00:00
mikel
a299bb2614
note that s_port must be given in network byte order as well; fixes
...
PR lib/2986.
1997-05-12 06:48:38 +00:00
mrg
3a4d449e5b
use a nul not '0'. from <enami@ba2.so-net.or.jp> in PR#3558
1997-04-30 07:02:18 +00:00
mrg
5164bf8772
handle hex hostnames (from vixie, as reported in PR#3535).
1997-04-26 04:12:08 +00:00
cgd
f162946f96
pull in <netinet/in.h>, s/#Include/#include, and fix up __dn_comp() prototype,
...
so that this compiles.
1997-04-22 18:53:16 +00:00
cgd
11342179b7
pull in <netinet/in.h> so that these compile
1997-04-22 18:51:53 +00:00
mrg
2d2ae90504
note possible security concerns.
1997-04-22 12:33:17 +00:00
mrg
ee6f78c8a1
create indirect references (or function stubs) to dn_comp(), res_close()
...
and res_send(), as required.
1997-04-22 06:55:36 +00:00
cgd
c2505edbf3
pull in string.h for protos. found by John Franklin (PR 3487), and noticed
...
by me about 2 minutes before I received the PR.
1997-04-14 03:08:05 +00:00
mrg
2b519fccc7
oops; call getanswer correctly.
1997-04-14 01:38:26 +00:00
mrg
b7055da7c4
re-add YP parts.
1997-04-13 10:56:20 +00:00
mrg
023690d8db
merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
...
same as this, with our changes also included (resolv.conf and
other minor differences).
1997-04-13 10:30:29 +00:00
mrg
2479c1a225
BIND 4.9.5-P1 resolver bits we use
1997-04-13 09:12:05 +00:00
is
bfb66aaf03
New ARP system, supports IPv4 over any hardware link.
...
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.
For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:33:00 +00:00
mouse
ff44468136
alternate -> alternative, per PR 2643
1997-03-08 13:36:38 +00:00
mycroft
041d00cdf4
It's not necessary to initialize the `revents' field of struct pollfd.
1997-02-08 04:38:02 +00:00
abrown
d8fd3320e5
Prevent buffer overflow (and thus return of bogus data) when a DNS record
...
has more than MAXADDRS "A" records for a host.
Patch from Paul A. Vixie <paul@vix.com>, slightly modified to fit in with
NetBSD debug framework.
1997-01-31 00:05:59 +00:00
mrg
9cd5492c02
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
...
- some KNF.
1997-01-23 14:01:45 +00:00
mikel
7e68ce85de
inet_makeaddr() takes unsigned long, not int, arguments; fixes PR lib/2385.
1997-01-22 07:57:19 +00:00
mikel
486b24efe4
explicitly type ether_{hostton,ntohost,line}(). all return int.
1997-01-17 08:23:26 +00:00
veego
b6257e9e67
iruserok fails to open a ~/.rhosts file if you have a directory
...
above the home dir which is only group acessable:
directroy owner group permission
/a root wheel 755
/a/b root b 750 <
/a/b/c c b 700
/a/b/c/.rhosts c b 600
add getegid and initgroups before and setegid behind fopen to fix this.
add <netgroup.h> for the prototype of innetgr.
1996-12-28 18:48:31 +00:00
cgd
5a39204a94
_gethtbyname's arg should be const char *, not char *
1996-12-20 19:41:30 +00:00
thorpej
32c0c5ebb7
Don't pass a timeout of 0 to poll(2); block indefinitely, like the
...
pre-poll(2) aware implementation.
From enami tsugutomo <enami@ba2.so-net.or.jp>, PR #3043 .
1996-12-18 04:53:11 +00:00
mrg
f5e4cc118e
use poll() instead of select()
1996-12-17 03:35:52 +00:00
mikel
6965177949
Add iso_addr.3 to MAN. Fixes misc/2942.
1996-11-17 04:37:14 +00:00
lukem
5365ba0ce7
add 'const' qualifiers to various routines (as per the include prototypes
...
and the implementation)
1996-11-09 08:30:52 +00:00
lukem
5fe99da953
fix prototype for getservbyport, from babafou@ensta.fr [misc/2916],
...
and also add 'const' qualifiers
1996-11-09 08:30:22 +00:00
mrg
6450bba05b
fix another bogon in last change; some changes derived from openbsd.
1996-10-18 00:10:18 +00:00
cgd
98a0fb0a16
fix a typo: take and cast a pointer to the argument, rather than trying
...
to cast the argument to a pointer.
1996-10-17 01:39:40 +00:00
mrg
e6b86e3b9c
fix bogon in last change.
1996-10-14 10:41:07 +00:00
christos
858f971050
in_addr_t and in_port_t changes
1996-10-13 04:08:34 +00:00
mrg
92390243e6
always update length; from vixie.
1996-10-08 04:09:58 +00:00
jtc
6d8b15101f
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.
1996-07-10 20:15:48 +00:00
cgd
0351ca5efa
Add some casts so that we're not bitten by type promotions on 64-bit
...
systems. Not a great concern since the only 64-bit system currently
supported by NetBSD (Alpha) uses assembly versions of these routines.
1996-05-29 23:23:27 +00:00
mrg
343a54bb75
Change iuserok() to take u_int32_t. Some netgroup fixes (partially
...
from OpenBSD and Theo).
1996-05-28 02:07:32 +00:00
jtc
755230061e
Added explicit return types to all functions in SYNOPSIS section.
...
Added documentation to hstrerror() function.
Added hstrerror MLINK.
1996-03-30 01:14:56 +00:00
hpeyerl
acfb6aadb9
Fix inet addr parsing so no more than 4 octets are valid.
...
From Amy Baron (amee@remarque.berkeley.edu ). Fixes PR#2089. (BFPR)
1996-02-17 15:35:41 +00:00
mrg
bf1bb3d725
re-apply patch from 2 revisions ago
1996-02-16 00:53:00 +00:00
mrg
237baea38a
merge with the resolver in bind 4.9.3-P1.
1996-02-02 15:22:14 +00:00
ghudson
1ca8e01f30
Don't read the network address as an alias when there isn't whitespace
...
after the network address. Closes PR 1940.
1996-01-14 05:02:41 +00:00
pk
70a905904f
Remove call to abort() (from John Kohl; PR#1764).
1995-11-16 08:35:33 +00:00
mycroft
c7ad9c47f1
Fill in sin_len.
1995-06-03 22:24:45 +00:00
mycroft
800709ce22
Use inet_aton(), not inet_addr().
1995-05-21 15:50:45 +00:00
jtc
528957a005
Winning Strategies has placed this code into the Public Domain
1995-04-28 23:19:22 +00:00
chopps
09072f5bd9
include proper links to ethers.3
1995-03-02 09:09:07 +00:00
chopps
204556053e
indicate const'ness of args.
1995-02-27 09:45:26 +00:00
cgd
4879d5dc50
don't forget to take address before deref'ing thru. from fvdl.
1995-02-27 01:03:47 +00:00
cgd
c2ee3d850f
mention the functions that need to be provided, instead of providing dflts.
1995-02-25 17:10:57 +00:00
cgd
83b55061cc
oops; fix the cleanup.
1995-02-25 06:58:58 +00:00
cgd
ef0582f1e7
clean up import. also convert everything to new Id format.
1995-02-25 06:20:26 +00:00
cgd
547fd46929
4.4-Lite lib/libc/net
1995-02-25 03:54:36 +00:00
cgd
32b5bdd221
use NetBSD rather than ID
1995-02-25 03:34:50 +00:00
cgd
b42e80ba75
list the files needed on the alpha.
1995-02-10 17:46:48 +00:00
cgd
ae9172d6cd
specify man pages the new way.
1994-12-22 09:57:51 +00:00
cgd
510290ed54
make sure link for inet_aton is in alphabetical order in MLINKS.
1994-12-18 09:42:18 +00:00
christos
876c50bcb3
Added code to handle netgroups in user authorization.
1994-12-04 18:13:11 +00:00
dean
a7d9360c57
Include files for pmax
1994-11-14 23:46:52 +00:00
deraadt
65609b558b
another type change
1994-11-02 09:17:27 +00:00
deraadt
41614869d6
one more u_long -> u_int32_t change
1994-11-02 07:19:51 +00:00
glass
2999135c5d
link inet.3 for inet_aton()
1994-10-31 06:53:48 +00:00
mycroft
0aeeefdc23
Fix typo in previous.
1994-10-28 17:59:47 +00:00
mycroft
6f553ba1a3
Properly document what iruserok(3) does.
1994-10-28 17:56:40 +00:00
cgd
b7d1866d65
fix bug 535, reported by Brian Moore.
1994-10-28 17:30:22 +00:00
cgd
bf8067b9da
maybe they should actually... WORK!
1994-10-19 03:27:52 +00:00
cgd
f546ad9c8a
casts for happiness.
1994-10-19 03:21:15 +00:00
cgd
f5e2eec480
get return type right.
1994-10-19 03:20:30 +00:00
cgd
685a1b9fa2
beware pointer casts.
1994-10-19 03:19:42 +00:00
deraadt
2343dc8f90
u_int_{16,32}_t stuff
1994-10-15 07:56:51 +00:00
pk
fc016a129a
Fix last bug correctly
1994-06-03 15:02:21 +00:00
pk
1429552f6e
Defend against empty names.
1994-06-01 19:54:07 +00:00
pk
816feb25c5
Avoid stomping on static memory by repeatly calling gethostbyname().
1994-06-01 19:32:43 +00:00
pk
350b02a45f
Don't try to lookup an empty hostname; some nameservers return the root servers
...
for such a query.
1994-06-01 19:23:59 +00:00
deraadt
cda7e4788e
fix the stupid select bug AGAIN
1994-05-27 18:56:24 +00:00
cgd
9e263d13ee
kill typo, pointed out by John Hay <jhay@mikom.csir.co.za>
1994-05-25 20:37:52 +00:00
cgd
7aa3357e1b
udpated rcmd
1994-05-18 06:35:14 +00:00
deraadt
94677efe9e
size_t
1994-05-13 22:23:05 +00:00
deraadt
0681fe2f1e
set h_errno for non-BIND failed lookups too
1994-04-14 07:47:37 +00:00
deraadt
bc93d2c77e
new resolver. changes from 4.9.2 by <paul@vix.com>, as well as a number
...
of features and optimizations by myself.
1994-04-07 06:58:29 +00:00
deraadt
e91cd2af40
but described in a posting by <RHussein@uh.edu> somewhere on the net.
...
select() loop hung if either socket was >=32.
1994-03-27 07:49:10 +00:00
davidb
068965c68b
h_errno is an int, not a "struct".
1994-03-12 09:00:01 +00:00
deraadt
b4af129fde
fix bug where yp gethostby* lookups could have extra stuff in the alias
...
fields, and leave bogon stuff in the address fields...
1994-02-27 10:09:09 +00:00
jtc
e2c220f94b
Fix spelling error in Copyright notice
1994-01-28 20:34:33 +00:00
deraadt
7b729d55a0
support for lookup keyword in resolv.conf
1994-01-28 03:10:35 +00:00
deraadt
cac819eb3b
support for lookup keyword in resolv.conf
1994-01-28 03:00:25 +00:00
deraadt
e49d599168
note resolver(5) -> resolv.conf(5) move
...
(any more of these needed?)
1994-01-26 10:59:58 +00:00
jtc
719a8083f0
Fix spelling errors.
1994-01-11 00:05:54 +00:00
deraadt
1a361f13ba
"struct ether_addr" is in netinet/if_ether.h (as in SunOS)
1993-12-30 04:21:05 +00:00
jtc
a5313a04b3
#include <stdlib.h> & <string.h> to bring function prototypes into scope.
1993-12-28 19:51:37 +00:00
deraadt
46c1a166d2
small bug fixed
1993-12-16 19:19:14 +00:00
deraadt
e1d7e3c22c
ethers(3) man page by Roland McGrath <roland@frob.com>
1993-12-16 15:50:20 +00:00
deraadt
6a3865505c
ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
...
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.
1993-12-16 05:17:35 +00:00
pk
49d5ac06cc
Added some Sparc sources.
1993-12-08 13:31:01 +00:00
briggs
bdb4a3a91a
Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"
1993-12-05 15:45:52 +00:00
deraadt
f92ccee2e2
should bzero automatic sockaddr's before use
1993-12-05 14:36:48 +00:00
cgd
f00e1cfe6a
get pc532 moved into ns32k; that's is MACHINE_ARCH
1993-12-05 02:20:58 +00:00
cgd
30dc89704d
split up the {ntoh,hton}[ls] functions
1993-12-05 01:36:46 +00:00
cgd
0ada107897
update for .S and MACHINE_ARCH
1993-12-04 02:33:35 +00:00
cgd
0b9f50897e
make an arch directory in libc, and move all machine dirs into it
1993-10-07 00:17:24 +00:00
phil
7ce7cb30df
pc532 specifics.
1993-09-17 19:22:50 +00:00
jtc
53229bead2
Provide C language versions of the netorder functions.
...
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.
1993-08-31 19:00:11 +00:00
jtc
9c20f740a3
Declare rcsid strings so they are stored in text segment.
1993-08-26 00:43:03 +00:00
mycroft
584cb286d8
Add RCS identifier.
1993-08-03 21:55:48 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
b1bd4afedc
Add RCS indentifiers.
1993-08-01 07:42:49 +00:00
mycroft
cda4f8f6ee
Add RCS identifiers.
1993-08-01 05:37:30 +00:00
cgd
c6ac4dd960
Needed for netstat to compile, add iso_addr &c
...
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)
1993-05-21 12:47:53 +00:00
mycroft
8c13f4907a
Compile {iso,ns}_{addr,ntoa}.
1993-04-25 07:24:14 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00