diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
commit | a86c5f7cae7ec9a3398300555a0b644689d946a1 (patch) | |
tree | 39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /epan/dissectors/packet-lsc.c | |
parent | Releasing progress-linux version 4.2.6-1~progress7.99u1. (diff) | |
download | wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-lsc.c')
-rw-r--r-- | epan/dissectors/packet-lsc.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/epan/dissectors/packet-lsc.c b/epan/dissectors/packet-lsc.c index 9b5536d4..14244b07 100644 --- a/epan/dissectors/packet-lsc.c +++ b/epan/dissectors/packet-lsc.c @@ -100,21 +100,21 @@ static const value_string mode_vals[] = { }; /* Initialize the protocol and registered fields */ -static int proto_lsc = -1; -static int hf_lsc_version = -1; -static int hf_lsc_trans_id = -1; -static int hf_lsc_op_code = -1; -static int hf_lsc_status_code = -1; -static int hf_lsc_stream_handle = -1; -static int hf_lsc_start_npt = -1; -static int hf_lsc_stop_npt = -1; -static int hf_lsc_current_npt = -1; -static int hf_lsc_scale_num = -1; -static int hf_lsc_scale_denom = -1; -static int hf_lsc_mode = -1; +static int proto_lsc; +static int hf_lsc_version; +static int hf_lsc_trans_id; +static int hf_lsc_op_code; +static int hf_lsc_status_code; +static int hf_lsc_stream_handle; +static int hf_lsc_start_npt; +static int hf_lsc_stop_npt; +static int hf_lsc_current_npt; +static int hf_lsc_scale_num; +static int hf_lsc_scale_denom; +static int hf_lsc_mode; /* Initialize the subtree pointers */ -static gint ett_lsc = -1; +static int ett_lsc; static dissector_handle_t lsc_udp_handle; static dissector_handle_t lsc_tcp_handle; @@ -125,9 +125,9 @@ dissect_lsc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da { proto_item *ti; proto_tree *lsc_tree; - guint8 op_code; - guint32 stream; - guint expected_len; + uint8_t op_code; + uint32_t stream; + unsigned expected_len; /* Too little data? */ if (tvb_captured_length(tvb) < LSC_MIN_LEN) @@ -138,7 +138,7 @@ dissect_lsc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da col_clear(pinfo->cinfo, COL_INFO); /* Get the op code */ - op_code = tvb_get_guint8(tvb, 2); + op_code = tvb_get_uint8(tvb, 2); /* And the stream handle */ stream = tvb_get_ntohl(tvb, 4); @@ -254,14 +254,14 @@ dissect_lsc_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) } /* Determine length of LSC message */ -static guint +static unsigned get_lsc_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U_) { - guint8 op_code; - guint pdu_len; + uint8_t op_code; + unsigned pdu_len; /* Get the op code */ - op_code = tvb_get_guint8(tvb, offset + 2); + op_code = tvb_get_uint8(tvb, offset + 2); switch (op_code) { @@ -305,7 +305,7 @@ get_lsc_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U static int dissect_lsc_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { - tcp_dissect_pdus(tvb, pinfo, tree, TRUE, LSC_OPCODE_LEN, get_lsc_pdu_len, + tcp_dissect_pdus(tvb, pinfo, tree, true, LSC_OPCODE_LEN, get_lsc_pdu_len, dissect_lsc_common, data); return tvb_captured_length(tvb); } @@ -374,7 +374,7 @@ proto_register_lsc(void) }; /* Setup protocol subtree array */ - static gint *ett[] = { + static int *ett[] = { &ett_lsc, }; |