aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2007-09-17 12:12:02 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2007-09-17 12:12:02 +0000
commit72af3183ab319a86c636b3a9dbad8df8ad7614e1 (patch)
treee537f738193f75876e581b96885032dc0389120f /epan/proto.h
parent8f19616ae86f9e5a5f70eb2bb2b468caf40461ea (diff)
Added functionality to highlight the FCS bytes in Ethernet and IEEE 802.11
packets in the Packet Details View. This "appendix" bytes are not copied with the Copy functions or in the Export Selected Packet Bytes. svn path=/trunk/; revision=22887
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index f1580ca54c..2affd72551 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -213,6 +213,8 @@ typedef struct field_info {
header_field_info *hfinfo; /**< pointer to registered field information */
gint start; /**< current start of data in field_info.ds_tvb */
gint length; /**< current data length of item in field_info.ds_tvb */
+ gint appendix_start; /**< start of appendix data */
+ gint appendix_length; /**< length of appendix data */
gint tree_type; /**< one of ETT_ or -1 */
item_label_t *rep; /**< string for GUI tree */
int flags; /**< bitfield like FI_GENERATED, ... */
@@ -468,6 +470,12 @@ extern proto_tree* proto_tree_get_root(proto_tree *tree);
extern void proto_tree_move_item(proto_tree *tree, proto_item *fixed_item, proto_item *item_to_move);
+/** Set start and length of an appendix for a proto_tree.
+ @param tree the tree to set the appendix start and length
+ @param start the start offset of the appendix
+ @param length the length of the appendix */
+extern void proto_tree_set_appendix(proto_tree *tree, tvbuff_t *tvb, gint start, gint length);
+
/** Add an item to a proto_tree, using the text label registered to that item.
The item is extracted from the tvbuff handed to it.