~ubuntu-branches/ubuntu/maverick/bind9/maverick

« back to all changes in this revision

Viewing changes to lib/isc/include/isc/ipv6.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, LaMont Jones, Internet Software Consortium, Inc, localization folks
  • Date: 2008-08-02 14:20:20 UTC
  • mfrom: (1.2.1 upstream) (6.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802142020-l1hon9jy8lbbjxmg
[LaMont Jones]

* default to using resolvconf if it is installed
* fix sonames and dependencies.  Closes: #149259, #492418
* Do not build-depend libcap2-dev on non-linux.  Closes: #493392
* drop unused query-loc manpage.  Closes: #492564
* lwresd: Deliver /etc/bind directory.  Closes: #490027
* fix query-source comment in default install

[Internet Software Consortium, Inc]

* 9.5.0-P2.  Closes: #492949

[localization folks]

* l10n: Spanish debconf translation.  Closes: #492425 (Ignacio Mondino)
* l10n: Swedish debconf templates.  Closes: #491369 (Martin Ågren)
* l10n: Japanese debconf translations.  Closes: #492048 (Hideki Yamane
  (Debian-JP))
* l10n: Finnish translation.  Closes: #490630 (Esko Arajärvi)
* l10n: Italian debconf translations.  Closes: #492587 (Alessandro Vietta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2002  Internet Software Consortium.
4
4
 *
5
 
 * Permission to use, copy, modify, and distribute this software for any
 
5
 * Permission to use, copy, modify, and/or distribute this software for any
6
6
 * purpose with or without fee is hereby granted, provided that the above
7
7
 * copyright notice and this permission notice appear in all copies.
8
8
 *
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: ipv6.h,v 1.17.12.4 2004/03/09 05:21:09 marka Exp $ */
 
18
/* $Id: ipv6.h,v 1.24 2007/06/19 23:47:18 tbox Exp $ */
19
19
 
20
20
#ifndef ISC_IPV6_H
21
21
#define ISC_IPV6_H 1
22
22
 
23
 
/*
 
23
/*!
24
24
 * Also define LWRES_IPV6_H to keep it from being included if liblwres is
25
25
 * being used, or redefinition errors will occur.
26
26
 */
30
30
 ***** Module Info
31
31
 *****/
32
32
 
33
 
/*
34
 
 * IPv6 definitions for systems which do not support IPv6.
 
33
/*! \file isc/ipv6.h
 
34
 * \brief IPv6 definitions for systems which do not support IPv6.
35
35
 *
36
 
 * MP:
 
36
 * \li MP:
37
37
 *      No impact.
38
38
 *
39
 
 * Reliability:
 
39
 * \li Reliability:
40
40
 *      No anticipated impact.
41
41
 *
42
 
 * Resources:
 
42
 * \li Resources:
43
43
 *      N/A.
44
44
 *
45
 
 * Security:
 
45
 * \li Security:
46
46
 *      No anticipated impact.
47
47
 *
48
 
 * Standards:
49
 
 *      RFC 2553.
 
48
 * \li Standards:
 
49
 *      RFC2553.
50
50
 */
51
51
 
52
52
/***
95
95
#define SIN6_LEN 1
96
96
#endif
97
97
 
98
 
/*
 
98
/*%
99
99
 * Unspecified
100
100
 */
101
101
#define IN6_IS_ADDR_UNSPECIFIED(a)      \
104
104
         ((a)->s6_addr32[2] == 0) &&    \
105
105
         ((a)->s6_addr32[3] == 0))
106
106
 
107
 
/*
 
107
/*%
108
108
 * Loopback
109
109
 */
110
110
#define IN6_IS_ADDR_LOOPBACK(a)         \
113
113
         ((a)->s6_addr32[2] == 0) &&    \
114
114
         ((a)->s6_addr32[3] == htonl(1)))
115
115
 
116
 
/*
 
116
/*%
117
117
 * IPv4 compatible
118
118
 */
119
119
#define IN6_IS_ADDR_V4COMPAT(a)         \
123
123
         ((a)->s6_addr32[3] != 0) &&    \
124
124
         ((a)->s6_addr32[3] != htonl(1)))
125
125
 
126
 
/*
 
126
/*%
127
127
 * Mapped
128
128
 */
129
129
#define IN6_IS_ADDR_V4MAPPED(a)               \
131
131
         ((a)->s6_addr32[1] == 0) &&          \
132
132
         ((a)->s6_addr32[2] == htonl(0x0000ffff)))
133
133
 
134
 
/*
 
134
/*%
135
135
 * Multicast
136
136
 */
137
137
#define IN6_IS_ADDR_MULTICAST(a)        \
138
138
        ((a)->s6_addr8[0] == 0xffU)
139
139
 
140
 
/*
 
140
/*%
141
141
 * Unicast link / site local.
142
142
 */
143
143
#define IN6_IS_ADDR_LINKLOCAL(a)        \