aboutsummaryrefslogtreecommitdiffstats
path: root/packet-l2tp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-03-09 22:54:27 +0000
committerGuy Harris <guy@alum.mit.edu>2002-03-09 22:54:27 +0000
commit56902650875cd87e16ccbd9207f4041311421dc5 (patch)
tree92c673160f627f78acdaaaa3588819c2f24454e5 /packet-l2tp.c
parentf4ee24a894d32e8ff9c3c8d3508d73bb31322269 (diff)
Fix some "proto_tree_add_uint()" and "proto_tree_add_uint_hidden()"
calls that passed TRUE or FALSE, rather than an integer value, as the last argument. A SOCKS command is one byte, so make the "socks.command" field an FT_UINT8. svn path=/trunk/; revision=4904
Diffstat (limited to 'packet-l2tp.c')
-rw-r--r--packet-l2tp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-l2tp.c b/packet-l2tp.c
index bef7981bdc..85e172d0c4 100644
--- a/packet-l2tp.c
+++ b/packet-l2tp.c
@@ -7,7 +7,7 @@
* Laurent Cazalet <laurent.cazalet@mailclub.net>
* Thomas Parvais <thomas.parvais@advalvas.be>
*
- * $Id: packet-l2tp.c,v 1.30 2002/01/21 07:36:36 guy Exp $
+ * $Id: packet-l2tp.c,v 1.31 2002/03/09 22:54:27 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -28,7 +28,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
static int proto_l2tp = -1;
static int hf_l2tp_type = -1;
static int hf_l2tp_length_bit = -1;
@@ -462,7 +461,8 @@ dissect_l2tp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (OFFSET_BIT(control)) {
offset_size = tvb_get_ntohs(tvb, index);
if (tree) {
- proto_tree_add_uint(l2tp_tree, hf_l2tp_offset, tvb, index, 2, FALSE);
+ proto_tree_add_uint(l2tp_tree, hf_l2tp_offset, tvb, index, 2,
+ offset_size);
}
index += 2;
if (tree) {