From 51969fbd06eb5944a42a612acf7394f5958f19ab Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 16 May 2004 18:50:40 +0000 Subject: [PATCH] From Yaniv Kaul: add support for 3 MS-Exchange, non-RFC compliant commands, per http://support.microsoft.com/default.aspx?scid=kb;[LN];812455 svn path=/trunk/; revision=10911 --- packet-smtp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packet-smtp.c b/packet-smtp.c index ec271538a4..200c72b336 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.36 2004/01/17 12:51:00 ulfl Exp $ + * $Id: packet-smtp.c,v 1.37 2004/05/16 18:50:40 guy Exp $ * * Copyright (c) 2000 by Richard Sharpe * @@ -302,7 +302,11 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } else { - + if ((linelen >= 7) && line[0] == 'X' && ( (strncasecmp(line, "X-EXPS ", 7) == 0) || + ((linelen >=13) && (strncasecmp(line, "X-LINK2STATE ", 13) == 0)) || + ((linelen >= 8) && (strncasecmp(line, "XEXCH50 ", 8) == 0)) )) + frame_data->pdu_type = SMTP_PDU_CMD; + else /* * Assume it's message data. */