2N/A/*
2N/A * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
2N/A * Copyright (c) 1996,1999 by Internet Software Consortium.
2N/A *
2N/A * Permission to use, copy, modify, and distribute this software for any
2N/A * purpose with or without fee is hereby granted, provided that the above
2N/A * copyright notice and this permission notice appear in all copies.
2N/A *
2N/A * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
2N/A * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2N/A * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
2N/A * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2N/A * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2N/A * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
2N/A * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2N/A */
2N/A
2N/A#ifndef lint
2N/Astatic const char rcsid[] = "$Id: ns_netint.c,v 1.3 2005/04/27 04:56:40 sra Exp $";
2N/A#endif
2N/A
2N/A/* Import. */
2N/A
2N/A#include "port_before.h"
2N/A
2N/A#include <arpa/nameser.h>
2N/A
2N/A#include "port_after.h"
2N/A
2N/A/* Public. */
2N/A
2N/Au_int
2N/Ans_get16(const u_char *src) {
2N/A u_int dst;
2N/A
2N/A NS_GET16(dst, src);
2N/A return (dst);
2N/A}
2N/A
2N/Au_long
2N/Ans_get32(const u_char *src) {
2N/A u_long dst;
2N/A
2N/A NS_GET32(dst, src);
2N/A return (dst);
2N/A}
2N/A
2N/Avoid
2N/Ans_put16(u_int src, u_char *dst) {
2N/A NS_PUT16(src, dst);
2N/A}
2N/A
2N/Avoid
2N/Ans_put32(u_long src, u_char *dst) {
2N/A NS_PUT32(src, dst);
2N/A}
2N/A
2N/A/*! \file */