tcpdump mailing list archives

Re: Patch to update the DNS RR typecode list for display


From: "Griffin, Wesley" <Wes.Griffin () sparta com>
Date: Tue, 21 Mar 2006 11:42:28 -0500

Doh! I should have expected that attachments would get stripped. I
should also mention that I attempted to submit this via the SF.net site,
but they seem to be having problems with the site.

Index: nameser.h
===================================================================
RCS file: /tcpdump/master/tcpdump/nameser.h,v
retrieving revision 1.14
diff -u -r1.14 nameser.h
--- nameser.h   5 Nov 2003 06:02:59 -0000       1.14
+++ nameser.h   21 Mar 2006 16:01:38 -0000
@@ -163,10 +163,21 @@
 #define T_SRV          33              /* Server selection */
 #define T_ATMA         34              /* ATM Address */
 #define T_NAPTR                35              /* Naming Authority
PoinTeR */
+#define T_KX           36              /* Key Exchanger */
+#define T_CERT         37              /* Certificates in the DNS */
 #define T_A6           38              /* IP6 address */
 #define T_DNAME                39              /* non-terminal
redirection */
+#define T_SINK         40              /* unknown */
 #define T_OPT          41              /* EDNS0 option (meta-RR) */
+#define T_APL          42              /* lists of address prefixes */
+#define T_DS           43              /* Delegation Signer */
+#define T_SSHFP                44              /* SSH Fingerprint */
+#define T_IPSECKEY     45              /* IPsec keying material */
+#define T_RRSIG                46              /* new security
signature */
+#define T_NSEC         47              /* provable insecure information
*/
+#define T_DNSKEY       48              /* new security key */
        /* non standard */
+#define T_SPF          99              /* sender policy framework */
 #define T_UINFO                100             /* user (finger)
information */
 #define T_UID          101             /* user ID */
 #define T_GID          102             /* group ID */

Index: print-domain.c
===================================================================
RCS file: /tcpdump/master/tcpdump/print-domain.c,v
retrieving revision 1.90
diff -u -r1.90 print-domain.c
--- print-domain.c      20 Apr 2005 20:59:30 -0000      1.90
+++ print-domain.c      21 Mar 2006 16:02:19 -0000
@@ -278,9 +278,20 @@
        { T_SRV,        "SRV" },                /* RFC 2782 */
        { T_ATMA,       "ATMA" },               /* ATM Forum */
        { T_NAPTR,      "NAPTR" },              /* RFC 2168, RFC 2915 */
+       { T_KX,         "KX" },                 /* RFC 2230 */
+       { T_CERT,       "CERT" },               /* RFC 2538 */
        { T_A6,         "A6" },                 /* RFC 2874 */
        { T_DNAME,      "DNAME" },              /* RFC 2672 */
+       { T_SINK,       "SINK" },
        { T_OPT,        "OPT" },                /* RFC 2671 */
+       { T_APL,        "APL" },                /* RFC 3123 */
+       { T_DS,         "DS" },                 /* RFC 4034 */
+       { T_SSHFP,      "SSHFP" },              /* RFC 4255 */
+       { T_IPSECKEY,   "IPSECKEY" },           /* RFC 4025 */
+       { T_RRSIG,      "RRSIG" },              /* RFC 4034 */
+       { T_NSEC,       "NSEC" },               /* RFC 4034 */
+       { T_DNSKEY,     "DNSKEY" },             /* RFC 4034 */
+       { T_SPF,        "SPF" },                /*
RFC-schlitt-spf-classic-02.txt */
        { T_UINFO,      "UINFO" },
        { T_UID,        "UID" },
        { T_GID,        "GID" },

-----Original Message-----
From: tcpdump-workers-owner () lists tcpdump org 
[mailto:tcpdump-workers-owner () lists tcpdump org] On Behalf Of 
Griffin, Wesley
Sent: Tuesday, March 21, 2006 11:26 AM
To: tcpdump-workers () lists tcpdump org
Subject: [tcpdump-workers] Patch to update the DNS RR 
typecode list for display

I've attached patches to nameser.h and print-domain.c to 
update the list of DNS RR typecodes to be inline with 
<http://www.iana.org/assignments/dns-parameters>. With this 
patch tcpdump now prints DNSKEY instead of Type48. I haven't 
done any real extensive testing of this, but I'm only 
updating some defines and the the array of typecodes.


-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Current thread: