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

2024-05-20 Thread Petter Reinholdtsen


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_TXT0x0400
 #define REC_SRV0x0800
+#define REC_LOC0x08000
+#define REC_SSHFP  0x1
 
 /* 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



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

2024-05-20 Thread Petter Reinholdtsen
Second try, with correct bug number.

Such support seem like something that should be fixed upstream.  The
types are also unknown in version 3.2.  Perhaps someone should send a
patch upstream implementing support for these?  Just a simple
patching accepting them but not checking their content would be better
than the current situation.

Note, the package is currently orphaned in Debian and need a new
maintainer.

-- 
Happy hacking
Petter Reinholdtsen



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

2016-11-08 Thread Sven Mueller

On Tue, 18 Oct 2016 11:58:11 +0200, Thomas Dreibholz wrote:

Package: nslint
Version: 3.0a2

I just noticed a bug in nslint: It reports SSHFP and LOC RRs as 
unknown.

nslint: /var/cache/bind//etc/bind/alpha.test.db:662 Unknown record
type "sshfp"
nslint: /var/cache/bind//etc/bind/alpha.test.db:680 Unknown record 
type "loc"


Both RRs are well-known types defined in RFCs:
LOC -> RFC 1876 -> https://tools.ietf.org/html/rfc1876
SSHFP -> RFC 4255 -> https://tools.ietf.org/html/rfc4255


I should probably get nslint removed from Debian unstable/testing.
Even with Version 3.1 (from 2010, by the way, sorry for not updating 
the package), these are still unknown.

And I don't expect any development in that area.

Thanks for reporting though.

Regards,
Sven



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

2016-10-18 Thread Thomas Dreibholz
Package: nslint
Version: 3.0a2

I just noticed a bug in nslint: It reports SSHFP and LOC RRs as unknown.
nslint: /var/cache/bind//etc/bind/alpha.test.db:662 Unknown record type "sshfp"
nslint: /var/cache/bind//etc/bind/alpha.test.db:680 Unknown record type "loc"

Both RRs are well-known types defined in RFCs:
LOC -> RFC 1876 -> https://tools.ietf.org/html/rfc1876
SSHFP -> RFC 4255 -> https://tools.ietf.org/html/rfc4255

-- 
Best regards / Mit freundlichen Grüßen / Med vennlig hilsen

===
 Thomas Dreibholz

 Simula Research Laboratory
 Simula Innovation AS, Network Systems Group
 Visiting address: Martin Linges vei 17, 1364 Fornebu, Norway
 Mailing address:  P.O.Box 134, 1325 Lysaker, Norway
---
 E-Mail: dre...@simula.no
 Homepage:   http://simula.no/people/dreibh
===


signature.asc
Description: This is a digitally signed message part.