summaryrefslogtreecommitdiffstats
path: root/daemon/common.h
blob: 4a8e6b172d246bd5482a68fc9b528a8dcc8b8800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef foocommonhfoo
#define foocommonhfoo

#include <sys/types.h>
#include <glib.h>
#include <libipq/libipq.h>

#define SOCKET_PATH "/tmp/fieryfilter"

typedef enum message_code {
    MSG_PACKET = 0,
    MSG_VERDICT = 1,
    MSG_SET_DEFAULT_VERDICT = 2
} message_code_t;

typedef struct message {
    message_code_t code;
    pid_t pid;
    guint32 length;
} message_t;


#endif