summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lanforge.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-lanforge.c')
-rw-r--r--epan/dissectors/packet-lanforge.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/epan/dissectors/packet-lanforge.c b/epan/dissectors/packet-lanforge.c
index a90f8a88..f8ccee5a 100644
--- a/epan/dissectors/packet-lanforge.c
+++ b/epan/dissectors/packet-lanforge.c
@@ -28,43 +28,43 @@ void proto_reg_handoff_lanforge(void);
#define LANFORGE_MAGIC 0x1a2b3c4d
/* Initialize the protocol and registered fields */
-static int proto_lanforge = -1;
+static int proto_lanforge;
/* lanforge header */
-static int hf_lanforge_crc = -1;
-static int hf_lanforge_magic = -1;
-static int hf_lanforge_src_session = -1;
-static int hf_lanforge_dst_session = -1;
-static int hf_lanforge_pld_len_l = -1;
-static int hf_lanforge_pld_len_h = -1;
-static int hf_lanforge_pld_len = -1;
-static int hf_lanforge_pld_pattern = -1;
-static int hf_lanforge_seq = -1;
-static int hf_lanforge_tx_time_s = -1;
-static int hf_lanforge_tx_time_ns = -1;
-static int hf_lanforge_timestamp = -1;
+static int hf_lanforge_crc;
+static int hf_lanforge_magic;
+static int hf_lanforge_src_session;
+static int hf_lanforge_dst_session;
+static int hf_lanforge_pld_len_l;
+static int hf_lanforge_pld_len_h;
+static int hf_lanforge_pld_len;
+static int hf_lanforge_pld_pattern;
+static int hf_lanforge_seq;
+static int hf_lanforge_tx_time_s;
+static int hf_lanforge_tx_time_ns;
+static int hf_lanforge_timestamp;
/* Initialize the subtree pointer */
-static gint ett_lanforge = -1;
+static int ett_lanforge;
/* entry point */
-static gboolean dissect_lanforge(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
+static bool dissect_lanforge(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
proto_item *ti;
proto_tree *lanforge_tree;
- guint32 offset = 0;
- guint32 magic, pld_len, pld_len_h;
+ uint32_t offset = 0;
+ uint32_t magic, pld_len, pld_len_h;
/* check for min size */
if(tvb_captured_length(tvb) < 28) { /* Not a LANforge packet. */
- return FALSE;
+ return false;
}
/* check for magic number */
magic = tvb_get_ntohl(tvb, 4);
if(magic != LANFORGE_MAGIC){
/* Not a LANforge packet. */
- return FALSE;
+ return false;
}
/* Make entries in Protocol column and Info column on summary display */
@@ -119,7 +119,7 @@ static gboolean dissect_lanforge(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
call_data_dissector(tvb_new_subset_remaining(tvb, offset), pinfo,
lanforge_tree);
- return TRUE;
+ return true;
}
@@ -229,7 +229,7 @@ void proto_register_lanforge(void)
/* Setup protocol subtree array */
- static gint *ett[] = {
+ static int *ett[] = {
&ett_lanforge
};