summaryrefslogtreecommitdiffstats
path: root/plugins/imudp/imudp.c
Commit message (Collapse)AuthorAgeFilesLines
* imudp: removing new scheduling priority setting codeRainer Gerhards2011-01-101-42/+0
| | | | | as it had too many implications. This will now be part of v5 only.
* added $IMUDPSchedulingPolicy and $IMUDPSchedulingPriority config settingsRainer Gerhards2010-12-171-0/+42
|
* Merge branch 'v4-stable-solaris' into v4-develRainer Gerhards2010-04-121-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html tools/omfile.c tools/syslogd.c
| * enabled imudp to send complete text of large messages to debug logRainer Gerhards2010-03-181-1/+1
| | | | | | | | | | ... it turns out that this is sometimes extremely useful when debugging real-world problems at user sites.
* | integrating varmojfekoj's "unlimited select()" patch into v4-develRainer Gerhards2009-11-171-6/+14
|\ \ | |/ |/|
| * added option to use unlimited-size select() callsvarmojfekoj2009-11-171-6/+14
| | | | | | | | | | | | Thanks to varmjofekoj for the patch Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | Merge branch 'v4-stable' into v4-beta & BUGFIXRainer Gerhards2009-10-011-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html runtime/datetime.h runtime/parser.c runtime/rsyslog.h tools/syslogd.c v4-stable had a bug with RFC5424-formatted structured data, which showed was detected by the enhanced automatted testbench of v4-beta.
| * bugfix: zero-sized UDP messages are no longer processedRainer Gerhards2009-09-291-0/+3
| | | | | | | | | | | | | | Until now, they were forwarded to processing, but this makes no sense Also, it looks like the system seems to provide a zero return code on a UDP recvfrom() from time to time for some internal reasons. These "receives" are now silently ignored.
* | Merge branch 'v4-stable' into v4-betaRainer Gerhards2009-09-031-1/+1
|\| | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * bugfix: reverse lookup reduction logic in imudp do DNS queries too oftenRainer Gerhards2009-09-031-1/+1
| | | | | | | | | | | | | | | | | | A comparison was done between the current and the former source address. However, this was done on the full sockaddr_storage structure and not on the host address only. This has now been changed for IPv4 and IPv6. The end result of this bug could be a higher UDP message loss rate than necessary (note that UDP message loss can not totally be avoided due to the UDP spec)
* | now put the new property-based methods to good useRainer Gerhards2009-07-011-3/+9
| | | | | | | | | | | | ... hopefully reducing the number of allocs/frees as well as overall memory usage in a busy system (plus that these shared properties hopefully remain in cache longer than its single-instance counterparts...)
* | RcvFromIP now also a propertyRainer Gerhards2009-07-011-1/+1
| | | | | | | | | | | | This sets stage to enable use of the property-interface to speed up things (mildly), the next step to be done. I have also fixed one regression of yesterday's changes.
* | introduced a new way of handling the RcvFrom propertyRainer Gerhards2009-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | ... plus a fix for a long-time bug in obj-types.h. That lead to the object pointer only then to become NULL when the object was actually destructed, I discovered this issue during introduction of the pRcvFrom property in msg_t, but it potentially had other effects, too. I am not sure if some experienced instability resulted from this bug OR if its fix will cause harm to so-far "correctly" running code. The later may very well be. Thus I will change it only for the current branch and also the beta, but not in all old builds. Let's see how things evolve.
* | finished transition to using inputName propertyRainer Gerhards2009-06-301-2/+0
| | | | | | | | | | ... plus some celanup and adding minor missing functionality (the rule debug info again tell the property name, not just number).
* | introduced the idea of detached propertiesRainer Gerhards2009-06-291-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | some things inside the message can be used over a large number of messages and need to to be allocated and re-written every time. I now begin to implement this as a "prop_t" object, first use for the inputName. Some input modules are already converted, some others to go. Will do a little performance check on the new method before I go further. Also, this commit has some cleanup and a few bug fixes that prevented compiliation in debug mode (I overlooked this as I did not compile for debug, what I normally do, and the automatted test also does not do that)
* | cleaned up/optimized raw message handling in msg objectRainer Gerhards2009-06-181-4/+1
| |
* | Merge branch 'master' into omfileRainer Gerhards2009-06-161-2/+2
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.h tcps_sess.c tcpsrv.c tools/syslogd.c
| * some performance optimizationsRainer Gerhards2009-06-161-2/+2
| | | | | | | | | | | | - saved gettimeofday() calls in imtcp (and increased reception buffer) - somewhat optimized stringbuf.c - some other optimizations
* | performance-enhanced imtcpRainer Gerhards2009-06-121-1/+30
|/ | | | | ...by now using lowres time and thus saving many time() calls. This needs some performance testing and must be made configurable if it works out.
* Merge branch 'beta' into masterRainer Gerhards2009-05-281-1/+1
|\ | | | | | | | | Conflicts: tests/Makefile.am
| * Merge branch 'v3-stable' into betaRainer Gerhards2009-05-281-1/+1
| |\ | | | | | | | | | | | | Conflicts: tests/Makefile.am
| | * bugfix: potential segfault issue when multiple $UDPServerRun directives are ↵Rainer Gerhards2009-05-121-1/+1
| | | | | | | | | | | | | | | | | | specified. Thanks to Michael Biebl for helping to debug this one.
* | | added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | Well, actually this and a lot of related things. I improved the testbench so that the new capabilities are automatically tested and also did some general cleanup. The current multiple tcp listener solution will probably receive some further cleanup, too, but looks quite OK so far. I also reviewed the way tcpsrv et all work, in preparation of using this code for imdiag. I need to document the findings, especially as the code is rather complicated "thanks" to the combination of plain tcp and gssapi transport modes.
* | bugfix: parser did not correctly parse fields in UDP-received messagesRainer Gerhards2009-03-101-1/+1
| |
* | added $PreserveFQDN config file directiveRainer Gerhards2008-12-081-0/+1
| | | | | | | | Enables to use FQDNs in sender names where the legacy default
* | bugfix: imudp went into an endless loop under some circumstancesRainer Gerhards2008-12-081-3/+3
| | | | | | | | | | (but could also leave it under some other circumstances...) Thanks to David Lang and speedfox for reporting this issue.
* | Merge branch 'beta'Rainer Gerhards2008-12-051-4/+14
|\| | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imudp/imudp.c
| * Merge branch 'v3-stable' into betav3.21.9Rainer Gerhards2008-12-041-2/+13
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imudp/imudp.c
| | * security fix: imudp emitted a message when a non-permitted sender...v3.20.2Rainer Gerhards2008-12-041-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | ...tried to send a message to it. This behaviour is operator-configurable. If enabled, a message was emitted each time. That way an attacker could effectively fill the disk via this facility. The message is now emitted only once in a minute (this currently is a hard-coded limit, if someone comes up with a good reason to make it configurable, we will probably do that).
* | | Merge branch 'beta'Rainer Gerhards2008-12-041-5/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html doc/rsyslog_conf.html plugins/imudp/imudp.c runtime/rsyslog.h
| * | Merge branch 'v3-stable' into betaRainer Gerhards2008-11-291-5/+2
| |\| | | | | | | | | | | | | Conflicts: runtime/rsyslog.h
| | * security bugfix: $AllowedSender was not honored,Rainer Gerhards2008-11-291-5/+2
| | | | | | | | | | | | ...all senders were permitted instead
* | | moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-3/+1
| | | | | | | | | | | | | | | | | | This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
* | | restoring msg parsing for imudpRainer Gerhards2008-10-091-0/+1
| | | | | | | | | | | | | | | | | | I tried to work too quick this morning. A side-effect of an earlier change was that no UDP messages were parsed, which lead to their loss, because no PRI was set in this case.
* | | reordered imudp processing.Rainer Gerhards2008-10-081-6/+21
| | | | | | | | | | | | | | | | | | Message parsing is now done as part of main message queue worker processing (was part of the input thread) This should also improve performance, as potentially more work is done in parallel.
* | | restructured imudp receive loopRainer Gerhards2008-10-081-60/+85
| | | | | | | | | | | | | | | | | | | | | | | | cleaned up previous code and redid it in a way that makes it much easier to extend it also added a new macro DBGPRINTF which is a performance-optimzed version of dbgprintf
* | | "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-2/+4
| | | | | | | | | | | | | | | | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.
* | | simple (yet efficient) name caching added to imudpRainer Gerhards2008-10-071-2/+18
| | |
* | | added $UDPServerTimeRequery optionRainer Gerhards2008-10-061-3/+17
| | | | | | | | | | | | | | | | | | | | | ...which enables to work with less acurate timestamps in favor of performance. This enables querying of the time only every n-th time if imudp is running in the tight receive loop (aka receiving messsages at a high rate)
* | | performance-optimized imudpRainer Gerhards2008-10-021-32/+44
| | |
* | | some code cleanupRainer Gerhards2008-10-021-50/+48
|/ / | | | | | | removed code not actually needed in imupd
* | Merge branch 'beta'Rainer Gerhards2008-09-221-2/+6
|\|
| * Merge branch 'v3-stable' into betaRainer Gerhards2008-09-221-2/+6
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| | * bugfix: imudp input module could cause segfault on HUPRainer Gerhards2008-09-221-2/+6
| | | | | | | | | | | | | | | It did not properly de-init a variable acting as a linked list head. That resulted in trying to access freed memory blocks after the HUP.
* | | added properties "inputname" and "$myhostname"Rainer Gerhards2008-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - added message property "inputname", which contains the name of the input (module) that generated it. Presence is depending on suport in each input module (else it is blank). - added system property "$myhostname", which contains the name of the local host as it knows itself.
* | | removed compile time fixed message size limit (was 2K)Rainer Gerhards2008-09-021-2/+5
|/ / | | | | | | | | The limit can now be set via $MaxMessageSize global config directive (finally gotten rid of MAXLINE ;))
* | added (internal) error codes to error messagesRainer Gerhards2008-06-271-2/+2
| | | | | | | | | | Also added redirector to web description of error codes closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
* | added fromhost-ip properties and some bugfixesRainer Gerhards2008-05-161-2/+3
| | | | | | | | | | | | | | | | | | | | - bugfix: TCP input modules did incorrectly set fromhost property (always blank) - bugfix: imklog did not set fromhost property - added "fromhost-ip" property - added "RSYSLOG_DebugFormat" canned template - bugfix: hostname and fromhost were swapped when a persisted message (in queued mode) was read in
* | some cleanup (gotten rid of some more plain chars)Rainer Gerhards2008-05-061-1/+1
| |
* | moved "option_DisallowWarning" variable to global data poolRainer Gerhards2008-04-171-1/+5
| |