[tcpdump-workers] libpcap capture performance drop

2010-08-10 Thread Doktor Bernd
Hello, I am experiencing the same problem as described in http://news.gmane.org/find-root.php?message_id=%3c972613.6039.qm%40web59701.mail.ac4.yahoo.com%3e I have written a software that captures Ethernet frames and forwards them to different interfaces. On Ubuntu 8.10 the software is able to

Re: [tcpdump-workers] libpcap capture performance drop

2010-08-15 Thread Doktor Bernd
e drop > From: g...@alum.mit.edu > Date: Fri, 13 Aug 2010 14:00:22 -0700 > To: tcpdump-workers@lists.tcpdump.org > > > On Aug 10, 2010, at 3:35 AM, Doktor Bernd wrote: > > > I am experiencing the same problem as described in > > http://news.gmane.org/find-root.php?

Re: [tcpdump-workers] libpcap capture performance drop

2010-09-06 Thread Doktor Bernd
Hi, back from vacation I had some time to test libpcap again > > thanks for the advice. If I use libpcap 1.1.1 compiled with the > > HAVE_PACKET_RING stuff commented out, the my softare performs very well. > > Ubuntu currently ships with 1.0.0.6 I think. If I use that version my > > applicatio

[tcpdump-workers] pcap_setdirection not working anymore?

2010-10-19 Thread Doktor Bernd
Hi, I have a software that captures packets from an interface and also injects packets on the same interface. When I wrote the software I was using Ubuntu 8.10 with pcap 0.9 something. Today I wanted to use it again and tried to run it on Ubuntu 10.04 with pcap 1.1.1, but the software now captu

Re: [tcpdump-workers] pcap_setdirection not working anymore?

2010-10-19 Thread Doktor Bernd
Hi again, I noticed that for pcap_setdirection HAVE_PF_PACKET_SOCKETS must be defined. But it is not defined for my build. What do I need for HAVE_PF_PACKET_SOCKETS to be defined when I compile libpcap on my own? Bernd > From: doktorbe...@hotmail.com > To: tcpdump-workers@lists.tcpdump.org >

Re: [tcpdump-workers] pcap_setdirection not working anymore?

2010-10-20 Thread Doktor Bernd
Ok, my problem is solved. The libpcap from Ubuntu (version 1.0. something) was interfering with my self compiled libpcap 1.1.1. Now I have removed the Ubuntu compiled version and everything is fine. So I think pcap_setdirection is not working in the Ubuntu packaged version, but compiling my own

Re: [tcpdump-workers] libpcap capture performance drop

2011-05-26 Thread Doktor Bernd
ump-workers] libpcap capture performance drop > From: g...@alum.mit.edu > Date: Fri, 20 May 2011 12:02:42 -0700 > To: tcpdump-workers@lists.tcpdump.org > > > On Sep 6, 2010, at 11:45 AM, Doktor Bernd wrote: > > > If I recompile with the HAVE_PACKET_RING stuff *not* co

[tcpdump-workers] Influence of pcap_open_live parameters on pcap_sendpacket

2011-08-16 Thread Doktor Bernd
Hi, I am trying to optimize my program by adjusting the parameters of pcap_open_live(). In my program, I am opening the same interface twice and use one handle in a thread for capturing packets and the other handle in a second thread for writing Two questions: - Do the two pcap_open_live()

Re: [tcpdump-workers] Influence of pcap_open_live parameters on

2011-08-17 Thread Doktor Bernd
ers] Influence of pcap_open_live parameters on > pcap_sendpacket > From: g...@alum.mit.edu > Date: Tue, 16 Aug 2011 09:34:37 -0700 > To: tcpdump-workers@lists.tcpdump.org > > > On Aug 16, 2011, at 5:10 AM, Doktor Bernd wrote: > > > Two questions: > > - Do the t

Re: [tcpdump-workers] libpcap capture performance drop

2011-08-23 Thread Doktor Bernd
hat happens. > > All the best, > Bernd > > > Subject: Re: [tcpdump-workers] libpcap capture performance drop > > From: g...@alum.mit.edu > > Date: Fri, 20 May 2011 12:02:42 -0700 > > To: tcpdump-workers@lists.tcpdump.org > > > > > > On Sep 6, 2010, at