diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-11-05 06:19:57 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-11-05 06:19:57 +0000 |
commit | 1b796ee1caf8034a6ea5e6272d270e00b017fea5 (patch) | |
tree | c4a3e0998237f4ce797e3b3d507c2c79d38ff7cc /epan/dissectors/packet-gsm_a_gm.c | |
parent | ebbd4cb6faa71773953e92482b7eb10ecd095eba (diff) |
From Pascal Quantin:
[NAS EPS] Display explicitly the spare bits when decoding a TFT
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5371
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34781 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-gsm_a_gm.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_gm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c index 5ab5a9d27c..9aa3fdeafd 100644 --- a/epan/dissectors/packet-gsm_a_gm.c +++ b/epan/dissectors/packet-gsm_a_gm.c @@ -4090,6 +4090,7 @@ de_sm_tflow_temp(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gch proto_tree_add_text(tf_tree,tvb, curr_offset, 1,"Not enough data"); return(len); } + proto_tree_add_bits_item(tf_tree, hf_gsm_a_spare_bits, tvb, (curr_offset<<3), 4, FALSE); proto_tree_add_item(tf_tree, hf_gsm_a_tft_pkt_flt_id, tvb, curr_offset, 1, FALSE); curr_offset++; curr_len--; @@ -4102,6 +4103,7 @@ de_sm_tflow_temp(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gch proto_tree_add_text(tf_tree,tvb, curr_offset, 1,"Not enough data"); return(len); } + proto_tree_add_bits_item(tf_tree, hf_gsm_a_spare_bits, tvb, (curr_offset<<3), 2, FALSE); proto_tree_add_item(tf_tree, hf_gsm_a_tft_pkt_flt_dir, tvb, curr_offset, 1, FALSE); proto_tree_add_item(tf_tree, hf_gsm_a_tft_pkt_flt_id, tvb, curr_offset, 1, FALSE); curr_offset++; @@ -4235,6 +4237,7 @@ de_sm_tflow_temp(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gch case 0x80: str="Flow label type"; + proto_tree_add_bits_item(comp_tree, hf_gsm_a_spare_bits, tvb, (curr_offset<<3), 4, FALSE); proto_tree_add_item(comp_tree,hf_gsm_a_tft_flow_label_type,tvb,curr_offset,3,FALSE); curr_offset+=3; curr_len-=3; @@ -5990,7 +5993,7 @@ proto_register_gsm_a_gm(void) }, { &hf_gsm_a_tft_pkt_flt_dir, { "Packet filter direction", "gsm_a.tft.pkt_flt_dir", - FT_UINT8, BASE_DEC, VALS(gsm_a_tft_pkt_flt_dir_vals), 0xf0, + FT_UINT8, BASE_DEC, VALS(gsm_a_tft_pkt_flt_dir_vals), 0x30, NULL, HFILL } }, { &hf_gsm_a_tft_pkt_flt_id, |