From 1812fca3ae635ec209a7aa047e7157cb762f60a4 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 4 Nov 2010 00:18:14 +0100 Subject: doc: discourage the use of nflog_set_nlbufsiz() The default buffer size (which is one memory page) provides the best results in terms of performance. For that reason, noone should use nflog_set_nlbufsiz() to set up a higher buffer in the applications (even if this is supported by the nfnetlink_log). Davem spotted this during the Netfilter Workshop 2010. Signed-off-by: Pablo Neira Ayuso --- src/libnetfilter_log.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libnetfilter_log.c') diff --git a/src/libnetfilter_log.c b/src/libnetfilter_log.c index 7ca36a8..76ed436 100644 --- a/src/libnetfilter_log.c +++ b/src/libnetfilter_log.c @@ -541,6 +541,10 @@ int nflog_set_qthresh(struct nflog_g_handle *gh, u_int32_t qthresh) * This function sets the size (in bytes) of the buffer that is used to * stack log messages in nflog. * + * NOTE: The use of this function is strongly discouraged. The default + * buffer size (which is one memory page) provides the optimum results + * in terms of performance. Do not use this function in your applications. + * * \return -1 in case of error and errno is explicity set. */ int nflog_set_nlbufsiz(struct nflog_g_handle *gh, u_int32_t nlbufsiz) -- cgit v1.2.3