Deleted Added
full compact
nameser.h (170244) nameser.h (186090)
1/*
2 * Copyright (c) 1983, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 35 unchanged lines hidden (view full) ---

44 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
45 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
47 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
48 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49 */
50
51/*
1/*
2 * Copyright (c) 1983, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 35 unchanged lines hidden (view full) ---

44 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
45 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
47 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
48 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49 */
50
51/*
52 * $Id: nameser.h,v 1.7.18.1 2005/04/27 05:00:50 sra Exp $
53 * $FreeBSD: head/include/arpa/nameser.h 170244 2007-06-03 17:20:27Z ume $
52 * $Id: nameser.h,v 1.7.18.2 2008/04/03 23:15:15 marka Exp $
53 * $FreeBSD: head/include/arpa/nameser.h 186090 2008-12-14 19:39:53Z ume $
54 */
55
56#ifndef _ARPA_NAMESER_H_
57#define _ARPA_NAMESER_H_
58
59/*! \file */
60
61#define BIND_4_COMPAT

--- 357 unchanged lines hidden (view full) ---

419/* How RR types are represented as bit-flags in NXT records */
420#define NS_NXT_BITS 8
421#define NS_NXT_BIT_SET( n,p) (p[(n)/NS_NXT_BITS] |= (0x80>>((n)%NS_NXT_BITS)))
422#define NS_NXT_BIT_CLEAR(n,p) (p[(n)/NS_NXT_BITS] &= ~(0x80>>((n)%NS_NXT_BITS)))
423#define NS_NXT_BIT_ISSET(n,p) (p[(n)/NS_NXT_BITS] & (0x80>>((n)%NS_NXT_BITS)))
424#define NS_NXT_MAX 127
425
426/*%
54 */
55
56#ifndef _ARPA_NAMESER_H_
57#define _ARPA_NAMESER_H_
58
59/*! \file */
60
61#define BIND_4_COMPAT

--- 357 unchanged lines hidden (view full) ---

419/* How RR types are represented as bit-flags in NXT records */
420#define NS_NXT_BITS 8
421#define NS_NXT_BIT_SET( n,p) (p[(n)/NS_NXT_BITS] |= (0x80>>((n)%NS_NXT_BITS)))
422#define NS_NXT_BIT_CLEAR(n,p) (p[(n)/NS_NXT_BITS] &= ~(0x80>>((n)%NS_NXT_BITS)))
423#define NS_NXT_BIT_ISSET(n,p) (p[(n)/NS_NXT_BITS] & (0x80>>((n)%NS_NXT_BITS)))
424#define NS_NXT_MAX 127
425
426/*%
427 * EDNS0 extended flags, host order.
427 * EDNS0 extended flags and option codes, host order.
428 */
429#define NS_OPT_DNSSEC_OK 0x8000U
428 */
429#define NS_OPT_DNSSEC_OK 0x8000U
430#define NS_OPT_NSID 3
430
431/*%
432 * Inline versions of get/put short/long. Pointer is advanced.
433 */
434#define NS_GET16(s, cp) do { \
435 register const u_char *t_cp = (const u_char *)(cp); \
436 (s) = ((u_int16_t)t_cp[0] << 8) \
437 | ((u_int16_t)t_cp[1]) \

--- 146 unchanged lines hidden ---
431
432/*%
433 * Inline versions of get/put short/long. Pointer is advanced.
434 */
435#define NS_GET16(s, cp) do { \
436 register const u_char *t_cp = (const u_char *)(cp); \
437 (s) = ((u_int16_t)t_cp[0] << 8) \
438 | ((u_int16_t)t_cp[1]) \

--- 146 unchanged lines hidden ---