summaryrefslogtreecommitdiffstats
path: root/runtime/net.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-03-06 17:26:04 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-03-06 17:26:04 +0100
commit9601b181cf5d2166e2c813973e82a4b48002e83f (patch)
treee37462aa039960ea92c4203347d2958c65bf8341 /runtime/net.h
parente5f728face744ee6cfe2924da251a428a16c63d8 (diff)
downloadrsyslog-9601b181cf5d2166e2c813973e82a4b48002e83f.tar.gz
rsyslog-9601b181cf5d2166e2c813973e82a4b48002e83f.tar.xz
rsyslog-9601b181cf5d2166e2c813973e82a4b48002e83f.zip
added capability to use a local interface IP address as fromhost-ip for imuxsock
new config directives: $IMUXSockLocalIPIF
Diffstat (limited to 'runtime/net.h')
-rw-r--r--runtime/net.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/net.h b/runtime/net.h
index 101ce79d..1b41c81c 100644
--- a/runtime/net.h
+++ b/runtime/net.h
@@ -1,6 +1,6 @@
/* Definitions for network-related stuff.
*
- * Copyright 2007, 2008 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2007-2012 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of the rsyslog runtime library.
*
@@ -151,11 +151,13 @@ BEGINinterface(net) /* name must also be changed in ENDinterface macro! */
/* v6 interface additions - 2009-11-16 */
rsRetVal (*HasRestrictions)(uchar *, int *bHasRestrictions);
int (*isAllowedSender2)(uchar *pszType, struct sockaddr *pFrom, const char *pszFromHost, int bChkDNS);
+ /* v7 interface additions - 2012-03-06 */
+ rsRetVal (*GetIFIPAddr)(uchar *szif, int family, uchar *pszbuf, int lenBuf);
/* data members - these should go away over time... TODO */
int *pACLAddHostnameOnFail; /* add hostname to acl when DNS resolving has failed */
int *pACLDontResolve; /* add hostname to acl instead of resolving it to IP(s) */
ENDinterface(net)
-#define netCURR_IF_VERSION 6 /* increment whenever you change the interface structure! */
+#define netCURR_IF_VERSION 7 /* increment whenever you change the interface structure! */
/* prototypes */
PROTOTYPEObj(net);