summaryrefslogtreecommitdiffstats
path: root/runtime/net.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v4-stable' into v5-stableRainer Gerhards2011-08-091-1/+1
|\
| * bugfix: memcpy overflow can occur in allowed sender checkingMarius Tomaschewski2011-08-091-1/+1
| | | | | | | | | | | | | | ...if a host name is resolved to IPv4-mapped-on-IPv6 address. Found by Ismail Dönmez at suse. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | added work-around for bug in gtls, which causes fd leak when using TLSBojan Smojver2011-02-231-0/+1
| | | | | | | | | | | | | | | | The capability has been added for module to specify that they do not like being unloaded. related bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=222 Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | Merge branch 'v4-devel' into masterRainer Gerhards2010-04-231-4/+4
|\ \ | | | | | | | | | | | | | | | Conflicts: runtime/rsyslog.h runtime/wtp.c
| * | solved alignment errors on Solaris SparcRainer Gerhards2010-04-221-4/+4
| |/
* | Merge branch 'beta' into masterRainer Gerhards2010-04-091-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac plugins/imudp/imudp.c runtime/stream.h tests/Makefile.am tests/diag.sh tools/omfile.c
| * | Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-03-291-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html runtime/debug.c runtime/stream.c tests/Makefile.am tests/diskqueue.sh tests/nettester.c tools/omfile.c
| | * bugfix(minor): BSD_SO_COMPAT query function had some global vars not ↵Rainer Gerhards2010-03-221-2/+2
| | | | | | | | | | | | | | | | | | | | | properly initialized. However, in practice the loader initializes them with zero, the desired value, so there were no actual issue in almost all cases.
| * | Merge branch 'v4-beta' into betaRainer Gerhards2009-11-251-0/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html doc/rsyslog_conf_modules.html tests/Makefile.am tests/sndrcv_drvr.sh
* | | Merge branch 'v4-devel'Rainer Gerhards2009-11-171-0/+3
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Merge branch 'v3-stable' into v4-stableRainer Gerhards2009-11-171-0/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: doc/rsyslog_conf.html runtime/net.c
| | * | correcting -q/-Q patch - was invalidRainer Gerhards2009-11-121-0/+3
| | | | | | | | | | | | | | | | | | | | This is the correct patch. The previous one solved the segfault, but disabled the -q/Q options.
* | | | moved DNS resolution code out of imudp and into the backend processingRainer Gerhards2009-11-171-9/+52
| |_|/ |/| | | | | | | | | | | | | | | | | | | | 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.
* | | enhanced test environment (including testbench)Rainer Gerhards2009-10-221-6/+6
|/ / | | | | | | | | | | | | | | support for enhancing probability of memory addressing failure by using non-NULL default value for malloced memory (optional, only if requested by configure option). This helps to track down some otherwise undetected issues within the testbench and is expected to be very useful in the future.
* | bugfix: reverse lookup reduction logic in imudp do DNS queries too oftenRainer Gerhards2009-09-031-0/+44
| | | | | | | | | | | | | | | | | | 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)
* | integrated various patches for solarisRainer Gerhards2009-03-051-0/+5
| | | | | | | | | | | | | | | | | | Unfortunatley, I do not have the full list of contributors available. The patch set was compiled by Ben Taylor, and I made some further changes to adopt it to the news rsyslog branch. Others provided much of the base work, but I can not find the names of the original authors. If you happen to be one of them, please let me know so that I can give proper credits.
* | Merge branch 'beta'Rainer Gerhards2009-01-271-0/+29
|\| | | | | | | | | Conflicts: tools/omfile.c
| * Merge branch 'v3-stable' into betaRainer Gerhards2009-01-271-0/+29
| |\ | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| | * Merge branch 'debian_lenny' into v3-stableRainer Gerhards2009-01-121-0/+29
| | | | | | | | | | | | | | | Conflicts: ChangeLog
* | | resolved compile problem, e.g. on FreeBSDRainer Gerhards2008-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | I commented out some debug code that is only useful in some testing scenarios and re-enabled the old code. This solved a FreeBSD compile issue. Also, I fixed some other syntax error, which somehow went into the tree (I am still puzzled about that, especially as some have already and successfully build from that tree... anyhow ;)).
* | | added $PreserveFQDN config file directiveRainer Gerhards2008-12-081-1/+3
|/ / | | | | | | Enables to use FQDNs in sender names where the legacy default
* | Merge branch 'v3-stable' into betaRainer Gerhards2008-12-041-0/+2
|\| | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * minor: net.c did not compile if GSSAPI support was disabledRainer Gerhards2008-12-031-0/+2
| |
* | Merge branch 'v3-stable' into betaRainer Gerhards2008-11-291-18/+51
|\| | | | | | | | | Conflicts: runtime/rsyslog.h
| * security bugfix: $AllowedSender was not honored,Rainer Gerhards2008-11-291-18/+51
| | | | | | | | ...all senders were permitted instead
* | fixed git merge bug (duplicate code could not be detected)Rainer Gerhards2008-10-021-19/+0
| |
* | Merge branch 'master' into helgrindRainer Gerhards2008-10-021-0/+21
|\|
| * Merge branch 'v3-stable' into betaRainer Gerhards2008-10-021-3/+24
| | | | | | | | | | | | Conflicts: runtime/net.c
* | removed no longer needed mutex callsRainer Gerhards2008-10-021-3/+0
| | | | | | | | | | | | problem source is that getnameinfo() is not cancel-safe, not that it is not thread-safe. It is now guarded against cancellation.
* | prevent getnameinfo() from being cancelledRainer Gerhards2008-09-301-2/+5
| | | | | | | | | | ... but removed the mutex, as the problem seems to be in cancel processing, so the mutex is no longer necessary
* | improved threadingRainer Gerhards2008-09-301-4/+22
|/ | | | | | | | - changed sequence when awakening thread - removed no longer needed condition variable - EXPERIMENTALLY added mutex guarding to hostname lookups this is to be removed if it does not have any verifyable useful effect
* added (internal) error codes to error messagesRainer Gerhards2008-06-271-29/+28
| | | | | Also added redirector to web description of error codes closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
* bugfix: off-by-one bug during certificate checkRainer Gerhards2008-06-041-2/+4
|
* bugfix: part of permittedPeer structure was not correctly initializedRainer Gerhards2008-06-031-2/+1
| | | | thanks to varmojfekoj for spotting this
* Merge branch 'ietf-tls'Rainer Gerhards2008-05-271-0/+274
|\
| * implemented wildcards inside certificate name check authenticationRainer Gerhards2008-05-271-0/+274
| |
* | bugfix: sender information (fromhost et al) was missing in imudpRainer Gerhards2008-05-211-1/+1
|/ | | | thanks to sandiso for reporting this bug
* first implementation of TLS server client authentication checkRainer Gerhards2008-05-191-0/+64
| | | | | | | 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
* added fromhost-ip properties and some bugfixesRainer Gerhards2008-05-161-6/+9
| | | | | | | | | | - 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
* added new "netstrm" class (not yet implemented)Rainer Gerhards2008-04-171-1/+0
|
* changelog added plus typo fixRainer Gerhards2008-04-171-1/+1
|
* moved host/domain-name related variables to global data poolRainer Gerhards2008-04-171-8/+7
|
* moved "DisableDNS" variable to global data poolRainer Gerhards2008-04-171-3/+3
|
* moved "bDropMalPTRMsgs" variable to global data poolRainer Gerhards2008-04-171-1/+1
|
* moved "family" variable to global data poolRainer Gerhards2008-04-171-1/+4
|
* removed no longer needed thingsRainer Gerhards2008-04-161-4/+0
| | | | | ... and some more cleanup. Also moved a file that I forgot (thanks to Michael Biebl for pointing that out).
* some more cleanupRainer Gerhards2008-04-161-1/+1
| | | | | reduced dependencies, moved non-runtime files to its own directory except for some whom's status is unclear
* moved net module to runtimeRainer Gerhards2008-04-161-0/+1149
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).