* poll() call gives POLLERR, then hangs
@ 2009-03-26 12:02 Ingmar Schuster
[not found] ` <49D1C32F.9020309@netfilter.org>
0 siblings, 1 reply; 2+ messages in thread
From: Ingmar Schuster @ 2009-03-26 12:02 UTC (permalink / raw)
To: netfilter
Hi all,
in a userspace firewall (using libnetfilter_queue-0.0.17,
libnfnetlink-0.0.41) I'm writing some strange behavior appeared when
testing with tcpreplay.
Starting tcpreplay on another computer to replay packets onto the
firewall, the packets are received in userspace at first. After a
while the poll() call sets POLLERR in revents, and after a while calls
to poll() just wont return to the calling function. More exactly, it
is __kernel_vsyscall() that doesn't return. Starting netcat in
parallel to tcpreplay makes poll() on the firewall return.
Does anybody have an idea what's causing this?
Thanks
Ingmar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: poll() call gives POLLERR, then hangs
[not found] ` <49D1C32F.9020309@netfilter.org>
@ 2009-03-31 10:32 ` Ingmar Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Ingmar Schuster @ 2009-03-31 10:32 UTC (permalink / raw)
To: Pablo Neira Ayuso, netfilter
Hey,
solved the problem already. It turned out not to be a bug in netfilter.
First there was a slight error in the way I rewrote the MAC addresses in
the pcap file. Then tcprewrite had a bug that caused one MAC to be
rewritten incorrectly. I fixed that with a sed-like tool called bbe.
Yours
Ingmar
Pablo Neira Ayuso schrieb:
> if you can send a very small pet program that can allow me to reproduce
> this error that you're reporting, it would be much easier to diagnose.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-31 10:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-26 12:02 poll() call gives POLLERR, then hangs Ingmar Schuster
[not found] ` <49D1C32F.9020309@netfilter.org>
2009-03-31 10:32 ` Ingmar Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox