aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcfcs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-04 10:24:33 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-04 10:24:33 +0000
commit2c65361b8a25d69d560dfc88d4abf14e91cd1dbd (patch)
tree3acdb220f66c905c2308afe83aae7c9c9619ef66 /epan/dissectors/packet-fcfcs.c
parent7789e73a99706e484f048ec4df3f5ed9317143f8 (diff)
When processing records, advance the offset.
svn path=/trunk/; revision=15204
Diffstat (limited to 'epan/dissectors/packet-fcfcs.c')
-rw-r--r--epan/dissectors/packet-fcfcs.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/epan/dissectors/packet-fcfcs.c b/epan/dissectors/packet-fcfcs.c
index e0e00ead82..30f30e018a 100644
--- a/epan/dissectors/packet-fcfcs.c
+++ b/epan/dissectors/packet-fcfcs.c
@@ -7,12 +7,6 @@
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
- *
- * Copied from WHATEVER_FILE_YOU_USED (where "WHATEVER_FILE_YOU_USED"
- * is a dissector file; if you just copied this from README.developer,
- * don't bother with the "Copied from" - you don't even need to put
- * in a "Copied from" if you copied an existing dissector, especially
- * if the bulk of the code in the new dissector is your code)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -775,9 +769,9 @@ dissect_fcfcs_gcap (tvbuff_t *tvb, proto_tree *tree, gboolean isreq)
offset += 4;
for (i = 0; i < numrec; i++) {
- proto_tree_add_item (tree, hf_fcs_mgmt_subtype, tvb, offset,
- 1, 0);
subtype = tvb_get_guint8 (tvb, offset);
+ proto_tree_add_uint (tree, hf_fcs_mgmt_subtype, tvb, offset,
+ 1, subtype);
proto_tree_add_item (tree, hf_fcs_vnd_capmask, tvb, offset+1,
3, 0);
@@ -789,6 +783,7 @@ dissect_fcfcs_gcap (tvbuff_t *tvb, proto_tree *tree, gboolean isreq)
proto_tree_add_item (tree, hf_fcs_unsmask, tvb, offset+4,
4, 0);
}
+ offset += 8;
}
}
}