suricata
output-json-email-common.h
Go to the documentation of this file.
1 /* Copyright (C) 2007-2021 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file
20  *
21  * \author Tom DeCanio <td@npulsetech.com>
22  */
23 
24 #ifndef SURICATA_OUTPUT_JSON_EMAIL_COMMON_H
25 #define SURICATA_OUTPUT_JSON_EMAIL_COMMON_H
26 
27 typedef struct OutputJsonEmailCtx_ {
28  uint32_t flags; /** Store mode */
29  uint64_t fields;/** Store fields */
32 
33 typedef struct JsonEmailLogThread_ {
37 
38 TmEcode EveEmailLogJson(JsonEmailLogThread *aft, SCJsonBuilder *js, const Packet *p, Flow *f,
39  void *state, void *vtx, uint64_t tx_id);
40 bool EveEmailAddMetadata(const Flow *f, uint64_t tx_id, SCJsonBuilder *js);
41 
42 void OutputEmailInitConf(SCConfNode *conf, OutputJsonEmailCtx *email_ctx);
43 
44 #endif /* SURICATA_OUTPUT_JSON_EMAIL_COMMON_H */
OutputEmailInitConf
void OutputEmailInitConf(SCConfNode *conf, OutputJsonEmailCtx *email_ctx)
Definition: output-json-email-common.c:208
EveEmailAddMetadata
bool EveEmailAddMetadata(const Flow *f, uint64_t tx_id, SCJsonBuilder *js)
Definition: output-json-email-common.c:195
JsonEmailLogThread_
Definition: output-json-email-common.h:33
OutputJsonCtx_
Definition: output-json.h:75
Flow_
Flow data structure.
Definition: flow.h:356
EveEmailLogJson
TmEcode EveEmailLogJson(JsonEmailLogThread *aft, SCJsonBuilder *js, const Packet *p, Flow *f, void *state, void *vtx, uint64_t tx_id)
Definition: output-json-email-common.c:170
OutputJsonThreadCtx_
Definition: output-json.h:83
OutputJsonEmailCtx
struct OutputJsonEmailCtx_ OutputJsonEmailCtx
OutputJsonEmailCtx_::fields
uint64_t fields
Definition: output-json-email-common.h:29
JsonEmailLogThread
struct JsonEmailLogThread_ JsonEmailLogThread
Packet_
Definition: decode.h:484
TmEcode
TmEcode
Definition: tm-threads-common.h:80
JsonEmailLogThread_::ctx
OutputJsonThreadCtx * ctx
Definition: output-json-email-common.h:35
OutputJsonEmailCtx_::eve_ctx
OutputJsonCtx * eve_ctx
Definition: output-json-email-common.h:30
JsonEmailLogThread_::emaillog_ctx
OutputJsonEmailCtx * emaillog_ctx
Definition: output-json-email-common.h:34
OutputJsonEmailCtx_::flags
uint32_t flags
Definition: output-json-email-common.h:28
SCConfNode_
Definition: conf.h:32
OutputJsonEmailCtx_
Definition: output-json-email-common.h:27