diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-09 11:27:10 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-09 11:27:10 +0200 |
commit | 33c5bb3c08d7f826862ff78816be82cbe09d17eb (patch) | |
tree | b9804574da99fcc792f42310962ac02a6ecf6e2b /tools/omfwd.c | |
parent | a7f8d9988422822e07782c475b06db14dccb58c8 (diff) | |
download | rsyslog-33c5bb3c08d7f826862ff78816be82cbe09d17eb.tar.gz rsyslog-33c5bb3c08d7f826862ff78816be82cbe09d17eb.tar.xz rsyslog-33c5bb3c08d7f826862ff78816be82cbe09d17eb.zip |
first version supporting udp spoofing and non-spoofing at the same time
omudpspoof is now a dedicated output module. It's calling semantics so far
are based on omfwd, plus the need for the template to have the IP address
as a string in the starting position.
Diffstat (limited to 'tools/omfwd.c')
-rw-r--r-- | tools/omfwd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/omfwd.c b/tools/omfwd.c index d0c45cba..f21bb5c8 100644 --- a/tools/omfwd.c +++ b/tools/omfwd.c @@ -206,8 +206,6 @@ static rsRetVal UDPSend(instanceData *pData, char *msg, size_t len) unsigned lsent = 0; int bSendSuccess; -dbgprintf("rebind logic: interval %d, curr %d, mod %d, if %d\n", pData->iUDPRebindInterval, pData->nXmit, - (pData->nXmit % pData->iUDPRebindInterval), ((pData->nXmit % pData->iUDPRebindInterval) == 0)); if(pData->iUDPRebindInterval && (pData->nXmit++ % pData->iUDPRebindInterval == 0)) { dbgprintf("omfwd dropping UDP 'connection' (as configured)\n"); pData->nXmit = 1; /* else we have an addtl wrap at 2^31-1 */ |