From d4bb5b3c36a1cbd17a2d59a9f3fc626b2dd3352d Mon Sep 17 00:00:00 2001 From: laforge Date: Fri, 23 Jul 2004 04:14:12 +0000 Subject: move more stuff from ulogd.c to libulog plugin --- input/packet/ulogd_inppkt_ULOG.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'input/packet/ulogd_inppkt_ULOG.c') diff --git a/input/packet/ulogd_inppkt_ULOG.c b/input/packet/ulogd_inppkt_ULOG.c index 5cc3a58..f44638b 100644 --- a/input/packet/ulogd_inppkt_ULOG.c +++ b/input/packet/ulogd_inppkt_ULOG.c @@ -7,6 +7,17 @@ #include +/* Size of the socket recevive memory. Should be at least the same size as the + * 'nlbufsiz' module loadtime parameter of ipt_ULOG.o + * If you have _big_ in-kernel queues, you may have to increase this number. ( + * --qthreshold 100 * 1500 bytes/packet = 150kB */ +#define ULOGD_RMEM_DEFAULT 131071 + +/* Size of the receive buffer for the netlink socket. Should be at least of + * RMEM_DEFAULT size. */ +#define ULOGD_BUFSIZE_DEFAULT 150000 + + static config_entry_t bufsiz_ce = { NULL, "bufsize", CONFIG_TYPE_INT, CONFIG_OPT_NONE, 0, { value: ULOGD_BUFSIZE_DEFAULT } }; -- cgit v1.2.3