-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconnectmon.c
43 lines (39 loc) · 1001 Bytes
/
connectmon.c
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
37
38
39
40
41
42
43
/* connectmon.c
* Copyright (C) 2006-2007 Tillmann Werner <[email protected]>
*
* This file is free software; as a special exception the author gives
* unlimited permission to copy and/or distribute it, with or without
* modifications, as long as this notice is preserved.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include <errno.h>
#include <stdlib.h>
#include "honeytrap.h"
#include "connectmon.h"
#include "logging.h"
#include "dynsrv.h"
#include "ctrl.h"
#include "pcapmon.h"
#include "ipqmon.h"
#include "nfqmon.h"
int start_connection_monitor(void) {
/* call connection monitor for activated type */
#ifdef USE_IPQ_MON
start_ipq_mon();
#else
#ifdef USE_PCAP_MON
start_pcap_mon();
#else
#ifdef USE_NFQ_MON
start_nfq_mon();
#else
#ifdef USE_IPFW_MON
#endif
#endif
#endif
#endif
return(1);
}