aboutsummaryrefslogtreecommitdiff
path: root/man/man3/ip.3
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-03 06:40:20 +0000
committerrsc <devnull@localhost>2005-01-03 06:40:20 +0000
commit058b0118a52061ad57694c01fc8763b22b789c4d (patch)
tree6685f04dea5ed68edaa34998c976aed34c55fe94 /man/man3/ip.3
parent2600337aa704efbeba8201e88147a764b4fd2b90 (diff)
downloadplan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.gz
plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.bz2
plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.zip
Some man pages.
Diffstat (limited to 'man/man3/ip.3')
-rw-r--r--man/man3/ip.322
1 files changed, 15 insertions, 7 deletions
diff --git a/man/man3/ip.3 b/man/man3/ip.3
index b133adf8..c31c294f 100644
--- a/man/man3/ip.3
+++ b/man/man3/ip.3
@@ -1,6 +1,6 @@
.TH IP 3
.SH NAME
-eipfmt, parseip, parseipmask, v4parseip, v4parsecidr, parseether, myipaddr, myetheraddr, maskip, equivip, defmask, isv4, v4tov6, v6tov4, nhgetl, nhgets, hnputl, hnputs, ptclbsum, readipifc \- Internet protocol
+eipfmt, parseip, parseipmask, v4parseip, v4parsecidr, parseether, myipaddr, myetheraddr, maskip, equivip, defmask, isv4, v4tov6, v6tov4, nhgetl, nhgets, nhgetv, hnputl, hnputs, hnputv, ptclbsum, readipifc \- Internet protocol
.SH SYNOPSIS
.B #include <u.h>
.br
@@ -57,12 +57,18 @@ ushort nhgets(void *p)
uint nhgetl(void *p)
.PP
.B
+uvlong nhgetv(void *p)
+.PP
+.B
void hnputs(void *p, ushort v)
.PP
.B
void hnputl(void *p, uint v)
.PP
.B
+void hnputv(void *p, uvlong v)
+.PP
+.B
ushort ptclbsum(uchar *a, int n)
.PP
.B
@@ -211,14 +217,16 @@ converts the V6 address,
to a V4 address and puts the result in
.IR v4ip .
.PP
-.I Hnputs
+.IR Hnputs ,
+.IR hnputl ,
and
-.I hnputl
-are used to store 16-bit and 32-bit integers into IP big-endian form.
-.I Nhgets
+.I hnputv
+are used to store 16-, 32-, and 64-bit integers into IP big-endian form.
+.IR Nhgets ,
+.IR nhgetl ,
and
-.I nhgetl
-convert big-endian 2 and 4 byte quantities into integers.
+.I nhgetv
+convert big-endian 2-, 4-, and 8-byte quantities into integers.
.PP
.I Pctlbsum
returns the one's complement checksum used in IP protocols, typically invoked as