diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-11-16 09:42:18 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-11-16 09:42:18 +0000 |
commit | 57d3c5e26002456c195625e79626a19f89bbb69a (patch) | |
tree | 6cab3c610e6914bebac2c6109d89512050778d30 /epan | |
parent | be2943671593393b6bbb2bdb43407c60bf80b9dc (diff) |
Higlight the Header bytes.
svn path=/trunk/; revision=46037
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-capwap.c | 4 |
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 */ |