843e19887f64dde75055cf8842fc4db2171eff45johnlev * CDDL HEADER START
843e19887f64dde75055cf8842fc4db2171eff45johnlev * The contents of this file are subject to the terms of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev * Common Development and Distribution License (the "License").
843e19887f64dde75055cf8842fc4db2171eff45johnlev * You may not use this file except in compliance with the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
843e19887f64dde75055cf8842fc4db2171eff45johnlev * See the License for the specific language governing permissions
843e19887f64dde75055cf8842fc4db2171eff45johnlev * and limitations under the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev * When distributing Covered Code, include this CDDL HEADER in each
843e19887f64dde75055cf8842fc4db2171eff45johnlev * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
843e19887f64dde75055cf8842fc4db2171eff45johnlev * If applicable, add the following below this CDDL HEADER, with the
843e19887f64dde75055cf8842fc4db2171eff45johnlev * fields enclosed by brackets "[]" replaced with your own identifying
843e19887f64dde75055cf8842fc4db2171eff45johnlev * information: Portions Copyright [yyyy] [name of copyright owner]
843e19887f64dde75055cf8842fc4db2171eff45johnlev * CDDL HEADER END
349b53dd4e695e3d833b5380540385145b2d3ae8Stuart Maybee * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
843e19887f64dde75055cf8842fc4db2171eff45johnlev * Use is subject to license terms.
843e19887f64dde75055cf8842fc4db2171eff45johnlev * Copyright (c) 2015, Joyent, Inc.
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab * NOTE: htonl/ntohl are identical routines, as are htons/ntohs.
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab * As such, they could be implemented as a single routine, using
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab * multiple ALTENTRY/SET_SIZE definitions. We don't do this so
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab * that they will have unique addresses, allowing DTrace and
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab * other debuggers to tell them apart. With the endian
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab * functions we do the same, even though it's similarly
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab * repetitive.