aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpls.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2016-10-28 07:37:52 +0200
committerMichael Mann <mmann78@netscape.net>2016-10-28 13:47:09 +0000
commit8c1a5505de729b5ea80bfbb4fd617b1441ef6e3b (patch)
tree1d52fa78d97cc7d5cfa47d3bc0be1138da2fbacb /epan/dissectors/packet-mpls.c
parent9c9b866430477a8eaafe284bdaa36049d5b54eec (diff)
MPLS: Mark only Bottom-of-Stack label as flow label
When preference 'Assume bottom of stack label as flow label' is set all labels are shown as flow labels. This has to be limited to that MPLS label where Bottom-of-Stack is TRUE. Change-Id: Iaa8abd095edb7de7f745a78c742a9347d4dbf3d9 Reviewed-on: https://code.wireshark.org/review/18516 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-mpls.c')
-rw-r--r--epan/dissectors/packet-mpls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mpls.c b/epan/dissectors/packet-mpls.c
index 91b9dc86d1..b39dcf35b8 100644
--- a/epan/dissectors/packet-mpls.c
+++ b/epan/dissectors/packet-mpls.c
@@ -401,7 +401,7 @@ dissect_mpls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
ti = proto_tree_add_item(tree, proto_mpls, tvb, offset, 4, ENC_NA);
mpls_tree = proto_item_add_subtree(ti, ett_mpls);
- if (mpls_bos_flowlabel) {
+ if (mpls_bos_flowlabel && bos) {
proto_item_append_text(ti, ", Label: %u (Flow Label)", label);
} else {
proto_item_append_text(ti, ", Label: %u", label);