aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-07-31 16:37:53 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-07-31 16:37:53 +0000
commit30d37ddf8f342a2a65ba0b32b41f732fa3d376c4 (patch)
tree9eaac9df18b4b15acb89cd3225634b7500a7504f /epan/dissectors/packet-dns.c
parent6130d78930cf8c121200472af2b7a0a52b1d91ea (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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29253 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dns.c')
-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;