summaryrefslogtreecommitdiffstats
path: root/syslogd-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd-types.h')
-rw-r--r--syslogd-types.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/syslogd-types.h b/syslogd-types.h
index c5da7da4..f41e18b7 100644
--- a/syslogd-types.h
+++ b/syslogd-types.h
@@ -24,12 +24,16 @@
*/
#ifndef SYSLOGD_TYPES_INCLUDED
#define SYSLOGD_TYPES_INCLUDED 1
-
#include "config.h" /* make sure we have autoconf macros */
+
#include "stringbuf.h"
+#include "net.h"
#include <sys/param.h>
#include <sys/syslog.h>
+#define FALSE 0
+#define TRUE 1
+
#ifdef UT_NAMESIZE
# define UNAMESZ UT_NAMESIZE /* length of a login name */
#else
@@ -285,6 +289,14 @@ typedef struct moduleInfo {
} mod;
} modInfo_t;
+#ifdef SYSLOG_INET
+struct AllowedSenders {
+ struct NetAddr allowedSender; /* ip address allowed */
+ uint8_t SignificantBits; /* defines how many bits should be discarded (eqiv to mask) */
+ struct AllowedSenders *pNext;
+};
+#endif
+
#endif /* #ifndef SYSLOGD_TYPES_INCLUDED */
/*
* vi:set ai: