Browse Source

Plan 9 from Bell Labs 2014-02-03

David du Colombier 10 years ago
parent
commit
dbff298f11
1 changed files with 7 additions and 1 deletions
  1. 7 1
      sys/man/2/ip

+ 7 - 1
sys/man/2/ip

@@ -1,6 +1,6 @@
 .TH IP 2
 .SH NAME
-eipfmt, parseip, parseipmask, v4parseip, v4parsecidr, parseether, myipaddr, myetheraddr, maskip, equivip4, equivip6, defmask, isv4, v4tov6, v6tov4, nhgetv, nhgetl, nhgets, hnputv, hnputl, hnputs, ptclbsum, readipifc \- Internet Protocol addressing
+eipfmt, parseip, parseipmask, v4parseip, v4parsecidr, parseether, myipaddr, myetheraddr, maskip, equivip4, equivip6, ipcmp, defmask, isv4, v4tov6, v6tov4, nhgetv, nhgetl, nhgets, hnputv, hnputl, hnputs, ptclbsum, readipifc \- Internet Protocol addressing
 .SH SYNOPSIS
 .B #include <u.h>
 .br
@@ -42,6 +42,9 @@ int	equivip4(uchar *ipaddr1, uchar *ipaddr2)
 int	equivip6(uchar *ipaddr1, uchar *ipaddr2)
 .PP
 .B
+int	ipcmp(uchar *ipaddr1, uchar *ipaddr2)
+.PP
+.B
 uchar*	defmask(uchar *ipaddr)
 .PP
 .B
@@ -204,6 +207,9 @@ arguments are equal.
 operates on v4 addresses,
 .I equivip6
 operates on v6 addresses.
+.I Ipcmp
+is a macro that compares V6 addresses per
+.IR memcmp (2)).
 .PP
 .I Defmask
 returns the standard class A, B, or C mask for