|
|
|
@ -24,15 +24,14 @@
|
|
|
|
#ifndef __OUTPUT_JSON_H__
|
|
|
|
#ifndef __OUTPUT_JSON_H__
|
|
|
|
#define __OUTPUT_JSON_H__
|
|
|
|
#define __OUTPUT_JSON_H__
|
|
|
|
|
|
|
|
|
|
|
|
void TmModuleOutputJsonRegister (void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBJANSSON
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <jansson.h>
|
|
|
|
|
|
|
|
#include "suricata-common.h"
|
|
|
|
#include "suricata-common.h"
|
|
|
|
#include "util-buffer.h"
|
|
|
|
#include "util-buffer.h"
|
|
|
|
#include "util-logopenfile.h"
|
|
|
|
#include "util-logopenfile.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void TmModuleOutputJsonRegister (void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBJANSSON
|
|
|
|
|
|
|
|
|
|
|
|
void CreateJSONFlowId(json_t *js, const Flow *f);
|
|
|
|
void CreateJSONFlowId(json_t *js, const Flow *f);
|
|
|
|
void JsonTcpFlags(uint8_t flags, json_t *js);
|
|
|
|
void JsonTcpFlags(uint8_t flags, json_t *js);
|
|
|
|
json_t *CreateJSONHeader(Packet *p, int direction_sensative, char *event_type);
|
|
|
|
json_t *CreateJSONHeader(Packet *p, int direction_sensative, char *event_type);
|
|
|
|
|