aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nb_rtpmux.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-11-18 16:01:39 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-11-18 16:01:39 +0000
commita6f7c3a8bdd0360fb8932794bf8aae804269e0ef (patch)
tree98419d15b26ea9213c19337f81b2b7e63e02343f /epan/dissectors/packet-nb_rtpmux.c
parent023fb81cbc304359594cf631a0ff950ec0fb7d89 (diff)
Tweak the display of the header.
svn path=/trunk/; revision=34946
Diffstat (limited to 'epan/dissectors/packet-nb_rtpmux.c')
-rw-r--r--epan/dissectors/packet-nb_rtpmux.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/epan/dissectors/packet-nb_rtpmux.c b/epan/dissectors/packet-nb_rtpmux.c
index fa5d523036..b2c7222a5e 100644
--- a/epan/dissectors/packet-nb_rtpmux.c
+++ b/epan/dissectors/packet-nb_rtpmux.c
@@ -36,6 +36,7 @@ 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;
@@ -117,6 +118,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
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, FALSE);
+ proto_tree_add_item(nb_rtpmux_tree, hf_nb_r_bit, tvb, offset, 1, FALSE);
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,6 +136,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
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, FALSE);
+ proto_tree_add_item(nb_rtpmux_tree, hf_nb_r_bit, tvb, offset, 1, FALSE);
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 );
@@ -176,13 +179,13 @@ proto_register_nb_rtpmux(void)
static hf_register_info hf[] = {
{ &hf_nb_rtpmux_compressed,
- { "Compressed headers", "nb_rtpmux.compressed",
- FT_BOOLEAN, BASE_NONE, NULL, 0x80,
+ { "Compressed headers(T bit)", "nb_rtpmux.compressed",
+ FT_BOOLEAN, 8, NULL, 0x80,
NULL, HFILL }
},
{ &hf_nb_rtpmux_dstport,
{ "Dst port", "nb_rtpmux.dstport",
- FT_UINT16, BASE_DEC, NULL, 0x0000,
+ FT_UINT16, BASE_DEC, NULL, 0x7FFF,
NULL, HFILL }
},
{ &hf_nb_rtpmux_length,
@@ -190,9 +193,14 @@ proto_register_nb_rtpmux(void)
FT_UINT8, BASE_DEC, NULL, 0x00,
NULL, HFILL }
},
+ { &hf_nb_r_bit,
+ { "R bit", "nb_rtpmux.r_bit",
+ FT_BOOLEAN, 8, NULL, 0x80,
+ NULL, HFILL }
+ },
{ &hf_nb_rtpmux_srcport,
{ "Src port", "nb_rtpmux.srcport",
- FT_UINT16, BASE_DEC, NULL, 0x00,
+ FT_UINT16, BASE_DEC, NULL, 0x7FFF,
NULL, HFILL }
},
{ &hf_nb_rtpmux_data,