59 Commits

Author SHA1 Message Date
Pascal Withopf
b63a6b9010 codestyle: line length adjusted 2017-01-17 08:54:37 +01:00
David Ahern
19e5d06f66 omfwd imudp: Add support for bind-to-device
Add support for bind-to-device option to omfwd and imudp modules.
Configured using device="name". Only new syntax format is supported.
e.g.,

input(type="imudp" port=["10514"] device="eth0" name="udp")
action(type="omfwd" Target="192.168.1.23" Port="10514" Device="eth0")

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
2016-11-15 17:55:56 -07:00
Rainer Gerhards
448f16495c remove "inline" attribute from excessivly long functions 2016-10-26 11:50:15 +02:00
Rainer Gerhards
cfacd4c30f code cleanup: fix compiler warnings that newly came up
we got a bunch of new ones under updated Fedora
2016-10-11 14:10:25 +02:00
Nirmoy Das
5f12c9b57e imudp: add config option for IP_FREEBIND socket option
ipfreebind config option by default enables IP_FREEBIND socket
option with warn message on success.
2016-03-22 15:42:53 +01:00
Rainer Gerhards
3ca97fb385 bugfix: omudpspoof: invalid default send template in RainerScript format
The file format template was used, which obviously does not work for
forwarding. Thanks to Christopher Racky for alerting us.
closes https://github.com/rsyslog/rsyslog/issues/268
2015-03-16 18:51:14 +01:00
Rainer Gerhards
6c5b6a2ec2 remove --enable-zlib configure option, we always require it
It's hard to envision a system without zlib, so we turn this off
closes https://github.com/rsyslog/rsyslog/issues/76
2014-10-29 18:37:13 +01:00
Pavel Levshin
08f8ee1b49 Omudpspoof: Minor cleanup of compiler warnings. 2014-09-03 21:12:59 +04:00
Pavel Levshin
3042fa3a61 Omudpspoof: fix incorrect source ports, caused by wrong byte order. 2014-09-03 21:07:47 +04:00
Rainer Gerhards
2582e84fd8 omudpspoof: support v8 omod interface
so far untested
2013-11-13 12:01:48 +01:00
Rainer Gerhards
4e04480206 omudpspoof: cleanup code that could never execute 2013-11-06 12:26:57 +01:00
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
d0cefac7a7 cleanup 2013-04-24 11:09:37 +02:00
Martin Carpenter
e523107a96 Update u_int8_t to uint8_t 2013-04-10 08:56:40 +02:00
Rainer Gerhards
72bb582877 cosmetic: re-use existing error code instead of new one 2012-12-18 12:06:17 +01:00
Rainer Gerhards
6f8b8ebd9b omudpspoof: remove dead code
On-the-fly compression support code was present since the initial
module was written, however, no config options existed to actually
activate it. I have now removed that code for clarity (obviously
there is no need to maintain it or add the feature - nobody ever
complained in the past...)
2012-12-18 10:01:26 +01:00
Rainer Gerhards
03ff013c24 omudpspoof: improve libnet calling sequence
retains bugfix while increasing performance again
2012-12-18 09:56:55 +01:00
Rainer Gerhards
5d2dd9d758 omudpspoof: add action parameter for mtu size 2012-12-18 09:18:15 +01:00
Rainer Gerhards
405313c39d omudpspoof: initialize libnet for each message
This is a brute-force troubleshooting aid. Will later be changed to
better code.
2012-12-18 09:08:32 +01:00
Rainer Gerhards
4a7f216ac0 omudpspoof: add support for new config system 2012-12-17 16:17:46 +01:00
Rainer Gerhards
dee36d5954 Merge branch 'v6-stable' into v7-stable
Conflicts:
	plugins/omudpspoof/omudpspoof.c
2012-12-17 15:17:24 +01:00
Rainer Gerhards
283ec2d6e8 Merge branch 'v5-stable' into v6-stable 2012-12-17 15:11:20 +01:00
Rainer Gerhards
0014a37998 bugfix[kind of]: omudpspoof discarded messages >1472 bytes (MTU size)
it now truncates these message, but ensures they are sent. Note that
7.2.5+ will switch to fragmented UDP messages instead (up to 64K)
2012-12-17 15:10:55 +01:00
Rainer Gerhards
ffd0a1248e omudpspoof: add support for packets larger than 1472 bytes
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.
2012-12-17 14:32:58 +01:00
Rainer Gerhards
a15a74c7a0 omudpspoof: better debug output 2012-12-17 10:09:06 +01:00
Rainer Gerhards
fec5feee0e add extra debug info to tackle omudpspoof problem 2012-12-17 08:47:42 +01:00
Rainer Gerhards
de71589ca3 Merge branch 'v6-stable'
Conflicts:
	ChangeLog
	configure.ac
	runtime/ruleset.c
	tools/syslogd.c
