diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-07-30 09:33:10 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-07-30 09:33:10 +0000 |
commit | 0146079da4fdc134b0af8b695e26d236b6872df1 (patch) | |
tree | e32ef45877d39528e40795a2be009472b4789cab /epan/dissectors/packet-gtpv2.c | |
parent | baa189aee095bce9703acd0ee591cd58b123f9e5 (diff) |
CCRSI is not included in 3GPP 29.274 R8.
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6183
svn path=/trunk/; revision=38268
Diffstat (limited to 'epan/dissectors/packet-gtpv2.c')
-rw-r--r-- | epan/dissectors/packet-gtpv2.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c index 9a3d0ddf89..829668c152 100644 --- a/epan/dissectors/packet-gtpv2.c +++ b/epan/dissectors/packet-gtpv2.c @@ -1016,7 +1016,7 @@ dissect_gtpv2_msisdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, pr * 8.12 Indication */ static void -dissect_gtpv2_ind(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint16 length _U_,guint8 message_type _U_, guint8 instance _U_) +dissect_gtpv2_ind(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint16 length, guint8 message_type _U_, guint8 instance _U_) { int offset = 0; /* Octet 5 DAF DTF HI DFI OI ISRSI ISRAI SGWCI */ @@ -1048,7 +1048,12 @@ dissect_gtpv2_ind(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto proto_tree_add_item(tree, hf_gtpv2_pt, tvb, offset, 1, FALSE); proto_tree_add_item(tree, hf_gtpv2_si, tvb, offset, 1, FALSE); proto_tree_add_item(tree, hf_gtpv2_msv, tvb, offset, 1, FALSE); - offset++; + offset++; + + if(lenght==2){ + return; + } + /* Only present in version 9 and higher */ /* Octet 7 Spare Spare Spare Spare Spare Spare Spare CCRSI */ proto_tree_add_item(tree, hf_gtpv2_ccrsi, tvb, offset, 1, FALSE); |