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 */
30
OutputJsonCtx
*
eve_ctx
;
31
}
OutputJsonEmailCtx
;
32
33
typedef
struct
JsonEmailLogThread_
{
34
OutputJsonEmailCtx
*
emaillog_ctx
;
35
OutputJsonThreadCtx
*
ctx
;
36
}
JsonEmailLogThread
;
37
38
TmEcode
EveEmailLogJson
(
JsonEmailLogThread
*aft, JsonBuilder *js,
const
Packet
*p,
Flow
*f,
void
*state,
void
*vtx, uint64_t tx_id);
39
bool
EveEmailAddMetadata
(
const
Flow
*f, uint64_t tx_id, JsonBuilder *js);
40
41
void
OutputEmailInitConf
(
ConfNode
*conf,
OutputJsonEmailCtx
*email_ctx);
42
43
#endif
/* SURICATA_OUTPUT_JSON_EMAIL_COMMON_H */
JsonEmailLogThread_
Definition:
output-json-email-common.h:33
OutputJsonCtx_
Definition:
output-json.h:81
Flow_
Flow data structure.
Definition:
flow.h:356
OutputJsonThreadCtx_
Definition:
output-json.h:89
OutputJsonEmailCtx
struct OutputJsonEmailCtx_ OutputJsonEmailCtx
OutputJsonEmailCtx_::fields
uint64_t fields
Definition:
output-json-email-common.h:29
JsonEmailLogThread
struct JsonEmailLogThread_ JsonEmailLogThread
OutputEmailInitConf
void OutputEmailInitConf(ConfNode *conf, OutputJsonEmailCtx *email_ctx)
Definition:
output-json-email-common.c:204
Packet_
Definition:
decode.h:476
TmEcode
TmEcode
Definition:
tm-threads-common.h:79
JsonEmailLogThread_::ctx
OutputJsonThreadCtx * ctx
Definition:
output-json-email-common.h:35
OutputJsonEmailCtx_::eve_ctx
OutputJsonCtx * eve_ctx
Definition:
output-json-email-common.h:30
EveEmailAddMetadata
bool EveEmailAddMetadata(const Flow *f, uint64_t tx_id, JsonBuilder *js)
Definition:
output-json-email-common.c:191
ConfNode_
Definition:
conf.h:32
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
OutputJsonEmailCtx_
Definition:
output-json-email-common.h:27
EveEmailLogJson
TmEcode EveEmailLogJson(JsonEmailLogThread *aft, JsonBuilder *js, const Packet *p, Flow *f, void *state, void *vtx, uint64_t tx_id)
Definition:
output-json-email-common.c:167
src
output-json-email-common.h
Generated on Tue Dec 17 2024 23:30:35 for suricata by
1.8.18