2012-08-25 12:19:56 +02:00
Rainer Gerhards
8939ccfffd Merge branch 'v5-stable' into v6-stable
Conflicts:
	ChangeLog
	action.c
	configure.ac
	doc/manual.html
	runtime/ruleset.c
	template.h
	threads.c
	tools/syslogd.c
2012-08-25 11:55:41 +02:00
Rainer Gerhards
9faf2240c4 changed TRUE/FALSE to RSTRUE/RSFALSE
This is done to prevent name claches with libraries.
2012-08-22 15:29:02 +02:00
Rainer Gerhards
b950b86228 omudpspoof: support for module() global config parameters added 2012-06-25 18:09:39 +02:00
Rainer Gerhards
ef12fd6b1d omudpspoof: remove actually not existing compresion level param
This seems to be a copy&paste problem from the initial implementation.
The parameter was never documented (how could it have been? ;)), so this
causes no problems. In fact, it also did nothing except setting a few
never-used variables ;)
2012-06-25 18:03:01 +02:00
Rainer Gerhards
ac272a5aeb Merge branch 'v6-stable' into beta
Conflicts:
	plugins/omudpspoof/omudpspoof.c
	tools/syslogd.c
2012-06-15 18:20:33 +02:00
Rainer Gerhards
6ce405a13e Merge branch 'v5-stable' into v6-stable 2012-06-15 16:12:42 +02:00
Rainer Gerhards
33acb956db bugfix: randomized IP option header in omudpspoof caused problems
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=327
Thanks to Rick Brown for helping to test out the patch.
2012-06-15 16:08:16 +02:00
Rainer Gerhards
56fc7acc06 Merge branch 'v5-stable' into v6-stable 2012-06-01 16:11:11 +02:00
Rainer Gerhards
6bc629021e Merge branch 'v5-beta' into beta
Conflicts:
	ChangeLog
2012-05-29 11:36:13 +02:00
Rainer Gerhards
131e581845 bugfix/omudpspoof: problems, including abort, happend when run on multiple threads.
Root cause is that libnet is not thread-safe. Omudpspoof now
guards libnet calls with their own mutex.
2012-05-14 09:05:38 +02:00
Rainer Gerhards
9ec02e670a cleanup: removed unused but set parameters 2012-04-23 17:31:26 +02:00
Rainer Gerhards
f949f5c037 bugfix: omudpspoof did not work correctly if no spoof hostname was configured 2012-04-23 17:07:20 +02:00
Rainer Gerhards
535d6cf0b8 v6.1/2 scoping support removed from plugins 2012-01-19 14:48:40 +01:00
Rainer Gerhards
6624ad434b Merge branch 'v6-stable-noscoping' into master
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/imfile/imfile.c
	plugins/imklog/imklog.c
	plugins/immark/immark.c
	plugins/imptcp/imptcp.c
	plugins/imrelp/imrelp.c
	plugins/imtcp/imtcp.c
	plugins/imtemplate/imtemplate.c
	plugins/imudp/imudp.c
	plugins/imuxsock/imuxsock.c
	plugins/mmsnmptrapd/mmsnmptrapd.c
	plugins/omtemplate/omtemplate.c
	runtime/glbl.c
	runtime/parser.c
	tools/omfile.c
	tools/syslogd.c
2012-01-19 13:07:46 +01:00
Rainer Gerhards
9b24152b6a undoing v6.1 config scoping interface, part I
The most common files are now changed, more needs to be done.
2012-01-18 18:21:08 +01:00
Rainer Gerhards
a7e3afb20b milestone: added module config names 2011-07-20 10:47:24 +02:00
Rainer Gerhards
bbe1f2688c renaming conf.* wasn't a good idea -- undoing
too many dependencies, things get cluttered (and merging probably
gets problematic). Now new config will be "conf2".
2011-04-19 08:24:25 +02:00
Rainer Gerhards
e1c34e1741 renamed conf.c to legacyconf.c to make room for new config system 2011-04-19 07:53:23 +02:00
Rainer Gerhards
6c3ef4dacf Merge branch 'v5-beta'
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/omlibdbi/omlibdbi.c
	tests/Makefile.am
	tests/diag.sh
2011-03-11 10:24:58 +01:00
Bojan Smojver
d1eb6e0edc added work-around for bug in gtls, which causes fd leak when using TLS
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>
2011-02-23 11:25:43 +01:00
Rainer Gerhards
99b3b670e8 Merge branch 'master' into tmp
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/omudpspoof/omudpspoof.c
	runtime/rsyslog.h

also updated omuxsock and imptcp to new interfaces
2010-08-11 13:49:36 +02:00
Rainer Gerhards
e4c926bfbc changed omudpspoof default spoof address to simplify typical use case 2010-08-05 15:44:01 +02:00