blob: 1eb0eb30e43a3c477ac85f6f03eb604b5b472c5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include <tfe_stream.h>
#include <tfe_http.h>
struct log_rule_t
{
long long config_id;
int service_id;
unsigned char do_log;
unsigned char do_blacklist;
unsigned char action;
char *srv_def_large;
int vsys_id;
};
struct proxy_log
{
const struct tfe_stream *stream;
const struct tfe_http_session* http;
const struct log_rule_t *result;
size_t result_num;
struct evbuffer* req_body, *resp_body;
unsigned char action;
size_t inject_sz;
size_t c2s_byte_num;
size_t s2c_byte_num;
};
struct proxy_logger;
struct proxy_logger* proxy_log_handle_create(const char* profile, const char* section, void* local_logger);
//return 0 if SUCCESS, otherwise return -1
int proxy_send_log(struct proxy_logger* handle, const struct proxy_log* log_msg);
|