mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
474. [bug] The mnemonic of the CHAOS class is CH according to
RFC1035, but it was printed and read only as CHAOS. We now accept both forms as input, and print it as CH.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.107 2000/09/06 03:25:22 marka Exp $ */
|
||||
/* $Id: rdata.c,v 1.108 2000/09/19 01:27:22 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
#include <ctype.h>
|
||||
@@ -950,6 +950,12 @@ dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source) {
|
||||
COMPARE("any", META, dns_rdataclass_any);
|
||||
break;
|
||||
case 'c':
|
||||
/*
|
||||
* RFC1035 says the mnemonic for the CHAOS class is CH,
|
||||
* but historical BIND practice is to call it CHAOS.
|
||||
* We will accept both forms, but only generate CH.
|
||||
*/
|
||||
COMPARE("ch", 0, dns_rdataclass_chaos);
|
||||
COMPARE("chaos", 0, dns_rdataclass_chaos);
|
||||
break;
|
||||
case 'h':
|
||||
@@ -979,7 +985,7 @@ dns_rdataclass_totext(dns_rdataclass_t rdclass, isc_buffer_t *target) {
|
||||
case dns_rdataclass_any:
|
||||
return (str_totext("ANY", target));
|
||||
case dns_rdataclass_chaos:
|
||||
return (str_totext("CHAOS", target));
|
||||
return (str_totext("CH", target));
|
||||
case dns_rdataclass_hs:
|
||||
return (str_totext("HS", target));
|
||||
case dns_rdataclass_in:
|
||||
|
Reference in New Issue
Block a user