Skip to content

Commit 05165f4

Browse files
committed
Changing DELEG to IDELEG and setting new hash matrix
1 parent 20d34ba commit 05165f4

File tree

3 files changed

+43
-5
lines changed

3 files changed

+43
-5
lines changed

include/zone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ extern "C" {
206206
#define ZONE_TYPE_TA (32768u)
207207
/** DNSSEC Lookaside Validation @rfc{4431} @obsolete */
208208
#define ZONE_TYPE_DLV (32769u)
209-
#ifdef USE_DELEG
209+
#ifdef USE_DRAFTS
210210
/** DELEG IETF draft */
211211
#define ZONE_TYPE_DELEG (65280u)
212212
#endif

src/generic/types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,7 @@ static int32_t parse_https_rdata(
21892189
return accept_rr(parser, type, rdata);
21902190
}
21912191

2192-
#ifdef USE_DELEG
2192+
#ifdef USE_DRAFTS
21932193
nonnull_all
21942194
static int32_t check_deleg_rr(
21952195
parser_t *parser, const type_info_t *type, const rdata_t *rdata)
@@ -3335,10 +3335,10 @@ static const type_info_t types[] = {
33353335
/* Map 32769 in hash.c to 266 */
33363336
TYPE("DLV", ZONE_TYPE_DLV, ZONE_CLASS_ANY, FIELDS(dlv_rdata_fields), // obsolete
33373337
check_ds_rr, parse_ds_rdata)
3338-
#ifdef USE_DELEG
3338+
#ifdef USE_DRAFTS
33393339
,
33403340
/* Map 32770 in hash.c to 267 */
3341-
TYPE("DELEG", ZONE_TYPE_DELEG, ZONE_CLASS_IN, FIELDS(deleg_rdata_fields),
3341+
TYPE("IDELEG", ZONE_TYPE_DELEG, ZONE_CLASS_IN, FIELDS(deleg_rdata_fields),
33423342
check_deleg_rr, parse_deleg_rdata)
33433343
#endif
33443344

src/westmere/type.h

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
static const struct {
1818
const mnemonic_t *mnemonic;
1919
int32_t code;
20-
} types_and_classes[256] = {
20+
} types_and_classes[256] =
21+
#ifndef USE_DRAFTS
22+
{
2123
V(0), V(0), V(0), V(0), V(0), V(0), V(0), T(20),
2224
T(3), V(0), V(0), V(0), V(0), T(261), V(0), V(0),
2325
T(60), V(0), V(0), T(105), V(0), V(0), V(0), T(258),
@@ -51,6 +53,42 @@ static const struct {
5153
V(0), T(109), V(0), V(0), V(0), V(0), V(0), V(0),
5254
V(0), V(0), V(0), V(0), T(262), V(0), T(256), V(0)
5355
};
56+
#else
57+
{
58+
V(0), V(0), V(0), V(0), V(0), V(0), V(0), T(20),
59+
T(3), V(0), V(0), V(0), V(0), T(261), V(0), T(267),
60+
T(60), V(0), V(0), T(105), V(0), V(0), V(0), T(258),
61+
V(0), V(0), V(0), V(0), T(30), V(0), T(28), V(0),
62+
V(0), T(16), V(0), V(0), T(56), T(14), T(22), V(0),
63+
V(0), T(13), V(0), T(47), T(21), V(0), T(65), T(27),
64+
V(0), V(0), V(0), V(0), V(0), T(1), T(62), V(0),
65+
V(0), C(1), V(0), T(44), V(0), V(0), T(33), V(0),
66+
V(0), V(0), V(0), V(0), T(63), V(0), T(266), V(0),
67+
C(3), T(99), T(37), V(0), V(0), V(0), C(2), T(43),
68+
V(0), T(50), C(4), T(51), V(0), V(0), V(0), T(2),
69+
T(49), T(42), T(19), T(23), V(0), T(6), V(0), V(0),
70+
V(0), V(0), T(29), V(0), T(7), V(0), V(0), V(0),
71+
V(0), T(57), V(0), V(0), V(0), V(0), V(0), T(36),
72+
T(15), V(0), V(0), T(26), T(11), V(0), V(0), V(0),
73+
V(0), V(0), V(0), V(0), T(104), V(0), T(8), V(0),
74+
V(0), V(0), T(38), V(0), T(9), V(0), T(64), V(0),
75+
V(0), V(0), V(0), V(0), V(0), V(0), T(39), T(52),
76+
T(24), V(0), T(5), T(106), V(0), V(0), V(0), V(0),
77+
T(265), V(0), V(0), V(0), V(0), T(25), V(0), T(18),
78+
T(48), V(0), T(53), V(0), V(0), V(0), T(59), V(0),
79+
V(0), V(0), V(0), V(0), T(4), V(0), T(10), V(0),
80+
V(0), V(0), V(0), V(0), V(0), T(55), V(0), V(0),
81+
V(0), V(0), V(0), V(0), V(0), V(0), V(0), V(0),
82+
V(0), V(0), V(0), V(0), V(0), V(0), V(0), V(0),
83+
V(0), V(0), T(61), T(12), V(0), V(0), V(0), V(0),
84+
V(0), T(108), V(0), V(0), T(257), V(0), V(0), V(0),
85+
T(35), V(0), T(263), V(0), V(0), V(0), V(0), T(107),
86+
V(0), V(0), V(0), V(0), T(17), V(0), T(45), V(0),
87+
V(0), V(0), V(0), V(0), V(0), V(0), T(46), V(0),
88+
V(0), T(109), V(0), V(0), V(0), V(0), V(0), V(0),
89+
V(0), V(0), V(0), V(0), T(262), V(0), T(256), V(0)
90+
};
91+
#endif
5492

5593
#undef V
5694
#undef T

0 commit comments

Comments
 (0)