aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-07-31 16:37:53 +0000
committerGerald Combs <gerald@wireshark.org>2009-07-31 16:37:53 +0000
commitdd28a00a78ff5094583e32bd8fe84e6d809e123c (patch)
tree9eaac9df18b4b15acb89cd3225634b7500a7504f
parent08b2e767731e486a8a160518b148a646630e3cf3 (diff)
From Ivan Sy via bug 3797:
Support for SPF RR (RFC 4408) - this has the same format as TXT RR (see section 3.1.1) below. Currently wireshark 1.2.1 shows this as Unknown type 99 svn path=/trunk/; revision=29253
-rw-r--r--epan/dissectors/packet-dns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index efc9138ef7..4889544d89 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -208,6 +208,7 @@ typedef struct _dns_conv_info_t {
#define T_DNSKEY 48 /* future RFC 2535bis */
#define T_NSEC3 50 /* Next secure hash (RFC 5155) */
#define T_NSEC3PARAM 51 /* NSEC3 parameters (RFC 5155) */
+#define T_SPF 99 /* SPF RR (RFC 4408) section 3 */
#define T_TKEY 249 /* Transaction Key (RFC 2930) */
#define T_TSIG 250 /* Transaction Signature (RFC 2845) */
#define T_WINS 65281 /* Microsoft's WINS RR */
@@ -453,6 +454,7 @@ static const value_string dns_types[] = {
{ T_NSEC3, "NSEC3" }, /* Next secure hash (RFC 5155) */
{ T_NSEC3PARAM, "NSEC3PARAM" }, /* Next secure hash (RFC 5155) */
+ { T_SPF, "SPF" }, /* SPF RR (RFC 4408) section 3 */
{ T_DLV, "DLV" }, /* Domain Lookaside Validation DNS Resource Record (RFC 4431) */
{ T_SSHFP, "SSHFP" }, /* Using DNS to Securely Publish SSH Key Fingerprints (RFC 4255) */
@@ -1444,6 +1446,7 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
break;
case T_TXT:
+ case T_SPF:
{
int rr_len = data_len;
int txt_offset;