summaryrefslogtreecommitdiff
path: root/sysutils/logtool/files/patch-src_mods.h
blob: c2d760025f6de5fc5f1b1e56b4fe59c497e1d45f (plain) (blame)
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
--- src/mods.h.orig	2003-04-17 11:21:37 UTC
+++ src/mods.h
@@ -45,12 +45,12 @@ short int ltm_iptables();
 char *get_host(char *host);
 
 /* for the snort log lines (this one's a bit complicated)	*/
-short int ltm_snort();
+extern short int ltm_snort();
 
 /* variables to tell us if we're to use the functions in question or not	*/
-short int ltm_use_syslog;
-short int ltm_use_snort;
-short int ltm_use_sudo;
+extern short int ltm_use_syslog;
+extern short int ltm_use_snort;
+extern short int ltm_use_sudo;
 /* "ltm_unknown(); we allways have enabled (otherwise, what's the use?		*/
 
 /* data structs for iptables and snort and so-on for linking in event->special  */
@@ -66,7 +66,7 @@ typedef struct {
         char class[512];        /* Classification: field */
         char prior[512];        /* Priority: field */
 } SNORT;
-SNORT sn;
+extern SNORT sn;
 
 /* repeat for iptables variables */
 typedef struct {
@@ -84,7 +84,7 @@ typedef struct {
         char ttl[64];           /* TTL=ttl      packet time to live     */
         char proto[64];         /* PROTO=UDP    protocol of datagram    */
 } IPTABLES;
-IPTABLES it;
+extern IPTABLES it;
 
 /* a wrapper struct so's we can point to structs like the above from 
  * event.* struct (see logtool.h for this struct) */