aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-capwap.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-11-16 09:42:18 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-11-16 09:42:18 +0000
commit57d3c5e26002456c195625e79626a19f89bbb69a (patch)
tree6cab3c610e6914bebac2c6109d89512050778d30 /epan/dissectors/packet-capwap.c
parentbe2943671593393b6bbb2bdb43407c60bf80b9dc (diff)
Higlight the Header bytes.
svn path=/trunk/; revision=46037
Diffstat (limited to 'epan/dissectors/packet-capwap.c')
-rw-r--r--epan/dissectors/packet-capwap.c4
1 files changed, 3 insertions, 1 deletions
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 */