diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-09-15 17:14:45 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-09-15 17:14:45 +0000 |
| commit | 9559eb50bb00b622dbb2e0a5983ab020ff7c296d (patch) | |
| tree | 12562ac9aca1005ee31b1cd9425b4503695ad30a /man3/inet.3 | |
| parent | b5188e9abb3eb6354576bc3e2af8f20a38ea6c4d (diff) | |
| download | man-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.3 | 10 |
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" |
