From 57d3c5e26002456c195625e79626a19f89bbb69a Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Fri, 16 Nov 2012 09:42:18 +0000 Subject: [PATCH] Higlight the Header bytes. svn path=/trunk/; revision=46037 --- epan/dissectors/packet-capwap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-capwap.c b/epan/dissectors/packet-capwap.c index cf6e17881e..2b4aff59ac 100644 --- a/epan/dissectors/packet-capwap.c +++ b/epan/dissectors/packet-capwap.c @@ -1203,7 +1203,9 @@ dissect_capwap_header(tvbuff_t *tvb, proto_tree *capwap_control_tree, guint offs guint8 maclength, wirelesslength; guint align = 0; - ti = proto_tree_add_item(capwap_control_tree, hf_capwap_header, tvb, offset+plen, tvb_get_bits8(tvb, (offset+plen)*8, 5), ENC_NA); + /* RFC 5415 HLEN: A 5-bit field containing the length of the CAPWAP transport header in 4-byte words */ + /* As we display the preamble separately reduce the length by 1 */ + ti = proto_tree_add_item(capwap_control_tree, hf_capwap_header, tvb, offset+plen, ((tvb_get_bits8(tvb, (offset+plen)*8, 5))*4)-1, ENC_NA); capwap_header_tree = proto_item_add_subtree(ti, ett_capwap); /* Header Length : 5 Bits */ -- 2.34.1