summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/ns.3
diff options
context:
space:
mode:
authoraaron <>1999-07-05 04:41:00 +0000
committeraaron <>1999-07-05 04:41:00 +0000
commitc47037b066169c61c5eefad3368f2da73ca4be54 (patch)
treefa80157fecd0fbb57811f82d8f3ce1366b44a203 /src/lib/libc/net/ns.3
parent5f78a44df1a8e524a82445f2fedb382128869a2a (diff)
downloadopenbsd-c47037b066169c61c5eefad3368f2da73ca4be54.tar.gz
openbsd-c47037b066169c61c5eefad3368f2da73ca4be54.tar.bz2
openbsd-c47037b066169c61c5eefad3368f2da73ca4be54.zip
repairs; better English, formatting, etc.
Diffstat (limited to 'src/lib/libc/net/ns.3')
-rw-r--r--src/lib/libc/net/ns.318
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libc/net/ns.3 b/src/lib/libc/net/ns.3
index ee49237a24..24e69c8388 100644
--- a/src/lib/libc/net/ns.3
+++ b/src/lib/libc/net/ns.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ns.3,v 1.4 1999/05/23 14:11:02 aaron Exp $ 1.\" $OpenBSD: ns.3,v 1.5 1999/07/05 04:41:00 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1986, 1991, 1993 3.\" Copyright (c) 1986, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -43,7 +43,7 @@ address conversion routines
43.Sh SYNOPSIS 43.Sh SYNOPSIS
44.Fd #include <sys/types.h> 44.Fd #include <sys/types.h>
45.Fd #include <netns/ns.h> 45.Fd #include <netns/ns.h>
46.Ft struct ns_addr 46.Ft struct ns_addr
47.Fn ns_addr "char *cp" 47.Fn ns_addr "char *cp"
48.Ft char * 48.Ft char *
49.Fn ns_ntoa "struct ns_addr ns" 49.Fn ns_ntoa "struct ns_addr ns"
@@ -67,11 +67,11 @@ notation in common use in the Xerox Development Environment:
67.Ed 67.Ed
68.Pp 68.Pp
69Trailing zero fields are suppressed, and each number is printed in hexadecimal, 69Trailing zero fields are suppressed, and each number is printed in hexadecimal,
70in a format suitable for input to 70in a format suitable for input to
71.Fn ns_addr . 71.Fn ns_addr .
72Any fields lacking super-decimal digits will have a 72Any fields lacking super-decimal digits will have a
73trailing 73trailing
74.Ql H 74.Sq H
75appended. 75appended.
76.Pp 76.Pp
77Unfortunately, no universal standard exists for representing 77Unfortunately, no universal standard exists for representing
@@ -83,11 +83,11 @@ be compatible with most formats in common use.
83It will first separate an address into 1 to 3 fields using a single delimiter 83It will first separate an address into 1 to 3 fields using a single delimiter
84chosen from 84chosen from
85period 85period
86.Ql \&. , 86.Pq Ql \&. ,
87colon 87colon
88.Ql \&: 88.Pq Ql \&: ,
89or pound-sign 89or pound-sign
90.Ql \&# . 90.Ql # .
91Each field is then examined for byte separators (colon or period). 91Each field is then examined for byte separators (colon or period).
92If there are byte separators, each subfield separated is taken to be 92If there are byte separators, each subfield separated is taken to be
93a small hexadecimal number, and the entirety is taken as a network-byte-ordered 93a small hexadecimal number, and the entirety is taken as a network-byte-ordered
@@ -101,7 +101,7 @@ as hexadecimal if there is a leading
101.Ql 0x 101.Ql 0x
102(as in C), 102(as in C),
103a trailing 103a trailing
104.Ql H 104.Sq H
105(as in Mesa), or there are any super-decimal digits present. 105(as in Mesa), or there are any super-decimal digits present.
106It is interpreted as octal is there is a leading 106It is interpreted as octal is there is a leading
107.Ql 0 107.Ql 0
@@ -118,7 +118,7 @@ The
118.Fn ns_addr 118.Fn ns_addr
119and 119and
120.Fn ns_toa 120.Fn ns_toa
121functions appeared in 121functions appeared in
122.Bx 4.3 . 122.Bx 4.3 .
123.Sh BUGS 123.Sh BUGS
124The string returned by 124The string returned by