2 .\" The contents of this file are subject to the terms of the
3 .\" Common Development and Distribution License (the "License").
4 .\" You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7 .\" or http://www.opensolaris.org/os/licensing.
8 .\" See the License for the specific language governing permissions
9 .\" and limitations under the License.
11 .\" When distributing Covered Code, include this CDDL HEADER in each
12 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13 .\" If applicable, add the following below this CDDL HEADER, with the
14 .\" fields enclosed by brackets "[]" replaced with your own identifying
15 .\" information: Portions Copyright [yyyy] [name of copyright owner]
18 .\" Copyright 1989 AT&T
19 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
20 .\" Copyright 2018 Nexenta Systems, Inc.
33 .Nd convert values between host and network byte order
42 .Fa "uint32_t hostlong"
46 .Fa "uint64_t hostlonglong"
50 .Fa "uint16_t hostshort"
54 .Fa "uint32_t netlong"
58 .Fa "uint64_t netlonglong"
62 .Fa "uint16_t netshort"
65 These functions convert 16-bit, 32-bit, and 64-bit quantities between network
66 byte order and host byte order.
67 On some architectures these routines are defined as
69 macros in the include file
71 On other architectures, the routines are functional when the host byte order is
72 different from network byte order.
74 These functions are most often used in conjunction with Internet addresses and