diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-17 08:34:07 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-17 08:34:07 +0000 |
commit | 824cd949673f81ec23051456523dc32804a20ed3 (patch) | |
tree | b3f3fc2ad90bef9df8a64a49a8ff89f99eda40ba /packet-dns.c | |
parent | 6e82c4ff7ac30b8ca23c7c6d866a17b3fd10d86b (diff) |
Put the key and other lengths into the protocol tree for TKEY RRs.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9314 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-dns.c')
-rw-r--r-- | packet-dns.c | 6 |
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; |