summaryrefslogtreecommitdiffstats
path: root/runtime/net.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-01-18 14:40:41 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-01-18 14:40:41 +0100
commiteb5c7a04199028703a328d199c36ac6f5b631ccd (patch)
treec0cb250fa64025f0e9a953b2f4c3af62ac1a13eb /runtime/net.h
parent947cc0a45ddf7144532f37626fa0c547e357e3af (diff)
downloadrsyslog-eb5c7a04199028703a328d199c36ac6f5b631ccd.tar.gz
rsyslog-eb5c7a04199028703a328d199c36ac6f5b631ccd.tar.bz2
rsyslog-eb5c7a04199028703a328d199c36ac6f5b631ccd.zip
optimize: reduce nbr of strcpy() in FROMHOST processing
Diffstat (limited to 'runtime/net.h')
-rw-r--r--runtime/net.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/net.h b/runtime/net.h
index 1b41c81c..a38328a9 100644
--- a/runtime/net.h
+++ b/runtime/net.h
@@ -1,6 +1,6 @@
/* Definitions for network-related stuff.
*
- * Copyright 2007-2012 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2007-2013 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of the rsyslog runtime library.
*
@@ -131,7 +131,7 @@ struct permittedPeers_s {
/* interfaces */
BEGINinterface(net) /* name must also be changed in ENDinterface macro! */
- rsRetVal (*cvthname)(struct sockaddr_storage *f, uchar *pszHost, uchar *pszHostFQDN, uchar *pszIP);
+ rsRetVal (*cvthname)(struct sockaddr_storage *f, uchar *pszHost, uchar *pszHostFQDN, uchar **pszIP, rs_size_t *lenIP);
/* things to go away after proper modularization */
rsRetVal (*addAllowedSenderLine)(char* pName, uchar** ppRestOfConfLine);
void (*PrintAllowedSenders)(int iListToPrint);
@@ -156,8 +156,9 @@ BEGINinterface(net) /* name must also be changed in ENDinterface macro! */
/* 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) */
+ /* v8 cvthname() signature change -- rgerhards, 2013-01-18 */
ENDinterface(net)
-#define netCURR_IF_VERSION 7 /* increment whenever you change the interface structure! */
+#define netCURR_IF_VERSION 8 /* increment whenever you change the interface structure! */
/* prototypes */
PROTOTYPEObj(net);