]> 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>
Thu, 13 Apr 2023 05:34:48 +0000 (07:34 +0200)
(cherry picked from commit c0bff5f9214f65296442ae3aa2ee9b6bde3ab3a6)

src/app-layer-smtp.c
src/app-layer-smtp.h

index cc7c035ec26277d3df8f8cb4087d1407418c819a..f1aad6eece7a8f1066213636b3aaac2f9c59d77c 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
 
 SCEnumCharMap smtp_decoder_event_table[] = {
     { "INVALID_REPLY", SMTP_DECODER_EVENT_INVALID_REPLY },
index c9a2a15dc1caeac737b42398f4af70ca9070d25a..310fbe430fe882059f94ed6e1b1a5258bc69a584 100644 (file)
@@ -30,6 +30,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,