summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nb_rtpmux.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /epan/dissectors/packet-nb_rtpmux.c
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-nb_rtpmux.c')
-rw-r--r--epan/dissectors/packet-nb_rtpmux.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/epan/dissectors/packet-nb_rtpmux.c b/epan/dissectors/packet-nb_rtpmux.c
index 3e877295..541eefb3 100644
--- a/epan/dissectors/packet-nb_rtpmux.c
+++ b/epan/dissectors/packet-nb_rtpmux.c
@@ -17,20 +17,20 @@ void proto_register_nb_rtpmux(void);
void proto_reg_handoff_nb_rtpmux(void);
/* Initialize the protocol and registered fields */
-static int proto_nb_rtpmux = -1;
-static int hf_nb_rtpmux_compressed = -1;
-static int hf_nb_rtpmux_dstport = -1;
-static int hf_nb_rtpmux_length = -1;
-static int hf_nb_r_bit = -1;
-static int hf_nb_rtpmux_srcport = -1;
-static int hf_nb_rtpmux_data = -1;
-static int hf_nb_rtpmux_cmp_rtp_sequence_no = -1;
-static int hf_nb_rtpmux_cmp_rtp_timestamp = -1;
-static int hf_nb_rtpmux_cmp_rtp_data = -1;
+static int proto_nb_rtpmux;
+static int hf_nb_rtpmux_compressed;
+static int hf_nb_rtpmux_dstport;
+static int hf_nb_rtpmux_length;
+static int hf_nb_r_bit;
+static int hf_nb_rtpmux_srcport;
+static int hf_nb_rtpmux_data;
+static int hf_nb_rtpmux_cmp_rtp_sequence_no;
+static int hf_nb_rtpmux_cmp_rtp_timestamp;
+static int hf_nb_rtpmux_cmp_rtp_data;
/* Initialize the subtree pointers */
-static gint ett_nb_rtpmux = -1;
-static gint ett_nb_rtpmux_cmp_rtp_hdr = -1;
+static int ett_nb_rtpmux;
+static int ett_nb_rtpmux_cmp_rtp_hdr;
static dissector_handle_t nb_rtpmux_handle;
static dissector_handle_t rtpdissector;
@@ -42,7 +42,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
proto_item *ti;
proto_tree *nb_rtpmux_tree, *nb_rtpmux_cmp_rtp_tree;
unsigned int offset = 0;
- gboolean first_rtp_payload_seen = FALSE;
+ bool first_rtp_payload_seen = false;
/* First, if at all possible, do some heuristics to check if the packet cannot
* possibly belong to your protocol. This is especially important for
@@ -83,19 +83,19 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
/* create display subtree for the protocol */
while (offset < tvb_reported_length(tvb)-5)
{
- guint16 dstport, srcport;
+ uint16_t dstport, srcport;
unsigned int length;
- gint captured_length;
+ int captured_length;
tvbuff_t *next_tvb;
- gboolean tbit;
+ bool tbit;
- length = tvb_get_guint8(tvb, offset+2);
+ length = tvb_get_uint8(tvb, offset+2);
ti = proto_tree_add_item(tree, proto_nb_rtpmux, tvb, offset, length+5, ENC_NA);
nb_rtpmux_tree = proto_item_add_subtree(ti, ett_nb_rtpmux);
/* T bit */
proto_tree_add_item(nb_rtpmux_tree, hf_nb_rtpmux_compressed, tvb, offset, 2, ENC_BIG_ENDIAN);
- tbit = tvb_get_guint8(tvb,offset)>>7;
+ tbit = tvb_get_uint8(tvb,offset)>>7;
if(tbit == 1){
/* 6.4.2.4 Transport Format for multiplexing with RTP header compression */
dstport = (tvb_get_ntohs(tvb, offset) & 0x7fff) << 1;
@@ -136,7 +136,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
if (rtpdissector)
{
captured_length = tvb_reported_length_remaining(tvb, offset + 5);
- if (captured_length > (gint)length)
+ if (captured_length > (int)length)
captured_length = length;
next_tvb = tvb_new_subset_length_caplen(tvb, offset+5, captured_length,
length);
@@ -151,7 +151,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
call_dissector(rtpdissector, next_tvb, pinfo, nb_rtpmux_tree);
- first_rtp_payload_seen = TRUE;
+ first_rtp_payload_seen = true;
}
else
{
@@ -224,7 +224,7 @@ proto_register_nb_rtpmux(void)
};
/* Setup protocol subtree array */
- static gint *ett[] = {
+ static int *ett[] = {
&ett_nb_rtpmux,
&ett_nb_rtpmux_cmp_rtp_hdr
};