From 058b0118a52061ad57694c01fc8763b22b789c4d Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 3 Jan 2005 06:40:20 +0000 Subject: Some man pages. --- man/man3/ip.3 | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'man/man3/ip.3') 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 .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 -- cgit v1.2.3