~ubuntu-branches/ubuntu/precise/rsyslog/precise

« back to all changes in this revision

Viewing changes to plugins/imrelp/imrelp.c

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2011-11-07 13:54:56 UTC
  • mfrom: (16.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20111107135456-cwt6mu19ski1h2qf
Tags: 5.8.6-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Run as rsyslog:rsyslog, set $FileOwner to syslog
  - Replace init script with debian/rsyslog.upstart.
  - debian/rsyslog.logrotate: Use reload command to restart rsyslog
  - debian/rsyslog.conf: enable $RepeatedMsgReduction 
    to avoid bloating the syslog file (LP #453444)
  - Add debian/rsyslog.dmesg.upstart to save initial dmesg into a file.
    Install it in debian/rules.
  - debian/50-default.conf: set of default rules for syslog (forwarded to
    Debian #603160). remove file in postrm on purge. manage with ucf.
  - debian/rules: build with LDFLAGS=""
* Dropped:
  - debian/patches/02-CVE-2011-3200.patch (fixed in upstream release)

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
 
62
62
/* config settings */
63
 
static int iTCPSessMax = 200; /* max number of sessions */
64
 
 
65
63
 
66
64
/* ------------------------------ callbacks ------------------------------ */
67
65
#if 0
173
171
static rsRetVal
174
172
resetConfigVariables(uchar __attribute__((unused)) *pp, void __attribute__((unused)) *pVal)
175
173
{
176
 
        iTCPSessMax = 200;
177
174
        return RS_RET_OK;
178
175
}
179
176
 
197
194
        /* register config file handlers */
198
195
        CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputrelpserverrun", 0, eCmdHdlrGetWord,
199
196
                                   addListener, NULL, STD_LOADABLE_MODULE_ID));
200
 
        CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputrelpmaxsessions", 0, eCmdHdlrInt,
201
 
                                   NULL, &iTCPSessMax, STD_LOADABLE_MODULE_ID));
202
197
        CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler,
203
198
                resetConfigVariables, NULL, STD_LOADABLE_MODULE_ID));
204
199
ENDmodInit