BGP: fix dissection of BGP community tag
The offset used for BGP community tag dissection is a wrong one. Bug: 10746 Change-Id: I1d1d443568bb97a0b3b95a312762ac0a3102326a Reviewed-on: https://code.wireshark.org/review/5562 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
6d207fe5f4
commit
05c1aa2231
|
@ -5929,12 +5929,12 @@ dissect_bgp_update(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo)
|
|||
tvb, q - 3 + aoff, 2, ENC_BIG_ENDIAN);
|
||||
proto_tree_add_item(community_tree, hf_bgp_update_path_attribute_community_value,
|
||||
tvb, q - 1 + aoff, 2, ENC_BIG_ENDIAN);
|
||||
proto_item_append_text(ti_pa, "%u:%u ",tvb_get_ntohs(tvb, q - 3),
|
||||
tvb_get_ntohs(tvb, q -1));
|
||||
proto_item_append_text(ti_communities, "%u:%u ",tvb_get_ntohs(tvb, q - 3),
|
||||
tvb_get_ntohs(tvb, q -1));
|
||||
proto_item_append_text(ti_community, ": %u:%u ",tvb_get_ntohs(tvb, q - 3),
|
||||
tvb_get_ntohs(tvb, q -1));
|
||||
proto_item_append_text(ti_pa, "%u:%u ",tvb_get_ntohs(tvb, q - 3 + aoff),
|
||||
tvb_get_ntohs(tvb, q -1 + aoff));
|
||||
proto_item_append_text(ti_communities, "%u:%u ",tvb_get_ntohs(tvb, q - 3 + aoff),
|
||||
tvb_get_ntohs(tvb, q -1 + aoff));
|
||||
proto_item_append_text(ti_community, ": %u:%u ",tvb_get_ntohs(tvb, q - 3 + aoff),
|
||||
tvb_get_ntohs(tvb, q -1 + aoff));
|
||||
}
|
||||
|
||||
q += 4;
|
||||
|
|
Loading…
Reference in New Issue