diff options
author | Benjamin Roch <benjamin.roch@tttech.com> | 2015-02-24 18:42:07 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-05-20 09:06:00 +0000 |
commit | efe3486f8379a053dfa2eb562217207d83945e17 (patch) | |
tree | 3c90248ea239766045ac0c3634eddb66e30fc565 /epan/dissectors/packet-tte.c | |
parent | b687f719a39aac5276b32b7bec79e98a3b3b8b28 (diff) |
Enhanced info output of packet-tte dissector.
Change-Id: I2df393e9913d3a52db632778410d7b8932f78f8b
Reviewed-on: https://code.wireshark.org/review/7637
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-tte.c')
-rw-r--r-- | epan/dissectors/packet-tte.c | 9 |
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) { |