All of lore.kernel.org
 help / color / mirror / Atom feed
* Netlink error datagrams
@ 2007-04-10  4:08 Ross Vandegrift
  2007-04-10  7:57 ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: Ross Vandegrift @ 2007-04-10  4:08 UTC (permalink / raw)
  To: netfilter-devel

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".

Any hints as to what's causing me to receive these netlink messages?
How can I figure out what's gone wrong and if it's worth worrying
about?

Thanks in advance!

-- 
Ross Vandegrift
ross@kallisti.us

"The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man in the bonds of Hell."
	--St. Augustine, De Genesi ad Litteram, Book II, xviii, 37

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-10 18:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-10  4:08 Netlink error datagrams Ross Vandegrift
2007-04-10  7:57 ` Patrick McHardy
2007-04-10 16:25   ` Ross Vandegrift
2007-04-10 16:50     ` Patrick McHardy
2007-04-10 18:19       ` Ross Vandegrift

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.