aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-07-15 09:40:20 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-07-15 09:40:20 +0000
commitff3a2e92b581bf5876ab65065f6f238b4f66aa3b (patch)
tree63c03c1de4c28b2cc27fe01784882d374d3c64d1
parentbc23243cd8d41f81ef9b63b521288cce32e98704 (diff)
SMTP and FTP response codes need more than 1 byte, as they can go up to
999; give them 4. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5874 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--packet-ftp.c6
-rw-r--r--packet-smtp.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/packet-ftp.c b/packet-ftp.c
index 4c33b7fce3..d5b6a39c41 100644
--- a/packet-ftp.c
+++ b/packet-ftp.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* Copyright 2001, Juan Toledo <toledo@users.sourceforge.net> (Passive FTP)
*
- * $Id: packet-ftp.c,v 1.45 2002/07/14 00:40:07 guy Exp $
+ * $Id: packet-ftp.c,v 1.46 2002/07/15 09:40:20 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -214,7 +214,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_item *ti;
gint offset = 0;
const u_char *line;
- guint8 code;
+ guint32 code;
gboolean is_pasv_response = FALSE;
gint next_offset;
int linelen;
@@ -451,7 +451,7 @@ proto_register_ftp(void)
{ &hf_ftp_response_code,
{ "Response code", "ftp.response.code",
- FT_UINT8, BASE_DEC, NULL, 0x0,
+ FT_UINT32, BASE_DEC, NULL, 0x0,
"", HFILL }},
{ &hf_ftp_response_arg,
diff --git a/packet-smtp.c b/packet-smtp.c
index 3348800ee3..2c0e5cc42d 100644
--- a/packet-smtp.c
+++ b/packet-smtp.c
@@ -1,7 +1,7 @@
/* packet-smtp.c
* Routines for SMTP packet disassembly
*
- * $Id: packet-smtp.c,v 1.28 2002/07/14 08:27:34 guy Exp $
+ * $Id: packet-smtp.c,v 1.29 2002/07/15 09:40:20 guy Exp $
*
* Copyright (c) 2000 by Richard Sharpe <rsharpe@ns.aus.com>
*
@@ -119,7 +119,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
conversation_t *conversation;
struct smtp_request_val *request_val;
const u_char *line;
- guint8 code;
+ guint32 code;
int linelen;
gboolean eom_seen = FALSE;
gint next_offset;
@@ -532,7 +532,7 @@ proto_register_smtp(void)
"", HFILL }},
{ &hf_smtp_rsp_code,
- { "Response code", "smtp.response.code", FT_UINT8, BASE_DEC, NULL, 0x0,
+ { "Response code", "smtp.response.code", FT_UINT32, BASE_DEC, NULL, 0x0,
"", HFILL }},
{ &hf_smtp_rsp_parameter,