aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smtp.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2017-05-15 14:52:26 +0100
committerAnders Broman <a.broman58@gmail.com>2017-05-17 16:54:33 +0000
commitc0d81f054adb967f7cfebb7a4c493a843bf95629 (patch)
tree88910cb363502b299f60b7c05e5a4e826d50cfac /epan/dissectors/packet-smtp.c
parentc486707b1e2e98d996b9d212fa06d0258b2caebb (diff)
SMTP: allow multiple TCP ports/ranges to be registered
Change-Id: Ie470f6b2ffbdc156a1756466826ef6f42e54b8be Reviewed-on: https://code.wireshark.org/review/21666 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-smtp.c')
-rw-r--r--epan/dissectors/packet-smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smtp.c b/epan/dissectors/packet-smtp.c
index 6e6f852cca..344ffca118 100644
--- a/epan/dissectors/packet-smtp.c
+++ b/epan/dissectors/packet-smtp.c
@@ -42,7 +42,7 @@
#include "packet-ssl-utils.h"
/* RFC 2821 */
-#define TCP_PORT_SMTP 25
+#define TCP_PORT_SMTP "25"
#define TCP_PORT_SSL_SMTP 465
/* RFC 4409 */
@@ -1306,7 +1306,7 @@ proto_register_smtp(void)
void
proto_reg_handoff_smtp(void)
{
- dissector_add_uint_with_preference("tcp.port", TCP_PORT_SMTP, smtp_handle);
+ dissector_add_uint_range_with_preference("tcp.port", TCP_PORT_SMTP, smtp_handle);
ssl_dissector_add(TCP_PORT_SSL_SMTP, smtp_handle);
/* No "auto" preference since handle is shared with SMTP */
dissector_add_uint("tcp.port", TCP_PORT_SUBMISSION, smtp_handle);