⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smtp_config.h

📁 snort2.8.4版本
💻 H
字号:
/**************************************************************************** * * Copyright (C) 2005-2008 Sourcefire Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as * published by the Free Software Foundation.  You may not use, modify or * distribute this program under any other version of the GNU General * Public License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ****************************************************************************//*************************************************************************** * * smtp_config.h * * Author: Andy Mullican * Author: Todd Wease * ***************************************************************************/#ifndef __SMTP_CONFIG_H__#define __SMTP_CONFIG_H__#define CONF_SEPARATORS                  " \t\n\r"#define CONF_PORTS                       "ports"#define CONF_INSPECTION_TYPE             "inspection_type"#define CONF_NORMALIZE                   "normalize"#define CONF_NORMALIZE_CMDS              "normalize_cmds"#define CONF_IGNORE_DATA                 "ignore_data"#define CONF_IGNORE_TLS_DATA             "ignore_tls_data"#define CONF_MAX_COMMAND_LINE_LEN        "max_command_line_len"#define CONF_MAX_HEADER_LINE_LEN         "max_header_line_len"#define CONF_MAX_RESPONSE_LINE_LEN       "max_response_line_len"#define CONF_ALT_MAX_COMMAND_LINE_LEN    "alt_max_command_line_len"#define CONF_NO_ALERTS                   "no_alerts"#define CONF_VALID_CMDS                  "valid_cmds"#define CONF_INVALID_CMDS                "invalid_cmds"#define CONF_PRINT_CMDS                  "print_cmds"#define CONF_ALERT_UNKNOWN_CMDS          "alert_unknown_cmds"#define CONF_XLINK2STATE                 "xlink2state"#define CONF_ENABLE                      "enable"#define CONF_DISABLE                     "disable"#define CONF_INLINE_DROP                 "drop"#define CONF_STATEFUL                    "stateful"#define CONF_STATELESS                   "stateless"#define CONF_YES                         "yes"#define CONF_ALL                         "all"#define CONF_NONE                        "none"#define CONF_CMDS                        "cmds"#define CONF_START_LIST "{"#define CONF_END_LIST   "}"#define NORMALIZE_NONE 0#define NORMALIZE_CMDS 1#define NORMALIZE_ALL  2#define ACTION_ALERT      0#define ACTION_NO_ALERT   1#define ACTION_NORMALIZE  2#define DEFAULT_MAX_COMMAND_LINE_LEN    0#define DEFAULT_MAX_HEADER_LINE_LEN     0#define DEFAULT_MAX_RESPONSE_LINE_LEN   0#define SMTP_DEFAULT_SERVER_PORT       25  /* SMTP normally runs on port 25 */#define SMTP_DEFAULT_SUBMISSION_PORT  587  /* SMTP Submission port - see RFC 2476 */#define XLINK2STATE_DEFAULT_PORT      691  /* XLINK2STATE sometimes runs on port 691 */#define ERRSTRLEN   512typedef struct _SMTPConfig{    char  ports[8192];    char  inspection_type;    char  normalize;    char  ignore_data;    char  ignore_tls_data;    int   max_command_line_len;    int   max_header_line_len;    int   max_response_line_len;    char  no_alerts;    char  alert_unknown_cmds;    char  alert_xlink2state;    char  drop_xlink2state;    char  print_cmds;    } SMTPConfig;typedef struct _SMTPCmdConfig{    char alert;          /*  1 if alert when seen                          */    char normalize;      /*  1 if we should normalize this command         */    int  max_line_len;   /*  Max length of this particular command         */} SMTPCmdConfig;/* Function prototypes  */void SMTP_ParseArgs(char *);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -