From: Shivani Bhardwaj Date: Thu, 6 Apr 2023 12:14:49 +0000 (+0530) Subject: smtp: move constant declaration to header X-Git-Tag: suricata-7.0.0-rc2~443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0bff5f9214f65296442ae3aa2ee9b6bde3ab3a6;p=thirdparty%2Fsuricata.git smtp: move constant declaration to header --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index 18616c11db..ea979cdd32 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -111,8 +111,6 @@ #define SMTP_EHLO_EXTENSION_DSN #define SMTP_EHLO_EXTENSION_STARTTLS #define SMTP_EHLO_EXTENSION_8BITMIME -/* Limit till the data would be buffered in current line */ -#define SMTP_LINE_BUFFER_LIMIT 4096 typedef struct SMTPInput_ { /* current input that is being parsed */ diff --git a/src/app-layer-smtp.h b/src/app-layer-smtp.h index f8d0cfc07b..650dd81f01 100644 --- a/src/app-layer-smtp.h +++ b/src/app-layer-smtp.h @@ -28,6 +28,9 @@ #include "util-streaming-buffer.h" #include "rust.h" +/* Limit till the data would be buffered in current line */ +#define SMTP_LINE_BUFFER_LIMIT 4096 + enum { SMTP_DECODER_EVENT_INVALID_REPLY, SMTP_DECODER_EVENT_UNABLE_TO_MATCH_REPLY_WITH_REQUEST,