aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tte.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-tte.c')
-rw-r--r--epan/dissectors/packet-tte.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tte.c b/epan/dissectors/packet-tte.c
index f0c3e046df..635a58db0c 100644
--- a/epan/dissectors/packet-tte.c
+++ b/epan/dissectors/packet-tte.c
@@ -87,7 +87,14 @@ dissect_tte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
/* Make entries in Protocol column and Info column on summary display */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "TTE ");
- col_set_str(pinfo->cinfo, COL_INFO, "Bogus TTEthernet Frame");
+ if (tvb_get_ntohs(tvb, TTE_MAC_LENGTH * 2) <= IEEE_802_3_MAX_LEN)
+ {
+ col_set_str(pinfo->cinfo, COL_INFO, "TTEthernet Frame");
+ }
+ else
+ {
+ col_set_str(pinfo->cinfo, COL_INFO, "Bogus TTEthernet Frame");
+ }
if (tree) {