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

« back to all changes in this revision

Viewing changes to lib/bind/nameser/ns_print.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:
16
16
 */
17
17
 
18
18
#ifndef lint
19
 
static const char rcsid[] = "$Id: ns_print.c,v 1.3.2.1.4.7 2004/09/16 07:01:12 marka Exp $";
 
19
static const char rcsid[] = "$Id: ns_print.c,v 1.10 2005/04/27 04:56:40 sra Exp $";
20
20
#endif
21
21
 
22
22
/* Import. */
69
69
 
70
70
/* Public. */
71
71
 
72
 
/*
73
 
 * int
74
 
 * ns_sprintrr(handle, rr, name_ctx, origin, buf, buflen)
 
72
/*%
75
73
 *      Convert an RR to presentation format.
 
74
 *
76
75
 * return:
77
 
 *      Number of characters written to buf, or -1 (check errno).
 
76
 *\li   Number of characters written to buf, or -1 (check errno).
78
77
 */
79
78
int
80
79
ns_sprintrr(const ns_msg *handle, const ns_rr *rr,
90
89
        return (n);
91
90
}
92
91
 
93
 
/*
94
 
 * int
95
 
 * ns_sprintrrf(msg, msglen, name, class, type, ttl, rdata, rdlen,
96
 
 *             name_ctx, origin, buf, buflen)
 
92
/*%
97
93
 *      Convert the fields of an RR into presentation format.
 
94
 *
98
95
 * return:
99
 
 *      Number of characters written to buf, or -1 (check errno).
 
96
 *\li   Number of characters written to buf, or -1 (check errno).
100
97
 */
101
98
int
102
99
ns_sprintrrf(const u_char *msg, size_t msglen,
645
642
 
646
643
                T(len = addname(msg, msglen, &rdata, origin, &buf, &buflen));
647
644
                T(addstr(" ", 1, &buf, &buflen));
648
 
                rdata += 8; /* time */
 
645
                rdata += 8; /*%< time */
649
646
                n = ns_get16(rdata); rdata += INT16SZ;
650
 
                rdata += n; /* sig */
651
 
                n = ns_get16(rdata); rdata += INT16SZ; /* original id */
 
647
                rdata += n; /*%< sig */
 
648
                n = ns_get16(rdata); rdata += INT16SZ; /*%< original id */
652
649
                sprintf(buf, "%d", ns_get16(rdata));
653
650
                rdata += INT16SZ;
654
651
                addlen(strlen(buf), &buf, &buflen);
735
732
 
736
733
/* Private. */
737
734
 
738
 
/*
 
735
/*%
739
736
 * size_t
740
737
 * prune_origin(name, origin)
741
738
 *      Find out if the name is at or under the current origin.
768
765
        return (name - oname);
769
766
}
770
767
 
771
 
/*
 
768
/*%
772
769
 * int
773
770
 * charstr(rdata, edata, buf, buflen)
774
771
 *      Format a <character-string> into the presentation buffer.
824
821
 
825
822
        n = dn_expand(msg, msg + msglen, *pp, *buf, *buflen);
826
823
        if (n < 0)
827
 
                goto enospc;    /* Guess. */
 
824
                goto enospc;    /*%< Guess. */
828
825
        newlen = prune_origin(*buf, origin);
829
826
        if (**buf == '\0') {
830
827
                goto root;
896
893
        }
897
894
        return (spaced);
898
895
}
 
896
 
 
897
/*! \file */