[svn] commit: r1080 - /trunk/src/lib/dns/cpp/tests/testdata/gen-wiredata.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Mar 2 23:29:56 UTC 2010


Author: jinmei
Date: Tue Mar  2 23:29:56 2010
New Revision: 1080

Log:
RRSIG format fix

Modified:
    trunk/src/lib/dns/cpp/tests/testdata/gen-wiredata.py.in

Modified: trunk/src/lib/dns/cpp/tests/testdata/gen-wiredata.py.in
==============================================================================
--- trunk/src/lib/dns/cpp/tests/testdata/gen-wiredata.py.in (original)
+++ trunk/src/lib/dns/cpp/tests/testdata/gen-wiredata.py.in Tue Mar  2 23:29:56 2010
@@ -165,6 +165,7 @@
 
 class RRSIG:
     rdlen = -1                  # auto-calculate
+    covered = 1                 # A
     algorithm = 5               # RSA-SHA1
     labels = -1                 # auto-calculate (#labels of signer)
     originalttl = 3600
@@ -186,15 +187,17 @@
             labels = count_namelabels(self.signer)
         f.write('\n# RRSIG RDATA (RDLEN=%d)\n' % rdlen)
         f.write('%04x\n' % rdlen);
-        f.write('# Algorithm=%s Labels=%d OrigTTL=%d\n' %
-                (code_totext(self.algorithm, rdict_algorithm), labels,
+        f.write('# Covered=%s Algorithm=%s Labels=%d OrigTTL=%d\n' %
+                (code_totext(self.covered, rdict_rrtype),
+                 code_totext(self.algorithm, rdict_algorithm), labels,
                  self.originalttl))
-        f.write('%02x %02x %04x\n' % (self.algorithm, labels, self.originalttl))
+        f.write('%04x %02x %02x %08x\n' % (self.covered, self.algorithm, labels,
+                                           self.originalttl))
         f.write('# Expiration=%s, Inception=%s\n' %
                 (str(self.expiration), str(self.inception)))
         f.write('%08x %08x\n' % (self.expiration, self.inception))
-        f.write('# Signer=%s and Signature\n' % self.signer)
-        f.write('%s %s\n' % (name_wire, sig_wire))
+        f.write('# Tag=%d Signer=%s and Signature\n' % (self.tag, self.signer))
+        f.write('%04x %s %s\n' % (self.tag, name_wire, sig_wire))
 
 config_param = {'header' : (DNSHeader, header_xtables),
                 'question' : (DNSQuestion, question_xtables),




More information about the bind10-changes mailing list