From c0bff5f9214f65296442ae3aa2ee9b6bde3ab3a6 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Thu, 6 Apr 2023 17:44:49 +0530 Subject: [PATCH] smtp: move constant declaration to header --- src/app-layer-smtp.c | 2 -- src/app-layer-smtp.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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,