Skip to content

Commit

Permalink
smtp: move constant declaration to header
Browse files Browse the repository at this point in the history
  • Loading branch information
inashivb authored and victorjulien committed Apr 12, 2023
1 parent aacb7dc commit c0bff5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app-layer-smtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 3 additions & 0 deletions src/app-layer-smtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0bff5f

Please sign in to comment.