aboutsummaryrefslogtreecommitdiffstats
path: root/man3/inet.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2005-09-15 17:14:45 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2005-09-15 17:14:45 +0000
commit9559eb50bb00b622dbb2e0a5983ab020ff7c296d (patch)
tree12562ac9aca1005ee31b1cd9425b4503695ad30a /man3/inet.3
parentb5188e9abb3eb6354576bc3e2af8f20a38ea6c4d (diff)
downloadman-pages-9559eb50bb00b622dbb2e0a5983ab020ff7c296d.tar.gz
Mention "little endian" and "big endian".
Added note about octal and hex interpretation of numbers-and-dots notation.
Diffstat (limited to 'man3/inet.3')
-rw-r--r--man3/inet.310
1 files changed, 8 insertions, 2 deletions
diff --git a/man3/inet.3 b/man3/inet.3
index 61e1bc90f0..0331cfdd9b 100644
--- a/man3/inet.3
+++ b/man3/inet.3
@@ -108,8 +108,14 @@ struct in_addr {
.RE
.PP
Note that on the i80x86 the host byte order is Least Significant Byte
-first, whereas the network byte order, as used on the Internet, is
-Most Significant Byte first.
+first (little endian), whereas the network byte order, as used on the
+Internet, is Most Significant Byte first (big endian).
+.SH NOTE
+When you using numbers-and-dots notation for addresses,
+be aware that each number will be interpreted as octal
+if preceeded by a 0 and as hexadecimal if preceeded by 0x.
+For example, \fBinet_aton("226.000.000.037", &t)\fP will
+interpret the address as \fI266.0.0.31\fP and not \fI226.0.0.37\fP.
.SH "CONFORMING TO"
4.3BSD
.SH "SEE ALSO"