diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-03-13 19:07:42 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-03-13 19:07:42 +0000 |
commit | 6f186362d0923eb9f92a696a1132378f6854f243 (patch) | |
tree | c516aca93e6026f753f6dcf2f004073ee9cd8ca3 /lib/libc/net/getnetent.3 | |
parent | 6e0f740fe402f51cdf52c350f93fbda7a6328142 (diff) |
Integrate BIND 4.9.5 resolver and associated routines.
Includes the DNS aware getnetby*() routines and IPv6 support.
Diffstat (limited to 'lib/libc/net/getnetent.3')
-rw-r--r-- | lib/libc/net/getnetent.3 | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/libc/net/getnetent.3 b/lib/libc/net/getnetent.3 index 9cd54a817ce..a3aebf43102 100644 --- a/lib/libc/net/getnetent.3 +++ b/lib/libc/net/getnetent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getnetent.3,v 1.2 1996/08/19 08:28:45 tholo Exp $ +.\" $OpenBSD: getnetent.3,v 1.3 1997/03/13 19:07:26 downsj Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,9 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 4, 1993 +.Dd March 13, 1997 .Dt GETNETENT 3 -.Os BSD 4.2 +.Os .Sh NAME .Nm getnetent , .Nm getnetbyaddr , @@ -48,7 +48,7 @@ .Ft struct netent * .Fn getnetbyname "char *name" .Ft struct netent * -.Fn getnetbyaddr "long net" "int type" +.Fn getnetbyaddr "unsigned long net" "int type" .Fn setnetent "int stayopen" .Fn endnetent .Sh DESCRIPTION @@ -111,11 +111,10 @@ The function and .Fn getnetbyaddr -sequentially search from the beginning -of the file until a matching -net name or -net address and type is found, -or until +search the domain name server if the system is configured to use one. +If the search fails, or no name server is configured, they sequentially +search from the beginning of the file until a matching net name or +net address and type is found, or until .Dv EOF is encountered. Network numbers are supplied in host order. @@ -129,7 +128,8 @@ Null pointer .Dv EOF or error. .Sh SEE ALSO -.Xr networks 5 +.Xr networks 5 , +.Xr resolver 3 .Sh HISTORY The .Fn getnetent , @@ -147,5 +147,4 @@ copied before any subsequent calls to these functions overwrite it. Only Internet network numbers are currently understood. Expecting network numbers to fit -in no more than 32 bits is probably -naive. +in no more than 32 bits is naive. |