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

« back to all changes in this revision

Viewing changes to lib/dns/rdata/in_1/nsap_22.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-04-19 10:21:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050419102158-kp20cp1bqf4ivpzy
Tags: 1:9.3.1-2ubuntu1
resync with debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
3
 
 * Copyright (C) 1999-2001  Internet Software Consortium.
 
3
 * Copyright (C) 1999-2002  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and distribute this software for any
6
6
 * purpose with or without fee is hereby granted, provided that the above
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: nsap_22.c,v 1.33.2.1 2004/03/09 06:11:38 marka Exp $ */
 
18
/* $Id: nsap_22.c,v 1.33.12.5 2004/03/08 09:04:44 marka Exp $ */
19
19
 
20
20
/* Reviewed: Fri Mar 17 10:41:07 PST 2000 by gson */
21
21
 
39
39
 
40
40
        UNUSED(type);
41
41
        UNUSED(origin);
42
 
        UNUSED(downcase);
 
42
        UNUSED(options);
43
43
        UNUSED(rdclass);
44
44
        UNUSED(callbacks);
45
45
 
77
77
static inline isc_result_t
78
78
totext_in_nsap(ARGS_TOTEXT) {
79
79
        isc_region_t region;
80
 
        char buf[sizeof "xx"];
 
80
        char buf[sizeof("xx")];
81
81
 
82
82
        REQUIRE(rdata->type == 22);
83
83
        REQUIRE(rdata->rdclass == 1);
104
104
 
105
105
        UNUSED(type);
106
106
        UNUSED(dctx);
107
 
        UNUSED(downcase);
 
107
        UNUSED(options);
108
108
        UNUSED(rdclass);
109
109
 
110
110
        isc_buffer_activeregion(source, &region);
141
141
 
142
142
        dns_rdata_toregion(rdata1, &r1);
143
143
        dns_rdata_toregion(rdata2, &r2);
144
 
        return (compare_region(&r1, &r2));
 
144
        return (isc_region_compare(&r1, &r2));
145
145
}
146
146
 
147
147
static inline isc_result_t
225
225
        return ((digest)(arg, &r));
226
226
}
227
227
 
 
228
static inline isc_boolean_t
 
229
checkowner_in_nsap(ARGS_CHECKOWNER) {
 
230
 
 
231
        REQUIRE(type == 22);
 
232
        REQUIRE(rdclass == 1);
 
233
 
 
234
        UNUSED(name);
 
235
        UNUSED(type);
 
236
        UNUSED(rdclass);
 
237
        UNUSED(wildcard);
 
238
 
 
239
        return (ISC_TRUE);
 
240
}
 
241
 
 
242
static inline isc_boolean_t
 
243
checknames_in_nsap(ARGS_CHECKNAMES) {
 
244
 
 
245
        REQUIRE(rdata->type == 22);
 
246
        REQUIRE(rdata->rdclass == 1);
 
247
 
 
248
        UNUSED(rdata);
 
249
        UNUSED(owner);
 
250
        UNUSED(bad);
 
251
 
 
252
        return (ISC_TRUE);
 
253
}
 
254
 
228
255
#endif  /* RDATA_IN_1_NSAP_22_C */