diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-07-04 21:20:18 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-07-04 21:20:18 +0000 |
commit | 78d22ed8ee61de8e350b6228b07fa43f3384d489 (patch) | |
tree | 1a9a42e70a14651622bb20b5754a671aa306b4d6 /epan | |
parent | b00a34230c6bfe6ba113696c93eca8a959fdb179 (diff) |
From Sven Eckelmann:
Fix size of unicast fragment packet in v12.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5658
svn path=/trunk/; revision=37897
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-batadv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-batadv.c b/epan/dissectors/packet-batadv.c index f260fa61a4..2bc70096af 100644 --- a/epan/dissectors/packet-batadv.c +++ b/epan/dissectors/packet-batadv.c @@ -1595,18 +1595,18 @@ static void dissect_batadv_unicast_frag_v12(tvbuff_t *tvb, packet_info *pinfo, p proto_item *ti; if (PTREE_DATA(tree)->visible) { - ti = proto_tree_add_protocol_format(tree, proto_batadv_plugin, tvb, 0, UNICAST_PACKET_V6_SIZE, + ti = proto_tree_add_protocol_format(tree, proto_batadv_plugin, tvb, 0, UNICAST_FRAG_PACKET_V12_SIZE, "B.A.T.M.A.N. Unicast Fragment, Dst: %s (%s)", get_ether_name(dest_addr), ether_to_str(dest_addr)); } else { - ti = proto_tree_add_item(tree, proto_batadv_plugin, tvb, 0, UNICAST_PACKET_V6_SIZE, FALSE); + ti = proto_tree_add_item(tree, proto_batadv_plugin, tvb, 0, UNICAST_FRAG_PACKET_V12_SIZE, FALSE); } batadv_unicast_frag_tree = proto_item_add_subtree(ti, ett_batadv_unicast_frag); } /* items */ - proto_tree_add_uint_format(batadv_unicast_frag_tree, hf_batadv_packet_type, tvb, offset, 1, BATADV_UNICAST_V5, - "Packet Type: %s (%u)", "BATADV_UNICAST", BATADV_UNICAST_V5); + proto_tree_add_uint_format(batadv_unicast_frag_tree, hf_batadv_packet_type, tvb, offset, 1, BATADV_UNICAST_FRAG_V12, + "Packet Type: %s (%u)", "BATADV_UNICAST_FRAG", BATADV_UNICAST_FRAG_V12); offset += 1; proto_tree_add_item(batadv_unicast_frag_tree, hf_batadv_unicast_frag_version, tvb, offset, 1, FALSE); |