All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Ross Vandegrift <ross@kallisti.us>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Netlink error datagrams
Date: Tue, 10 Apr 2007 09:57:04 +0200	[thread overview]
Message-ID: <461B4350.3000102@trash.net> (raw)
In-Reply-To: <20070410040840.GA23429@kallisti.us>

Ross Vandegrift wrote:
> Hello everyone,
> 
> I have a libipq application that I'm using with netfilter.  I have the
> following fragment of code, mostly from the FAQ:
> 
>       status = ipq_read(h, buf, BUFSIZE, 0);
>       if (status < 0)
> 	rr_err ("%s", ipq_errstr ());
>       
>       switch (ipq_message_type(buf))
> 	{
> 	case IPQM_PACKET:
>           /* Do stuff with the packet */
>           break;
> 
> 	case NLMSG_ERROR:
>           ipq_perror ("rrfilter");
> 
> 
> In my production boxes, I'm hitting the NLMSG_ERROR case pretty
> frequently - as often as every minute.  It doesn't seem to adversely
> affect packet processing, but I'm not sure because I can only
> reproduce it with real traffic.
> 
> I've attached via gdb and the netlink messages I'm getting are just a
> header and the four bytes of padding.  ipq_perror reports "Unknown
> failure".


What error code does the header contain?

  reply	other threads:[~2007-04-10  7:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10  4:08 Netlink error datagrams Ross Vandegrift
2007-04-10  7:57 ` Patrick McHardy [this message]
2007-04-10 16:25   ` Ross Vandegrift
2007-04-10 16:50     ` Patrick McHardy
2007-04-10 18:19       ` Ross Vandegrift

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=461B4350.3000102@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=ross@kallisti.us \
    /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.