summaryrefslogtreecommitdiffstats
path: root/plugins/imudp
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-12-08 15:42:47 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2008-12-08 15:42:47 +0100
commit60b8ce14bf33e76237cf82dd1f68acc750e64316 (patch)
treed237ae8806139dfdfcd466b99d67244bc84a509c /plugins/imudp
parent128edc1598a13c894fe3853673d1231b9feafc39 (diff)
downloadrsyslog-60b8ce14bf33e76237cf82dd1f68acc750e64316.tar.gz
rsyslog-60b8ce14bf33e76237cf82dd1f68acc750e64316.tar.xz
rsyslog-60b8ce14bf33e76237cf82dd1f68acc750e64316.zip
added $PreserveFQDN config file directive
Enables to use FQDNs in sender names where the legacy default
Diffstat (limited to 'plugins/imudp')
-rw-r--r--plugins/imudp/imudp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index 0193ac06..72450513 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -181,6 +181,7 @@ processSocket(int fd, struct sockaddr_storage *frominetPrev, int *pbIsPermitted,
/* check if we have a different sender than before, if so, we need to query some new values */
if(memcmp(&frominet, frominetPrev, socklen) != 0) {
CHKiRet(net.cvthname(&frominet, fromHost, fromHostFQDN, fromHostIP));
+DBGPRINTF("returned: fromHost '%s', FQDN: '%s'\n", fromHost, fromHostFQDN);
memcpy(frominetPrev, &frominet, socklen); /* update cache indicator */
/* Here we check if a host is permitted to send us
* syslog messages. If it isn't, we do not further