aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-eth.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2007-09-25 19:30:26 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2007-09-25 19:30:26 +0000
commit19e901df9ac79c27b136ac18211569c76d445c09 (patch)
tree132bc34b3edcb9041d6c615589e4b82a1cb6a34e /epan/dissectors/packet-eth.c
parent4c3c4ab5ac71c187ec8b8198c10a20ecc8505ccc (diff)
Highlight whole ethernet trailer in Packet Details View.
svn path=/trunk/; revision=22960
Diffstat (limited to 'epan/dissectors/packet-eth.c')
-rw-r--r--epan/dissectors/packet-eth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-eth.c b/epan/dissectors/packet-eth.c
index 658db4dccf..db4554dbb9 100644
--- a/epan/dissectors/packet-eth.c
+++ b/epan/dissectors/packet-eth.c
@@ -428,8 +428,9 @@ add_ethernet_trailer(proto_tree *fh_tree, int trailer_id, tvbuff_t *tvb,
"Frame check sequence: 0x%08x [incorrect, should be 0x%08x]",
sent_fcs, fcs);
}
- proto_tree_set_appendix(fh_tree, tvb, tvb_length(tvb) - 4, 4);
+ trailer_length += 4;
}
+ proto_tree_set_appendix(fh_tree, tvb, tvb_length(tvb) - trailer_length, trailer_length);
}
}