Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
583
Issues
583
List
Boards
Labels
Service Desk
Milestones
Merge Requests
110
Merge Requests
110
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
4b6dc226
Commit
4b6dc226
authored
Dec 04, 2009
by
Automatic Updater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update copyright notice
parent
979e02d1
Changes
56
Hide whitespace changes
Inline
Side-by-side
Showing
56 changed files
with
259 additions
and
259 deletions
+259
-259
bin/check/named-checkzone.c
bin/check/named-checkzone.c
+2
-2
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssec-signzone.c
+28
-28
bin/tests/system/zonechecks/tests.sh
bin/tests/system/zonechecks/tests.sh
+2
-2
lib/dns/gen.c
lib/dns/gen.c
+2
-2
lib/dns/include/dns/zone.h
lib/dns/include/dns/zone.h
+2
-2
lib/dns/rdata/any_255/tsig_250.c
lib/dns/rdata/any_255/tsig_250.c
+2
-2
lib/dns/rdata/ch_3/a_1.c
lib/dns/rdata/ch_3/a_1.c
+4
-4
lib/dns/rdata/generic/afsdb_18.c
lib/dns/rdata/generic/afsdb_18.c
+2
-2
lib/dns/rdata/generic/cert_37.c
lib/dns/rdata/generic/cert_37.c
+2
-2
lib/dns/rdata/generic/cname_5.c
lib/dns/rdata/generic/cname_5.c
+2
-2
lib/dns/rdata/generic/dlv_32769.c
lib/dns/rdata/generic/dlv_32769.c
+4
-4
lib/dns/rdata/generic/dname_39.c
lib/dns/rdata/generic/dname_39.c
+2
-2
lib/dns/rdata/generic/dnskey_48.c
lib/dns/rdata/generic/dnskey_48.c
+3
-3
lib/dns/rdata/generic/ds_43.c
lib/dns/rdata/generic/ds_43.c
+2
-2
lib/dns/rdata/generic/gpos_27.c
lib/dns/rdata/generic/gpos_27.c
+2
-2
lib/dns/rdata/generic/hinfo_13.c
lib/dns/rdata/generic/hinfo_13.c
+2
-2
lib/dns/rdata/generic/hip_55.c
lib/dns/rdata/generic/hip_55.c
+43
-43
lib/dns/rdata/generic/ipseckey_45.c
lib/dns/rdata/generic/ipseckey_45.c
+8
-8
lib/dns/rdata/generic/isdn_20.c
lib/dns/rdata/generic/isdn_20.c
+2
-2
lib/dns/rdata/generic/key_25.c
lib/dns/rdata/generic/key_25.c
+3
-3
lib/dns/rdata/generic/mb_7.c
lib/dns/rdata/generic/mb_7.c
+5
-5
lib/dns/rdata/generic/md_3.c
lib/dns/rdata/generic/md_3.c
+5
-5
lib/dns/rdata/generic/mf_4.c
lib/dns/rdata/generic/mf_4.c
+5
-5
lib/dns/rdata/generic/mg_8.c
lib/dns/rdata/generic/mg_8.c
+5
-5
lib/dns/rdata/generic/minfo_14.c
lib/dns/rdata/generic/minfo_14.c
+8
-8
lib/dns/rdata/generic/mr_9.c
lib/dns/rdata/generic/mr_9.c
+5
-5
lib/dns/rdata/generic/mx_15.c
lib/dns/rdata/generic/mx_15.c
+4
-4
lib/dns/rdata/generic/ns_2.c
lib/dns/rdata/generic/ns_2.c
+5
-5
lib/dns/rdata/generic/nsec_47.c
lib/dns/rdata/generic/nsec_47.c
+23
-23
lib/dns/rdata/generic/null_10.c
lib/dns/rdata/generic/null_10.c
+2
-2
lib/dns/rdata/generic/nxt_30.c
lib/dns/rdata/generic/nxt_30.c
+2
-2
lib/dns/rdata/generic/opt_41.c
lib/dns/rdata/generic/opt_41.c
+2
-2
lib/dns/rdata/generic/proforma.c
lib/dns/rdata/generic/proforma.c
+2
-2
lib/dns/rdata/generic/ptr_12.c
lib/dns/rdata/generic/ptr_12.c
+5
-5
lib/dns/rdata/generic/rp_17.c
lib/dns/rdata/generic/rp_17.c
+8
-8
lib/dns/rdata/generic/rrsig_46.c
lib/dns/rdata/generic/rrsig_46.c
+2
-2
lib/dns/rdata/generic/rt_21.c
lib/dns/rdata/generic/rt_21.c
+4
-4
lib/dns/rdata/generic/sig_24.c
lib/dns/rdata/generic/sig_24.c
+2
-2
lib/dns/rdata/generic/spf_99.c
lib/dns/rdata/generic/spf_99.c
+2
-2
lib/dns/rdata/generic/sshfp_44.c
lib/dns/rdata/generic/sshfp_44.c
+2
-2
lib/dns/rdata/generic/tkey_249.c
lib/dns/rdata/generic/tkey_249.c
+2
-2
lib/dns/rdata/generic/txt_16.c
lib/dns/rdata/generic/txt_16.c
+2
-2
lib/dns/rdata/generic/unspec_103.c
lib/dns/rdata/generic/unspec_103.c
+2
-2
lib/dns/rdata/generic/x25_19.c
lib/dns/rdata/generic/x25_19.c
+2
-2
lib/dns/rdata/hs_4/a_1.c
lib/dns/rdata/hs_4/a_1.c
+2
-2
lib/dns/rdata/in_1/a6_38.c
lib/dns/rdata/in_1/a6_38.c
+2
-2
lib/dns/rdata/in_1/a_1.c
lib/dns/rdata/in_1/a_1.c
+2
-2
lib/dns/rdata/in_1/aaaa_28.c
lib/dns/rdata/in_1/aaaa_28.c
+2
-2
lib/dns/rdata/in_1/apl_42.c
lib/dns/rdata/in_1/apl_42.c
+2
-2
lib/dns/rdata/in_1/dhcid_49.c
lib/dns/rdata/in_1/dhcid_49.c
+3
-3
lib/dns/rdata/in_1/kx_36.c
lib/dns/rdata/in_1/kx_36.c
+4
-4
lib/dns/rdata/in_1/nsap-ptr_23.c
lib/dns/rdata/in_1/nsap-ptr_23.c
+5
-5
lib/dns/rdata/in_1/nsap_22.c
lib/dns/rdata/in_1/nsap_22.c
+2
-2
lib/dns/rdata/in_1/px_26.c
lib/dns/rdata/in_1/px_26.c
+4
-4
lib/dns/rdata/in_1/srv_33.c
lib/dns/rdata/in_1/srv_33.c
+4
-4
lib/dns/zone.c
lib/dns/zone.c
+2
-2
No files found.
bin/check/named-checkzone.c
View file @
4b6dc226
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: named-checkzone.c,v 1.5
8 2009/12/04 21:09:32 marka
Exp $ */
/* $Id: named-checkzone.c,v 1.5
9 2009/12/04 22:06:37 tbox
Exp $ */
/*! \file */
...
...
@@ -148,7 +148,7 @@ main(int argc, char **argv) {
DNS_ZONEOPT_CHECKNAMES
|
DNS_ZONEOPT_CHECKNAMESFAIL
|
DNS_ZONEOPT_CHECKWILDCARD
);
}
else
}
else
zone_options
|=
DNS_ZONEOPT_CHECKDUPRR
;
#define ARGCMP(X) (strcmp(isc_commandline_argument, X) == 0)
...
...
bin/dnssec/dnssec-signzone.c
View file @
4b6dc226
...
...
@@ -29,7 +29,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signzone.c,v 1.25
7 2009/12/04 21:09:32 marka
Exp $ */
/* $Id: dnssec-signzone.c,v 1.25
8 2009/12/04 22:06:37 tbox
Exp $ */
/*! \file */
...
...
@@ -2353,29 +2353,29 @@ rrset_remove_duplicates(dns_name_t *name, dns_rdataset_t *rdataset,
dns_diff_t
*
diff
)
{
dns_difftuple_t
*
tuple
=
NULL
;
isc_result_t
result
;
unsigned
int
count1
=
0
;
isc_result_t
result
;
unsigned
int
count1
=
0
;
dns_rdataset_t
tmprdataset
;
dns_rdataset_init
(
&
tmprdataset
);
for
(
result
=
dns_rdataset_first
(
rdataset
);
result
==
ISC_R_SUCCESS
;
result
=
dns_rdataset_next
(
rdataset
))
{
dns_rdata_t
rdata1
=
DNS_RDATA_INIT
;
unsigned
int
count2
=
0
;
count1
++
;
dns_rdataset_current
(
rdataset
,
&
rdata1
);
dns_rdataset_clone
(
rdataset
,
&
tmprdataset
);
for
(
result
=
dns_rdataset_first
(
&
tmprdataset
);
result
==
ISC_R_SUCCESS
;
result
=
dns_rdataset_next
(
&
tmprdataset
))
{
dns_rdata_t
rdata2
=
DNS_RDATA_INIT
;
count2
++
;
if
(
count1
>=
count2
)
continue
;
dns_rdataset_current
(
&
tmprdataset
,
&
rdata2
);
if
(
dns_rdata_casecompare
(
&
rdata1
,
&
rdata2
)
==
0
)
{
dns_rdataset_init
(
&
tmprdataset
);
for
(
result
=
dns_rdataset_first
(
rdataset
);
result
==
ISC_R_SUCCESS
;
result
=
dns_rdataset_next
(
rdataset
))
{
dns_rdata_t
rdata1
=
DNS_RDATA_INIT
;
unsigned
int
count2
=
0
;
count1
++
;
dns_rdataset_current
(
rdataset
,
&
rdata1
);
dns_rdataset_clone
(
rdataset
,
&
tmprdataset
);
for
(
result
=
dns_rdataset_first
(
&
tmprdataset
);
result
==
ISC_R_SUCCESS
;
result
=
dns_rdataset_next
(
&
tmprdataset
))
{
dns_rdata_t
rdata2
=
DNS_RDATA_INIT
;
count2
++
;
if
(
count1
>=
count2
)
continue
;
dns_rdataset_current
(
&
tmprdataset
,
&
rdata2
);
if
(
dns_rdata_casecompare
(
&
rdata1
,
&
rdata2
)
==
0
)
{
result
=
dns_difftuple_create
(
mctx
,
DNS_DIFFOP_DEL
,
name
,
...
...
@@ -2383,10 +2383,10 @@ rrset_remove_duplicates(dns_name_t *name, dns_rdataset_t *rdataset,
&
rdata2
,
&
tuple
);
check_result
(
result
,
"dns_difftuple_create"
);
dns_diff_append
(
diff
,
&
tuple
);
}
}
dns_rdataset_disassociate
(
&
tmprdataset
);
}
}
}
dns_rdataset_disassociate
(
&
tmprdataset
);
}
}
static
void
...
...
@@ -2399,7 +2399,7 @@ remove_duplicates(void) {
dns_rdataset_t
rdataset
;
dns_fixedname_t
fname
;
dns_name_t
*
name
;
dns_diff_init
(
mctx
,
&
diff
);
dns_fixedname_init
(
&
fname
);
name
=
dns_fixedname_name
(
&
fname
);
...
...
bin/tests/system/zonechecks/tests.sh
View file @
4b6dc226
#!/bin/sh
#
# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2004, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
...
...
@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.
5 2009/12/04 03:33:15 marka
Exp $
# $Id: tests.sh,v 1.
6 2009/12/04 22:06:37 tbox
Exp $
SYSTEMTESTTOP
=
..
.
$SYSTEMTESTTOP
/conf.sh
...
...
lib/dns/gen.c
View file @
4b6dc226
/*
* Copyright (C) 2004-200
8
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-200
9
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: gen.c,v 1.8
4 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: gen.c,v 1.8
5 2009/12/04 22:06:37 tbox
Exp $ */
/*! \file */
...
...
lib/dns/include/dns/zone.h
View file @
4b6dc226
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.h,v 1.17
3 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: zone.h,v 1.17
4 2009/12/04 22:06:37 tbox
Exp $ */
#ifndef DNS_ZONE_H
#define DNS_ZONE_H 1
...
...
@@ -1786,7 +1786,7 @@ dns_zone_rekey(dns_zone_t *zone);
isc_result_t
dns_zone_nscheck
(
dns_zone_t
*
zone
,
dns_db_t
*
db
,
dns_dbversion_t
*
version
,
unsigned
int
*
errors
);
unsigned
int
*
errors
);
/*%
* Check if the name servers for the zone are sane (have address, don't
* refer to CNAMEs/DNAMEs. The number of constiancy errors detected in
...
...
lib/dns/rdata/any_255/tsig_250.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tsig_250.c,v 1.6
4 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: tsig_250.c,v 1.6
5 2009/12/04 22:06:37 tbox
Exp $ */
/* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
...
...
lib/dns/rdata/ch_3/a_1.c
View file @
4b6dc226
/*
* Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
...
...
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: a_1.c,v 1.
7 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: a_1.c,v 1.
8 2009/12/04 22:06:37 tbox
Exp $ */
/* by Bjorn.Victor@it.uu.se, 2005-05-07 */
/* Based on generic/soa_6.c and generic/mx_15.c */
...
...
@@ -107,7 +107,7 @@ fromwire_ch_a(ARGS_FROMWIRE) {
dns_decompress_setmethods
(
dctx
,
DNS_COMPRESS_GLOBAL14
);
dns_name_init
(
&
name
,
NULL
);
RETERR
(
dns_name_fromwire
(
&
name
,
source
,
dctx
,
options
,
target
));
isc_buffer_activeregion
(
source
,
&
sregion
);
...
...
@@ -205,7 +205,7 @@ fromstruct_ch_a(ARGS_FROMSTRUCT) {
dns_name_toregion
(
&
a
->
ch_addr_dom
,
&
region
);
RETERR
(
isc_buffer_copyregion
(
target
,
&
region
));
return
(
uint16_tobuffer
(
ntohs
(
a
->
ch_addr
),
target
));
}
...
...
lib/dns/rdata/generic/afsdb_18.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001, 2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: afsdb_18.c,v 1.4
8 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: afsdb_18.c,v 1.4
9 2009/12/04 22:06:37 tbox
Exp $ */
/* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */
...
...
lib/dns/rdata/generic/cert_37.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: cert_37.c,v 1.5
1 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: cert_37.c,v 1.5
2 2009/12/04 22:06:37 tbox
Exp $ */
/* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */
...
...
lib/dns/rdata/generic/cname_5.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: cname_5.c,v 1.4
8 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: cname_5.c,v 1.4
9 2009/12/04 22:06:37 tbox
Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
...
...
lib/dns/rdata/generic/dlv_32769.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
...
...
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dlv_32769.c,v 1.
7 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: dlv_32769.c,v 1.
8 2009/12/04 22:06:37 tbox
Exp $ */
/* draft-ietf-dnsext-delegation-signer-05.txt */
...
...
@@ -144,7 +144,7 @@ fromwire_dlv(ARGS_FROMWIRE) {
UNUSED
(
options
);
isc_buffer_activeregion
(
source
,
&
sr
);
/*
* Check digest lengths if we know them.
*/
...
...
@@ -164,7 +164,7 @@ fromwire_dlv(ARGS_FROMWIRE) {
sr
.
length
=
4
+
ISC_SHA1_DIGESTLENGTH
;
else
if
(
sr
.
base
[
3
]
==
DNS_DSDIGEST_SHA256
)
sr
.
length
=
4
+
ISC_SHA256_DIGESTLENGTH
;
isc_buffer_forward
(
source
,
sr
.
length
);
return
(
mem_tobuffer
(
target
,
sr
.
base
,
sr
.
length
));
}
...
...
lib/dns/rdata/generic/dname_39.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dname_39.c,v 1.
39 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: dname_39.c,v 1.
40 2009/12/04 22:06:37 tbox
Exp $ */
/* Reviewed: Wed Mar 15 16:52:38 PST 2000 by explorer */
...
...
lib/dns/rdata/generic/dnskey_48.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnskey_48.c,v 1.
9 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: dnskey_48.c,v 1.
10 2009/12/04 22:06:37 tbox
Exp $ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
...
...
@@ -339,7 +339,7 @@ checknames_dnskey(ARGS_CHECKNAMES) {
static
inline
int
casecompare_dnskey
(
ARGS_COMPARE
)
{
/*
* Treat ALG 253 (private DNS) subtype name case sensistively.
*/
...
...
lib/dns/rdata/generic/ds_43.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ds_43.c,v 1.1
3 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: ds_43.c,v 1.1
4 2009/12/04 22:06:37 tbox
Exp $ */
/* draft-ietf-dnsext-delegation-signer-05.txt */
...
...
lib/dns/rdata/generic/gpos_27.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: gpos_27.c,v 1.4
2 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: gpos_27.c,v 1.4
3 2009/12/04 22:06:37 tbox
Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
...
...
lib/dns/rdata/generic/hinfo_13.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: hinfo_13.c,v 1.4
5 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: hinfo_13.c,v 1.4
6 2009/12/04 22:06:37 tbox
Exp $ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
...
...
lib/dns/rdata/generic/hip_55.c
View file @
4b6dc226
...
...
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: hip_55.c,v 1.
5 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: hip_55.c,v 1.
6 2009/12/04 22:06:37 tbox
Exp $ */
/* reviewed: TBC */
...
...
@@ -451,49 +451,49 @@ dns_rdata_hip_current(dns_rdata_hip_t *hip, dns_name_t *name) {
static
inline
int
casecompare_hip
(
ARGS_COMPARE
)
{
isc_region_t
r1
;
isc_region_t
r2
;
dns_name_t
name1
;
dns_name_t
name2
;
int
order
;
isc_region_t
r1
;
isc_region_t
r2
;
dns_name_t
name1
;
dns_name_t
name2
;
int
order
;
isc_uint8_t
hit_len
;
isc_uint16_t
key_len
;
REQUIRE
(
rdata1
->
type
==
rdata2
->
type
);
REQUIRE
(
rdata1
->
rdclass
==
rdata2
->
rdclass
);
REQUIRE
(
rdata1
->
type
==
55
);
REQUIRE
(
rdata1
->
length
!=
0
);
REQUIRE
(
rdata2
->
length
!=
0
);
dns_rdata_toregion
(
rdata1
,
&
r1
);
dns_rdata_toregion
(
rdata2
,
&
r2
);
INSIST
(
r1
.
length
>
4
);
INSIST
(
r2
.
length
>
4
);
r1
.
length
=
4
;
r2
.
length
=
4
;
order
=
isc_region_compare
(
&
r1
,
&
r2
);
if
(
order
!=
0
)
return
(
order
);
hit_len
=
uint8_fromregion
(
&
r1
);
isc_region_consume
(
&
r1
,
2
);
/* hit length + algorithm */
key_len
=
uint16_fromregion
(
&
r1
);
dns_rdata_toregion
(
rdata1
,
&
r1
);
dns_rdata_toregion
(
rdata2
,
&
r2
);
isc_region_consume
(
&
r1
,
4
);
isc_region_consume
(
&
r2
,
4
);
INSIST
(
r1
.
length
>=
(
unsigned
)
(
hit_len
+
key_len
));
INSIST
(
r2
.
length
>=
(
unsigned
)
(
hit_len
+
key_len
));
order
=
isc_region_compare
(
&
r1
,
&
r2
);
if
(
order
!=
0
)
return
(
order
);
isc_region_consume
(
&
r1
,
hit_len
+
key_len
);
isc_region_consume
(
&
r2
,
hit_len
+
key_len
);
dns_name_init
(
&
name1
,
NULL
);
dns_name_init
(
&
name2
,
NULL
);
REQUIRE
(
rdata1
->
type
==
rdata2
->
type
);
REQUIRE
(
rdata1
->
rdclass
==
rdata2
->
rdclass
);
REQUIRE
(
rdata1
->
type
==
55
);
REQUIRE
(
rdata1
->
length
!=
0
);
REQUIRE
(
rdata2
->
length
!=
0
);
dns_rdata_toregion
(
rdata1
,
&
r1
);
dns_rdata_toregion
(
rdata2
,
&
r2
);
INSIST
(
r1
.
length
>
4
);
INSIST
(
r2
.
length
>
4
);
r1
.
length
=
4
;
r2
.
length
=
4
;
order
=
isc_region_compare
(
&
r1
,
&
r2
);
if
(
order
!=
0
)
return
(
order
);
hit_len
=
uint8_fromregion
(
&
r1
);
isc_region_consume
(
&
r1
,
2
);
/* hit length + algorithm */
key_len
=
uint16_fromregion
(
&
r1
);
dns_rdata_toregion
(
rdata1
,
&
r1
);
dns_rdata_toregion
(
rdata2
,
&
r2
);
isc_region_consume
(
&
r1
,
4
);
isc_region_consume
(
&
r2
,
4
);
INSIST
(
r1
.
length
>=
(
unsigned
)
(
hit_len
+
key_len
));
INSIST
(
r2
.
length
>=
(
unsigned
)
(
hit_len
+
key_len
));
order
=
isc_region_compare
(
&
r1
,
&
r2
);
if
(
order
!=
0
)
return
(
order
);
isc_region_consume
(
&
r1
,
hit_len
+
key_len
);
isc_region_consume
(
&
r2
,
hit_len
+
key_len
);
dns_name_init
(
&
name1
,
NULL
);
dns_name_init
(
&
name2
,
NULL
);
while
(
r1
.
length
!=
0
&&
r2
.
length
!=
0
)
{
dns_name_fromregion
(
&
name1
,
&
r1
);
dns_name_fromregion
(
&
name2
,
&
r2
);
...
...
@@ -504,7 +504,7 @@ casecompare_hip(ARGS_COMPARE) {
isc_region_consume
(
&
r1
,
name_length
(
&
name1
));
isc_region_consume
(
&
r2
,
name_length
(
&
name2
));
}
return
(
isc_region_compare
(
&
r1
,
&
r2
));
return
(
isc_region_compare
(
&
r1
,
&
r2
));
}
#endif
/* RDATA_GENERIC_HIP_5_C */
lib/dns/rdata/generic/ipseckey_45.c
View file @
4b6dc226
...
...
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ipseckey_45.c,v 1.
8 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: ipseckey_45.c,v 1.
9 2009/12/04 22:06:37 tbox
Exp $ */
#ifndef RDATA_GENERIC_IPSECKEY_45_C
#define RDATA_GENERIC_IPSECKEY_45_C
...
...
@@ -480,14 +480,14 @@ casecompare_ipseckey(ARGS_COMPARE) {
if
(
memcmp
(
region1
.
base
,
region2
.
base
,
3
)
!=
0
||
region1
.
base
[
1
]
!=
3
)
return
(
isc_region_compare
(
&
region1
,
&
region2
));
dns_name_init
(
&
name1
,
NULL
);
dns_name_init
(
&
name2
,
NULL
);
dns_name_init
(
&
name1
,
NULL
);
dns_name_init
(
&
name2
,
NULL
);
isc_region_consume
(
&
region1
,
3
);
isc_region_consume
(
&
region2
,
3
);
dns_name_fromregion
(
&
name1
,
&
region1
);
dns_name_fromregion
(
&
name2
,
&
region2
);
isc_region_consume
(
&
region1
,
3
);
isc_region_consume
(
&
region2
,
3
);
dns_name_fromregion
(
&
name1
,
&
region1
);
dns_name_fromregion
(
&
name2
,
&
region2
);
order
=
dns_name_rdatacompare
(
&
name1
,
&
name2
);
if
(
order
!=
0
)
...
...
lib/dns/rdata/generic/isdn_20.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: isdn_20.c,v 1.
39 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: isdn_20.c,v 1.
40 2009/12/04 22:06:37 tbox
Exp $ */
/* Reviewed: Wed Mar 15 16:53:11 PST 2000 by bwelling */
...
...
lib/dns/rdata/generic/key_25.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: key_25.c,v 1.5
2 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: key_25.c,v 1.5
3 2009/12/04 22:06:37 tbox
Exp $ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
...
...
@@ -114,7 +114,7 @@ totext_key(ARGS_TOTEXT) {
dns_name_format
(
&
name
,
namebuf
,
sizeof
(
namebuf
));
}
else
namebuf
[
0
]
=
0
;
/* key */
if
((
tctx
->
flags
&
DNS_STYLEFLAG_MULTILINE
)
!=
0
)
RETERR
(
str_totext
(
" ("
,
target
));
...
...
lib/dns/rdata/generic/mb_7.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mb_7.c,v 1.4
6 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: mb_7.c,v 1.4
7 2009/12/04 22:06:37 tbox
Exp $ */
/* Reviewed: Wed Mar 15 17:31:26 PST 2000 by bwelling */
...
...
@@ -69,7 +69,7 @@ totext_mb(ARGS_TOTEXT) {
static
inline
isc_result_t
fromwire_mb
(
ARGS_FROMWIRE
)
{
dns_name_t
name
;
dns_name_t
name
;
REQUIRE
(
type
==
7
);
...
...
@@ -78,8 +78,8 @@ fromwire_mb(ARGS_FROMWIRE) {
dns_decompress_setmethods
(
dctx
,
DNS_COMPRESS_GLOBAL14
);
dns_name_init
(
&
name
,
NULL
);
return
(
dns_name_fromwire
(
&
name
,
source
,
dctx
,
options
,
target
));
dns_name_init
(
&
name
,
NULL
);
return
(
dns_name_fromwire
(
&
name
,
source
,
dctx
,
options
,
target
));
}
static
inline
isc_result_t
...
...
lib/dns/rdata/generic/md_3.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: md_3.c,v 1.4
8 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: md_3.c,v 1.4
9 2009/12/04 22:06:37 tbox
Exp $ */
/* Reviewed: Wed Mar 15 17:48:20 PST 2000 by bwelling */
...
...
@@ -69,7 +69,7 @@ totext_md(ARGS_TOTEXT) {
static
inline
isc_result_t
fromwire_md
(
ARGS_FROMWIRE
)
{
dns_name_t
name
;
dns_name_t
name
;
REQUIRE
(
type
==
3
);
...
...
@@ -78,8 +78,8 @@ fromwire_md(ARGS_FROMWIRE) {
dns_decompress_setmethods
(
dctx
,
DNS_COMPRESS_GLOBAL14
);
dns_name_init
(
&
name
,
NULL
);
return
(
dns_name_fromwire
(
&
name
,
source
,
dctx
,
options
,
target
));
dns_name_init
(
&
name
,
NULL
);
return
(
dns_name_fromwire
(
&
name
,
source
,
dctx
,
options
,
target
));
}
static
inline
isc_result_t
...
...
lib/dns/rdata/generic/mf_4.c
View file @
4b6dc226
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2007
, 2009
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mf_4.c,v 1.4
6 2009/12/04 21:09:33 marka
Exp $ */
/* $Id: mf_4.c,v 1.4
7 2009/12/04 22:06:37 tbox
Exp $ */