Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1198109
| From | Petter Reinholdtsen <pere@hungry.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#841179: nslint bug: unknown RR types SSHFP and LOC |
| Date | 2024-05-20 22:30 +0200 |
| Message-ID | <IGhNT-eHsM-9@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <sBbvQ-7Zq-19@gated-at.bofh.it> <IG5jH-eA68-5@gated-at.bofh.it> <IG5jH-eA68-3@gated-at.bofh.it> <stzOF-lH-3@gated-at.bofh.it> <IG5jH-eA68-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread
Bug#841179: nslint bug: unknown RR types SSHFP and LOC Petter Reinholdtsen <pere@hungry.com> - 2024-05-20 09:10 +0200 Bug#841179: nslint bug: unknown RR types SSHFP and LOC Petter Reinholdtsen <pere@hungry.com> - 2024-05-20 22:30 +0200
csiph-web