]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp: move constant declaration to header
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 6 Apr 2023 12:14:49 +0000 (17:44 +0530)
committerVictor Julien <vjulien@oisf.net>
Wed, 12 Apr 2023 11:59:09 +0000 (13:59 +0200)
src/app-layer-smtp.c
src/app-layer-smtp.h

index 18616c11db97ea93e9707e4a4f3d0078b3df7a63..ea979cdd323e39c05da367fb209e0897c7cc8a31 100644 (file)
 #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 */
index f8d0cfc07bcd646b1712e6074aef4e8cb058a299..650dd81f0114723ded2ace6d5934c0147b220948 100644 (file)
@@ -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,