[PATCH 0/5] ulogd2 patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux