diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-11-01 05:30:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-11-01 05:30:48 +0000 |
commit | 1522cd2994c78ba0a77bcdbb1989ebec5dfc9bbb (patch) | |
tree | 742d6d8009676b8e50ed80f8d0ce480c76e9f564 /packet-gtp.c | |
parent | cdb4e6929c75ed4e2595b41c8e7caaf683201c69 (diff) |
From Fritz Budiyanto: the command in the Packet Transfer Command IE is
one byte, so fetch it with "tvb_get_guint8()", not "tvb_get_ntohl()".
Put in the location in the GPRS standard where that's defined, while
we're at it.
svn path=/trunk/; revision=6533
Diffstat (limited to 'packet-gtp.c')
-rw-r--r-- | packet-gtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-gtp.c b/packet-gtp.c index 9364d8627c..802cd4dc5e 100644 --- a/packet-gtp.c +++ b/packet-gtp.c @@ -4,7 +4,7 @@ * Copyright 2001, Michal Melerowicz <michal.melerowicz@nokia.com> * Nicolas Balkota <balkota@mac.com> * - * $Id: packet-gtp.c,v 1.40 2002/10/26 06:30:41 guy Exp $ + * $Id: packet-gtp.c,v 1.41 2002/11/01 05:30:45 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -3053,7 +3053,7 @@ decode_gtp_ms_reason(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tr } -/* GPRS: 12.15 +/* GPRS: 12.15 v7.6.0, chapter 7.3.3, page 45 * UMTS: 33.015 */ static int @@ -3061,7 +3061,7 @@ decode_gtp_tr_comm(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree guint8 tr_command; - tr_command = tvb_get_ntohl(tvb, offset+1); + tr_command = tvb_get_guint8(tvb, offset+1); proto_tree_add_uint(tree, gtp_version ? hf_gtpv1_tr_comm : hf_gtpv0_tr_comm, tvb, offset, 2, tr_command); |