aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dns.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-17 08:34:07 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-17 08:34:07 +0000
commit7e7d9b51fa44b2b7e4348dc99744dea2d60ce92d (patch)
treeb3f3fc2ad90bef9df8a64a49a8ff89f99eda40ba /packet-dns.c
parentccf7ade46760af238011a8d0a6ffad3a29889885 (diff)
Put the key and other lengths into the protocol tree for TKEY RRs.
svn path=/trunk/; revision=9314
Diffstat (limited to 'packet-dns.c')
-rw-r--r--packet-dns.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/packet-dns.c b/packet-dns.c
index 8ac06a5966..68077686b0 100644
--- a/packet-dns.c
+++ b/packet-dns.c
@@ -1,7 +1,7 @@
/* packet-dns.c
* Routines for DNS packet disassembly
*
- * $Id: packet-dns.c,v 1.110 2003/12/12 23:23:57 guy Exp $
+ * $Id: packet-dns.c,v 1.111 2003/12/17 08:34:07 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1755,6 +1755,8 @@ dissect_dns_answer(tvbuff_t *tvb, int offset, int dns_data_offset,
val_to_str(tkey_error, tsigerror_vals, "Unknown error (%x)")));
tkey_keylen = tvb_get_ntohs(tvb, cur_offset);
+ proto_tree_add_text(rr_tree, tvb, cur_offset, 2, "Key length: %u",
+ tkey_keylen);
cur_offset += 2;
rr_len -= 2;
@@ -1802,6 +1804,8 @@ dissect_dns_answer(tvbuff_t *tvb, int offset, int dns_data_offset,
if (rr_len < 2)
goto bad_rr;
tkey_otherlen = tvb_get_ntohs(tvb, cur_offset);
+ proto_tree_add_text(rr_tree, tvb, cur_offset, 2, "Other length: %u",
+ tkey_otherlen);
cur_offset += 2;
rr_len -= 2;