~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to bin/tests/rdata_test.c

  • 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, 2005  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1998-2003  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: rdata_test.c,v 1.35.12.9 2005/03/17 03:58:28 marka Exp $ */
 
18
/* $Id: rdata_test.c,v 1.48 2007/06/19 23:46:59 tbox Exp $ */
19
19
 
20
20
#include <config.h>
21
21
 
269
269
                result = dns_rdata_tostruct(rdata, sp = &txt, NULL);
270
270
                break;
271
271
        }
 
272
        case dns_rdatatype_spf: {
 
273
                dns_rdata_spf_t spf;
 
274
                result = dns_rdata_tostruct(rdata, sp = &spf, NULL);
 
275
                break;
 
276
        }
272
277
        case dns_rdatatype_unspec: {
273
278
                dns_rdata_unspec_t unspec;
274
279
                result = dns_rdata_tostruct(rdata, sp = &unspec, NULL);
304
309
                break;
305
310
        }
306
311
        if (result != ISC_R_SUCCESS)
307
 
                fprintf(stdout, "viastruct: tostuct %d %d return %s\n",
 
312
                fprintf(stdout, "viastruct: tostruct %d %d return %s\n",
308
313
                        rdata->type, rdata->rdclass,
309
314
                        dns_result_totext(result));
310
315
        else
526
531
                result = dns_rdata_tostruct(rdata, sp = &txt, mctx);
527
532
                break;
528
533
        }
 
534
        case dns_rdatatype_spf: {
 
535
                dns_rdata_spf_t spf;
 
536
                result = dns_rdata_tostruct(rdata, sp = &spf, mctx);
 
537
                break;
 
538
        }
529
539
        case dns_rdatatype_unspec: {
530
540
                dns_rdata_unspec_t unspec;
531
541
                result = dns_rdata_tostruct(rdata, sp = &unspec, mctx);
561
571
                break;
562
572
        }
563
573
        if (result != ISC_R_SUCCESS)
564
 
                fprintf(stdout, "viastruct: tostuct %d %d return %s\n",
 
574
                fprintf(stdout, "viastruct: tostruct %d %d return %s\n",
565
575
                        rdata->type, rdata->rdclass,
566
576
                        dns_result_totext(result));
567
577
        else {
572
582
                result = dns_rdata_fromstruct(rdata2, rdc, rdt, sp, b);
573
583
                if (result != ISC_R_SUCCESS)
574
584
                        fprintf(stdout,
575
 
                                "viastruct: fromstuct %d %d return %s\n",
 
585
                                "viastruct: fromstruct %d %d return %s\n",
576
586
                                rdata->type, rdata->rdclass,
577
587
                                dns_result_totext(result));
578
588
                else if (rdata->length != rdata2->length ||
813
823
                result = dns_rdata_fromstruct(rdata2, rdc, rdt, &txt, b);
814
824
                break;
815
825
        }
 
826
        case dns_rdatatype_spf: {
 
827
                dns_rdata_spf_t spf;
 
828
                result = dns_rdata_fromstruct(rdata2, rdc, rdt, &spf, b);
 
829
                break;
 
830
        }
816
831
        case dns_rdatatype_unspec: {
817
832
                dns_rdata_unspec_t unspec;
818
833
                result = dns_rdata_fromstruct(rdata2, rdc, rdt, &unspec, b);