All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: Christian Riechmann <riechmann@fgan.de>,
	Netfilter Development Mailinglist
	<netfilter-devel@lists.netfilter.org>
Subject: Re: "No buffer space available" upon ipq_read
Date: Thu, 29 Jul 2004 14:08:18 +0200	[thread overview]
Message-ID: <4108E8B2.1070305@eurodev.net> (raw)
In-Reply-To: <20040729104449.GA2202@rie.rie.priv>

Christian Riechmann wrote:

>	Which buffer is meant ? 
>  
>

there's a buffer in kernel space, if I remember well, when it gets full 
the socket flag overrun is set, that's why you get that error when you 
try to read() in user space.

>and
>	Which are some reasons for this error situation ?
>  
>

kernel has sent more messages than it can storage in the buffer.

>I use iptables- 1.2.9 and I am pretty sure, that all packets read into
>user space are verdicted. The user space program does not expand its used
>memory the more it runs.
>  
>

This is netlink related, note that libipq is built on top of netlink 
sockets so it inherits this limitation.

you could fix that setting a bigger buffer via sysctl:

echo 524280 > /proc/sys/net/core/rmem_default
echo 524280 > /proc/sys/net/core/rmem_max
echo 524280 > /proc/sys/net/core/wmem_default
echo 524280 > /proc/sys/net/core/wmem_max

regards,
Pablo

      reply	other threads:[~2004-07-29 12:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 10:44 "No buffer space available" upon ipq_read Christian Riechmann
2004-07-29 12:08 ` Pablo Neira [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4108E8B2.1070305@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=riechmann@fgan.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.