Blame
Date:
Thu Sep 10 14:45:56 2020 UTC
Message:
I want to stick with ldns-verify-zone
01
2017-10-26
pjp
/*
02
2017-10-26
pjp
* $OpenBSD: endian.h,v 1.18 2006/03/27 07:09:24 otto Exp $
03
2017-10-26
pjp
* $Id: endian.h,v 1.2 2017/10/26 15:49:29 pjp Exp $
04
2017-10-26
pjp
*/
05
2014-11-14
pjp
06
2014-11-14
pjp
/*-
07
2014-11-14
pjp
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
08
2014-11-14
pjp
*
09
2014-11-14
pjp
* Redistribution and use in source and binary forms, with or without
10
2014-11-14
pjp
* modification, are permitted provided that the following conditions
11
2014-11-14
pjp
* are met:
12
2014-11-14
pjp
* 1. Redistributions of source code must retain the above copyright
13
2014-11-14
pjp
* notice, this list of conditions and the following disclaimer.
14
2014-11-14
pjp
* 2. Redistributions in binary form must reproduce the above copyright
15
2014-11-14
pjp
* notice, this list of conditions and the following disclaimer in the
16
2014-11-14
pjp
* documentation and/or other materials provided with the distribution.
17
2014-11-14
pjp
*
18
2014-11-14
pjp
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
2014-11-14
pjp
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
2014-11-14
pjp
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
2014-11-14
pjp
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
2014-11-14
pjp
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
2014-11-14
pjp
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
2014-11-14
pjp
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
2014-11-14
pjp
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
2014-11-14
pjp
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
2014-11-14
pjp
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
2014-11-14
pjp
*/
29
2014-11-14
pjp
30
2014-11-14
pjp
/*
31
2014-11-14
pjp
* Generic definitions for little- and big-endian systems. Other endianesses
32
2014-11-14
pjp
* has to be dealt with in the specific machine/endian.h file for that port.
33
2014-11-14
pjp
*
34
2014-11-14
pjp
* This file is meant to be included from a little- or big-endian port's
35
2014-11-14
pjp
* machine/endian.h after setting _BYTE_ORDER to either 1234 for little endian
36
2014-11-14
pjp
* or 4321 for big..
37
2014-11-14
pjp
*/
38
2014-11-14
pjp
39
2014-11-14
pjp
#define NTOHL(x) (x) = ntohl((u_int32_t)(x))
40
2014-11-14
pjp
#define NTOHS(x) (x) = ntohs((u_int16_t)(x))
41
2014-11-14
pjp
#define HTONL(x) (x) = htonl((u_int32_t)(x))
42
2014-11-14
pjp
#define HTONS(x) (x) = htons((u_int16_t)(x))
43
2014-11-14
pjp
repomaster@centroid.eu