71 Commits

Author SHA1 Message Date
Rainer Gerhards
d9b0c77d3e some more cleanup
reduced dependencies, moved non-runtime files to its own directory except
for some whom's status is unclear
2008-04-16 15:27:53 +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
Rainer Gerhards
a61f8543ff our BSD define conflicted with a BSD system define
renamed to OS_BSD
2008-04-09 08:11:22 +02:00
Rainer Gerhards
ca77f716a3 cleanup 2008-03-31 16:55:09 +00:00
Rainer Gerhards
c3460c09e7 bugfix: tcp receiver could segfault due to uninitialized variable 2008-03-31 06:41:59 +00:00
Rainer Gerhards
06ffec1c3f bugfix: fixed some minor memory leaks 2008-03-20 09:31:05 +00:00
Rainer Gerhards
b0e8ce6c3d bugfix: TCP (and GSSAPI) octet-counted frame did not work correctly in all
situations. If the header was split across two packet reads, it was
    invalidly processed, causing loss or modification of messages.
2008-03-14 17:03:14 +00:00
Rainer Gerhards
de0665a475 cleanup 2008-03-14 09:31:45 +00:00
Rainer Gerhards
17f36a76cb bugfix: imgssapi segfaulted under some conditions; this fix is actually not
just a fix but a change in the object model. Thanks to varmojfekoj for
    providing the bug report, an initial fix and lots of good discussion
    that lead to where we finally ended up.
2008-03-13 11:04:33 +00:00
Rainer Gerhards
618a7f6a22 changed omgssapi and omfwd to utilize new object calling interface; made a
tcpclt class; (stage work, among others, for more intelligent recovery
    from TCP session recovery)
2008-03-12 14:08:21 +00:00
Rainer Gerhards
e946e122d0 implemented module unload handling (required a number of interface changes) 2008-03-11 16:43:13 +00:00
Rainer Gerhards
dbfc032913 some cleanup 2008-03-07 17:36:57 +00:00
Rainer Gerhards
4db62823e7 renamed library module file names to lm*, so that they match the overall
scheme (like im* and om*)
2008-03-07 17:26:58 +00:00
Rainer Gerhards
edf4d9a678 applied patch from varmojfekoj fixing a deinit bug 2008-03-07 12:04:21 +00:00
Rainer Gerhards
fa67273c16 - added RSYSLOGD_MODDIR environment variable
- added -M rsyslogd option (allows to specify module directory location)
- converted net.c into a loadable library plugin
2008-03-07 08:06:16 +00:00
Rainer Gerhards
24b02dc831 - extracted logerror*() family of functions from syslogd, made them their
own class and converted to new object calling conventions
    (interface-based)
- converted gss-misc into a loadable library module
2008-03-05 14:53:25 +00:00
Rainer Gerhards
545346e697 - changed modules.c calling conventions to be interface-based
- moved module loader from conf.c to module.c, where it belongs
- made the necessary plumbing to auto-load library modules
- upgraded debug system to include iRet in function exit message
- changed module interface so that instances need only to be supported by
    output plugins (if we actually need them for input plugins, we can
    always add it again...)
- milestone: first implementation of library modules (but do not get
    unloaded on exit/hup so far)
2008-03-05 10:30:06 +00:00
Rainer Gerhards
cb71628f67 fixed newly introduced bugs in imgssapi and imtcp and their helpers now
plain tcp works again
2008-03-03 12:40:04 +00:00
Rainer Gerhards
4273036019 made imgssapi compile 2008-03-03 09:04:59 +00:00
Rainer Gerhards
9d8eb28ebd - added class tcps
- added class tcps_sess
- changed imtcp to use new classes; seems to work; imgssapi currently
    broken
2008-03-02 10:19:25 +00:00
Rainer Gerhards
483be40471 enhanced imtcp, among others to handel invalid NetScreen framing
- added $InputTCPServerAddtlFrameDelimiter config directive, which
  enabeles to specify an additional, non-standard message delimiter
  for processing plain tcp syslog. This is primarily a fix for the invalid
  framing used in Juniper's NetScreen products. Credit to forum user
  Arv for suggesting this solution.
- added $InputTCPServerInputName property, which enables a name to be
  specified that will be available during message processing in the
  inputname property. This is considered useful for logic that treats
  messages differently depending on which input received them.
2008-12-10 14:26:19 +01:00