[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#841179: nslint bug: unknown RR types SSHFP and LOC



Control: tags -1 + patch

Here is a untested draft patch to get nslint to ignore LOC and SSHFP
entries.

--- nslint-salsa.orig/nslint.c  2024-05-20 22:22:30.853916890 +0200
+++ nslint-salsa/nslint.c       2024-05-20 22:23:11.482321491 +0200
@@ -122,6 +122,8 @@
 #define REC_RP         0x0200
 #define REC_TXT                0x0400
 #define REC_SRV                0x0800
+#define REC_LOC                0x08000
+#define REC_SSHFP      0x10000
 
 /* These aren't real records */
 #define REC_OTHER      0x1000
@@ -147,11 +149,13 @@
        RR_WKS,
        RR_RRSIG,
        RR_NSEC,
+       RR_LOC,
+       RR_SSHFP,
 };
 
 /* Test for records we want to map to REC_OTHER */
 #define MASK_TEST_REC (REC_WKS | REC_HINFO | \
-    REC_MX | REC_SOA | REC_RP | REC_TXT | REC_SRV | REC_UNKNOWN)
+    REC_MX | REC_SOA | REC_RP | REC_TXT | REC_SRV | REC_LOC | REC_SSHFP | REC_UNKNOWN)
 
 /* Mask away records we don't care about in the final processing to REC_OTHER */
 #define MASK_CHECK_REC \
@@ -2723,6 +2727,14 @@
                        /* XXX */
                        continue;
 
+               case RR_LOC:
+                       /* XXX */
+                       continue;
+
+               case RR_SSHFP:
+                       /* XXX */
+                       continue;
+
                default:
                        /* Unknown record type */
                        ++errors;
@@ -2821,6 +2833,10 @@
                return (RR_RRSIG);
        if (strcasecmp(str, "NSEC") == 0)
                return (RR_NSEC);
+       if (strcasecmp(str, "LOC") == 0)
+               return (RR_LOC);
+       if (strcasecmp(str, "SSHFP") == 0)
+               return (RR_SSHFP);
        return (RR_UNDEF);
 }
 
-- 
Happy hacking
Petter Reinholdtsen


Reply to: