summaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-16 07:24:23 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-16 07:24:23 +0000
commita8c6819d7e1cc570a0c2c633d6b6bfa635685d23 (patch)
tree9b517cb70e8c8637be0e74332311dec5241938ae /net.h
parent63e43e656a9f900cbc58494b2c935b677ef76b94 (diff)
downloadrsyslog-a8c6819d7e1cc570a0c2c633d6b6bfa635685d23.tar.gz
rsyslog-a8c6819d7e1cc570a0c2c633d6b6bfa635685d23.tar.xz
rsyslog-a8c6819d7e1cc570a0c2c633d6b6bfa635685d23.zip
added patch by mildew@gmail.com to support IPv6 in $AllowedSender
Diffstat (limited to 'net.h')
-rw-r--r--net.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/net.h b/net.h
new file mode 100644
index 00000000..f985940b
--- /dev/null
+++ b/net.h
@@ -0,0 +1,28 @@
+/*
+ * FIXME: All network stuff should go here (and to net.c)
+ */
+
+//#ifdef SYSLOG_INET
+
+#define F_SET(where, flag) (where)|=(flag)
+#define F_ISSET(where, flag) ((where)&(flag))==(flag)
+#define F_UNSET(where, flag) (where)&=~(flag)
+
+#define ADDR_NAME 0x01 /* address is hostname wildcard) */
+#define ADDR_PRI6 0x02 /* use IPv6 address prior to IPv4 when resolving */
+
+#ifdef BSD
+#ifndef _KERNEL
+#define s6_addr32 __u6_addr.__u6_addr32
+#endif
+#endif
+
+struct NetAddr {
+ uint8_t flags;
+ union {
+ struct sockaddr *NetAddr;
+ char *HostWildcard;
+ } addr;
+};
+
+//#endif