forked from osmocom/wireshark
Don't write to Protocol Column right away in packet-wreth.c
Change-Id: Ic50d1f7658ff318cdfad6d6f4bad73fa87c21288 Reviewed-on: https://code.wireshark.org/review/14875 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
bee73f5d04
commit
4c02b60e5a
|
@ -739,14 +739,14 @@ static int dissect_wreth(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
|
|||
guint8 Offset = 0 ;
|
||||
|
||||
|
||||
col_set_str(pinfo->cinfo, COL_PROTOCOL, "Wreth");
|
||||
/* Clear out stuff in the info column */
|
||||
col_clear(pinfo->cinfo,COL_INFO);
|
||||
|
||||
/*Read the packet type, if not good, exit*/
|
||||
packet_type = tvb_get_ntohs(tvb,0);
|
||||
if(packet_type != WSE_RETH_SUBTYPE) return 1;
|
||||
|
||||
col_set_str(pinfo->cinfo, COL_PROTOCOL, "Wreth");
|
||||
/* Clear out stuff in the info column */
|
||||
col_clear(pinfo->cinfo,COL_INFO);
|
||||
|
||||
mi = proto_tree_add_protocol_format(tree, wreth_proto, tvb, Offset, -1, "WSE remote ethernet");
|
||||
pWrethTree = proto_item_add_subtree(mi, ett_wreth);
|
||||
|
||||
|
|
Loading…
Reference in New Issue