From 03ff013c2412c27ef1c4cb580f55c912a6fbab3f Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 18 Dec 2012 09:56:55 +0100 Subject: omudpspoof: improve libnet calling sequence retains bugfix while increasing performance again --- ChangeLog | 5 ++++ doc/omudpspoof.html | 4 +++ plugins/omudpspoof/omudpspoof.c | 60 ++++++++++++++++++++++++++++------------- runtime/rsyslog.h | 1 + 4 files changed, 52 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index b439c76a..fb8547c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ Version 7.2.5 [v7-stable] 2013-01-?? On Ethernet, they need to be transmitted in multiple fragments. While it is known that fragmentation can cause issues, it is the best choice to be made in that case. Also improved debug output. +- bugfix: omudpspoof failed depending on the execution environment + The v7 engine closes fds, and closed some of libnet's fds as well, what + lead to problems (unfortunately, at least some libnet versions do not + report a proper error state but still "success"...). The order of libnet + calls has been adjusted to by in sync with what the core engine does. - build system cleanup (thanks to Michael Biebl for this!) - bugfix: omelasticsearch did not properly compile on some platforms due to missing libmath. Thanks to Michael Biebl for the fix diff --git a/doc/omudpspoof.html b/doc/omudpspoof.html index ffbd04e1..930412c8 100644 --- a/doc/omudpspoof.html +++ b/doc/omudpspoof.html @@ -15,6 +15,10 @@ and David Lang <david@lang.hm>

This module is similar to the regular UDP forwarder, but permits to spoof the sender address. Also, it enables to circle through a number of source ports. +

Important: This module requires root priveleges for its low-level +socket access. As such, the module will not work if rsyslog is configured to +drop privileges. +

load() Parameters: