BIND 10 trac2497, updated. 20ff1f4962b99620990c326c50cad7fcef0d16dc [2497] Apply generic rules to class IN too

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Dec 3 23:24:25 UTC 2012


The branch, trac2497 has been updated
       via  20ff1f4962b99620990c326c50cad7fcef0d16dc (commit)
      from  ec24cb1c279c83107c9058cbdbd9115d84d3ea71 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 20ff1f4962b99620990c326c50cad7fcef0d16dc
Author: Mukund Sivaraman <muks at isc.org>
Date:   Tue Dec 4 04:52:54 2012 +0530

    [2497] Apply generic rules to class IN too

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/gen-rdatacode.py.in |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/gen-rdatacode.py.in b/src/lib/dns/gen-rdatacode.py.in
index a5f6277..4ed700c 100755
--- a/src/lib/dns/gen-rdatacode.py.in
+++ b/src/lib/dns/gen-rdatacode.py.in
@@ -285,7 +285,9 @@ def generate_rrparam(fileprefix, basemtime):
         # By default, we use OldRdataFactory (see bug #2497). If you
         # want to pick RdataFactory for a particular type, add it to
         # new_rdata_factory_users.
-        if (type_txt.lower(), class_txt.lower()) in new_rdata_factory_users:
+        if ((type_txt.lower(), class_txt.lower()) in new_rdata_factory_users) or \
+                ((class_txt.lower() == 'in') and \
+                     ((type_txt.lower(), 'generic') in new_rdata_factory_users)):
             rdf_class = 'RdataFactory'
         else:
             rdf_class = 'OldRdataFactory'



More information about the bind10-changes mailing list