summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-05 19:29:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-05 19:29:44 +0000
commitb4bd80708cf621f4c8965d1f8daada4c36b5a078 (patch)
tree5fb0f4f8d63afa7ab8a645811ce10f92090e6698 /lib
parente68ce6fd56387937b3bf90e7190d444fb05d569a (diff)
stronger suggest
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/inet.315
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3
index a9da73db3a8..d29f3160aa9 100644
--- a/lib/libc/net/inet.3
+++ b/lib/libc/net/inet.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: inet.3,v 1.6 1999/05/25 13:06:45 aaron Exp $
+.\" $OpenBSD: inet.3,v 1.7 1999/06/05 19:29:43 deraadt Exp $
.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -303,9 +303,16 @@ The value
(0xffffffff) is a valid broadcast address, but
.Fn inet_addr
cannot return that value without indicating failure.
+Also,
+.Fn inet_addr
+should have been designed to return a
+.Fa "struct in_addr" .
The newer
.Fn inet_aton
-function does not share this problem.
+function does not share these problems, and almost all existing code
+should be modified to use
+.Fn inet_aton
+instead.
.Pp
The problem of host byte ordering versus network byte ordering is
confusing.
@@ -313,7 +320,3 @@ confusing.
The string returned by
.Fn inet_ntoa
resides in a static memory area.
-.Pp
-.Fn inet_addr
-should return a
-.Fa "struct in_addr" .