20 Commits

Author SHA1 Message Date
Rainer Gerhards
dc472ce76b Merge branch 'c8'
Conflicts:
	ChangeLog
	doc/imudp.html
	plugins/imudp/imudp.c
2013-07-11 10:12:52 +02:00
Rainer Gerhards
38aa077ccb imudp: add ability to specify SO_RCVBUF size (rcvbufSize parameter) 2013-07-11 10:01:57 +02:00
Rainer Gerhards
35bec820b6 optimze: reduce memory operations during dns resolution/hostname setting
previously, hostname and ip strings were shuffled to the msg object, which
created a property out of them. Now the cache holds the property, and it
is resused (almost) everywhere, what saves a lot of memory operations.

The only exception is imtcp session setup, where different handling
of the hostname is done, which we need to sort out (but that's another
story).
2013-01-22 16:55:21 +01:00
Rainer Gerhards
0d71694fb3 optimize: have dns cache pre-create rsyslog prop_t's 2013-01-24 06:19:13 +01:00
Rainer Gerhards
eb5c7a0419 optimize: reduce nbr of strcpy() in FROMHOST processing 2013-01-18 14:40:41 +01:00
Rainer Gerhards
9601b181cf added capability to use a local interface IP address as fromhost-ip for imuxsock
new config directives: $IMUXSockLocalIPIF
2012-03-06 17:26:04 +01:00
Rainer Gerhards
604d782f09 minor: moved all code to new isAllowedSender2() interface 2009-11-17 10:43:36 +01:00
Rainer Gerhards
0957820a10 Merge branch 'v4-devel'
Conflicts:
	doc/rsyslog_conf_modules.html
	gss-misc.c
	plugins/imgssapi/imgssapi.c
	plugins/imudp/imudp.c
	plugins/imuxsock/imuxsock.c
	runtime/glbl.c
	runtime/glbl.h
	runtime/net.c
2009-11-17 10:38:46 +01:00
Rainer Gerhards
d8b3669e6d Merge branch 'v3-stable' into v4-stable
Conflicts:
	doc/rsyslog_conf.html
	runtime/net.c
2009-11-17 09:40:43 +01:00
Rainer Gerhards
8c29f28435 moved DNS resolution code out of imudp and into the backend processing
Most importantly, DNS resolution now never happens if the resolved name
is not required. Note that this applies to imudp - for the other inputs,
DNS resolution almost comes for free, so we do not do it there. However,
the new method has been implemented in a generic way and as such may
also be used by other modules in the future.
2009-11-17 08:11:31 +01:00
Rainer Gerhards
f6dfcc7c3d correcting -q/-Q patch - was invalid
This is the correct patch. The previous one solved the segfault, but
disabled the -q/Q options.
2009-11-12 14:21:53 +01:00
Rainer Gerhards
bedc903ae0 Merge branch 'v3-stable' into v4-stable 2009-11-12 14:10:00 +01:00
Rainer Gerhards
e4542eb926 bugfix: segfault on startup when -q or -Q option was given
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=157
Thanks to Jonas Nogueira for reporting this bug.
2009-11-12 14:07:12 +01:00
Rainer Gerhards
1e9febaf28 bugfix: reverse lookup reduction logic in imudp do DNS queries too often
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)
2009-09-03 15:48:57 +02:00
Rainer Gerhards
f0ddbed44c security bugfix: $AllowedSender was not honored,
...all senders were permitted instead
2008-11-29 07:22:48 +01:00
Rainer Gerhards
531f27a8c3 implemented wildcards inside certificate name check authentication 2008-05-27 14:49:45 +02:00
Rainer Gerhards
85b587f93d first implementation of TLS server client authentication check
The TLS server now checks the client fingerprint. This works, but
is highly experimental. Needs to be refined for practice. Also:
- implemented permittedPeers helper construct to store names
- changed omfwd implementation to use new permittedPeers
2008-05-19 18:52:44 +02:00
Rainer Gerhards
09afe64f29 added fromhost-ip properties and some bugfixes
- 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
2008-05-16 13:36:41 +02:00
Rainer Gerhards
71dea8c86f cleanup: removed no longer needed files 2008-04-16 11:45:34 +02:00
Rainer Gerhards
75f3cb34e6 moved net module to runtime
after careful analysis, I concluded that it is OK to
place the current net.c/.h code under LGPL. Individual
contributor agreement is given and no sysklogd code
remains (see net.c for details).
2008-04-16 11:36:22 +02:00