Add the right byte count to fddi's initial add_item_to_tree so that the entire

FDDI header is highlighted in the hex dump.

svn path=/trunk/; revision=207
This commit is contained in:
Gilbert Ramirez 1999-03-02 20:50:05 +00:00
parent 0cf5b2de74
commit dc6a300eab
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
*
* Laurent Deniel <deniel@worldnet.fr>
*
* $Id: packet-fddi.c,v 1.9 1999/02/09 00:35:37 guy Exp $
* $Id: packet-fddi.c,v 1.10 1999/03/02 20:50:05 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -207,6 +207,8 @@ void dissect_fddi(const u_char *pd, frame_data *fd, GtkTree *tree)
if (check_col(fd, COL_INFO))
col_add_str(fd, COL_INFO, "FDDI");
offset = FDDI_HEADER_SIZE;
if (tree) {
ti = add_item_to_tree(GTK_WIDGET(tree), 0, offset,
"FDDI %s",
@ -222,8 +224,6 @@ void dissect_fddi(const u_char *pd, frame_data *fd, GtkTree *tree)
ether_to_str(src), get_ether_name(src));
}
offset = FDDI_HEADER_SIZE;
switch (fc) {
/* From now, only 802.2 SNAP (Async. LCC frame) is supported */