netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] ulogd2 patches
@ 2008-01-11 15:09 Peter Warasin
  2008-01-11 15:09 ` [PATCH 1/5] openlog() to syslog for global ulogd log messages Peter Warasin
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Peter Warasin @ 2008-01-11 15:09 UTC (permalink / raw)
  To: netfilter-devel

Hi guys

This patchset is against ulogd2 subversion repository.

The actual code in subversion did not work for me with the
following stack:
stack=log1:NFLOG,base1:BASE,ifi2:IFINDEX,print1:PRINTPKT,emu1:SYSLOG
stack=log2:ULOG,base2:BASE,print1:PRINTPKT,emu2:SYSLOG

The patch set fixes some problems after which ulogd2 works for me with
this plugin stack.


Patch #4 is a workaround of the following problem,
of which i am not quite sure is really no problem of
ulogd2, but i think so:

After every successful received packet coming from the ULOG
netlink, namely in the next iteration of ipulog_read() in
ulog_read_cb(), ipulog_read() returns -1 and thus logs an
error.
This happens because the recvfrom() within ipulog_netlink_recvfrom()
fails with EAGAIN, which in reality should'nt, since the
select() should only return when packets are present.

I think it is probably this kernel bug:
http://bugzilla.kernel.org/show_bug.cgi?id=5498

I'm not sure if it is really that bug, but i think so, because
libipulog had virtually no changes between ulogd1 and ulogd2
and ulogd1 does not have this problem. The only thing which
changed is that the netlink socket is now O_NONBLOCK, which
IMHO indicates that it must be that kernel bug.

Probably it is already solved with newer kernel versions.
I tested on 2.6.22.15

BTW: finally managed to set up quilt correctly, so these patches
should now be inline :)

kind regards,
Peter

--

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

end of thread, other threads:[~2008-01-12 14:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 15:09 [PATCH 0/5] ulogd2 patches Peter Warasin
2008-01-11 15:09 ` [PATCH 1/5] openlog() to syslog for global ulogd log messages Peter Warasin
2008-01-12 14:41   ` Patrick McHardy
2008-01-11 15:09 ` [PATCH 2/5] Dont ntohs() mac_len of ULOG, since it is not in network byte order Peter Warasin
2008-01-12 14:43   ` Patrick McHardy
2008-01-11 15:09 ` [PATCH 3/5] Logs also ipulog_strerror() and strerror() within ULOG plugin Peter Warasin
2008-01-12 14:44   ` Patrick McHardy
2008-01-11 15:09 ` [PATCH 4/5] Workaround of recvfrom() EAGAIN bug Peter Warasin
2008-01-12 14:48   ` Patrick McHardy
2008-01-11 15:09 ` [PATCH 5/5] stores the converted syslog parameters set within config file Peter Warasin
2008-01-12 14:48   ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).