diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2018-08-03 21:34:10 +0300 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2018-08-06 19:38:36 +0000 |
commit | cc581a18c90036f3cc09e518f22af9b2f11b2a8d (patch) | |
tree | 45cb4d3dbb1afc1f1f182daef02bffebd624ea13 /usr/src/man/man3socket/sockaddr.3socket | |
parent | 8cd3131235b232e4d63be3cf95ce9be87907e74f (diff) | |
download | illumos-joyent-cc581a18c90036f3cc09e518f22af9b2f11b2a8d.tar.gz |
9701 byteorder functions are in libc for a long time
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/man/man3socket/sockaddr.3socket')
-rw-r--r-- | usr/src/man/man3socket/sockaddr.3socket | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/man/man3socket/sockaddr.3socket b/usr/src/man/man3socket/sockaddr.3socket index 740b80e4dd..3d5af60020 100644 --- a/usr/src/man/man3socket/sockaddr.3socket +++ b/usr/src/man/man3socket/sockaddr.3socket @@ -198,9 +198,9 @@ is always stored in .Sy Network Byte Order . On many systems, this differs from the native host byte order. Applications should read from the member with the function -.Xr ntohs 3SOCKET +.Xr ntohs 3C and write to the member with the function -.Xr htons 3SOCKET . +.Xr htons 3C . The member .Em sin_addr is the four byte IPv4 address. @@ -264,9 +264,9 @@ byte order. The member .Em sin6_port describes the IPv6 port and should be manipulated with the functions -.Xr ntohs 3SOCKET +.Xr ntohs 3C and -.Xr htons 3SOCKET . +.Xr htons 3C . The member .Em sin6_addr describes the 16-byte IPv6 address. @@ -426,9 +426,9 @@ For example, when capturing Ethernet frames the value of .Em sll_protocol is the Ethertype. This member is written in network byte order and applications should use -.Xr htons 3SOCKET +.Xr htons 3C and -.Xr ntohs 3SOCKET +.Xr ntohs 3C to read and write the member. .Lp The member |