aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nb_rtpmux.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-11-09 12:47:20 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-11-09 12:47:20 +0000
commit36dcfd896059a49805b3e0cee9e6d256116c0685 (patch)
tree524f0f2ed6a782170b50f02ca86693cfbba83e34 /epan/dissectors/packet-nb_rtpmux.c
parent7a4b3598231ea6764b19cb32827bc871a6992bac (diff)
Wrong bytes highligted for R bit, fix display while at it.
svn path=/trunk/; revision=45983
Diffstat (limited to 'epan/dissectors/packet-nb_rtpmux.c')
-rw-r--r--epan/dissectors/packet-nb_rtpmux.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/epan/dissectors/packet-nb_rtpmux.c b/epan/dissectors/packet-nb_rtpmux.c
index dae0f6bd5e..a844845d39 100644
--- a/epan/dissectors/packet-nb_rtpmux.c
+++ b/epan/dissectors/packet-nb_rtpmux.c
@@ -102,21 +102,18 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
gboolean tbit;
length = tvb_get_guint8(tvb, offset+2);
- ti = proto_tree_add_item(tree, proto_nb_rtpmux, tvb, offset,
- length+5, ENC_NA);
+ 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);
/* XXX - what if the T bit is set? */
- proto_tree_add_item(nb_rtpmux_tree,
- hf_nb_rtpmux_compressed, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(nb_rtpmux_tree, hf_nb_rtpmux_compressed, tvb, offset, 2, ENC_BIG_ENDIAN);
tbit = tvb_get_guint8(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;
proto_tree_add_uint(nb_rtpmux_tree, hf_nb_rtpmux_dstport, tvb, offset, 2, dstport );
- proto_tree_add_item(nb_rtpmux_tree,
- hf_nb_rtpmux_length, tvb, offset+2, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(nb_rtpmux_tree, hf_nb_r_bit, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(nb_rtpmux_tree, hf_nb_rtpmux_length, tvb, offset+2, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(nb_rtpmux_tree, hf_nb_r_bit, tvb, offset+3, 2, ENC_BIG_ENDIAN);
srcport = (tvb_get_ntohs(tvb, offset+3) & 0x7fff) << 1;
proto_tree_add_uint(nb_rtpmux_tree, hf_nb_rtpmux_srcport, tvb, offset+3, 2, srcport );
cmp_rtp_item = proto_tree_add_text( nb_rtpmux_tree, tvb, offset+5, 3, "Compressed RTP header" );
@@ -134,7 +131,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
proto_tree_add_uint(nb_rtpmux_tree, hf_nb_rtpmux_dstport, tvb, offset, 2, dstport );
proto_tree_add_item(nb_rtpmux_tree,
hf_nb_rtpmux_length, tvb, offset+2, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(nb_rtpmux_tree, hf_nb_r_bit, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(nb_rtpmux_tree, hf_nb_r_bit, tvb, offset+3, 1, ENC_BIG_ENDIAN);
srcport = (tvb_get_ntohs(tvb, offset+3) & 0x7fff) << 1;
proto_tree_add_uint(nb_rtpmux_tree, hf_nb_rtpmux_srcport, tvb, offset+3, 2, srcport );
@@ -178,7 +175,7 @@ proto_register_nb_rtpmux(void)
static hf_register_info hf[] = {
{ &hf_nb_rtpmux_compressed,
{ "Compressed headers(T bit)", "nb_rtpmux.compressed",
- FT_BOOLEAN, 8, NULL, 0x80,
+ FT_BOOLEAN, 16, NULL, 0x8000,
NULL, HFILL }
},
{ &hf_nb_rtpmux_dstport,
@@ -193,7 +190,7 @@ proto_register_nb_rtpmux(void)
},
{ &hf_nb_r_bit,
{ "R bit", "nb_rtpmux.r_bit",
- FT_BOOLEAN, 8, NULL, 0x80,
+ FT_BOOLEAN, 16, NULL, 0x8000,
NULL, HFILL }
},
{ &hf_nb_rtpmux_srcport,