Re: [tcpdump-workers] How does packet capture interact with

2009-09-23 Thread Aaron Turner
On Wed, Sep 23, 2009 at 2:39 PM, Robert Burgess wrote: >> Or you could consider not using pcap at all. I don't know what your >> application is but it's possible you could accomplish it just by >> receiving and sending on raw IP sockets. That's also quite portable. > > Thanks for this suggestion!

Re: [tcpdump-workers] How does packet capture interact with firewalls?

2009-09-23 Thread Robert Burgess
> Or you could consider not using pcap at all. I don't know what your > application is but it's possible you could accomplish it just by > receiving and sending on raw IP sockets. That's also quite portable. Thanks for this suggestion! I read a bunch of documentation claiming it was actually high

Re: [tcpdump-workers] How does packet capture interact with firewalls?

2009-09-23 Thread Phil Vandry
On Wed, 23 Sep 2009 16:38:06 -0400, Robert Burgess wrote: > I guess I'm not sure. What I want is a chain of these things so that > each one waits for the previous to pass on the packet, and I don't want > to tie myself down to the topology. On a switched ether, for instance, OK. That definitely

Re: [tcpdump-workers] How does packet capture interact with

2009-09-23 Thread Robert Burgess
> interface, so if it receives a packet off the network, its only choices > would be to deliver it locally, or have some way of reinjecting back > onto the ethernet. I guess I should mention, I'm expecting the administrator of the firewall or whatever to ensure that these things are actually in a

Re: [tcpdump-workers] How does packet capture interact with firewalls?

2009-09-23 Thread Robert Burgess
> It sounds like you are capturing and injecting on the same interface > (otherwise you wouldn't get that infinite loop). Is that really what > you need to do? I guess I'm not sure. What I want is a chain of these things so that each one waits for the previous to pass on the packet, and I don't w

Re: [tcpdump-workers] How does packet capture interact with firewalls?

2009-09-23 Thread Phil Vandry
On Wed, 23 Sep 2009 14:01:53 -0400, Robert Burgess wrote: > iptables firewall) and they still appear in my pcap program (the first > half), but when I try to reinject, depending on what setup I try, either > the injected packets get dropped too, or they get injected correctly but > also recaptured,

[tcpdump-workers] How does packet capture interact with firewalls?

2009-09-23 Thread Robert Burgess
I am writing a program that captures packets, does some processing on each one, and does not permit it to be delivered on until the processing for that packet is done. I can accomplish this easily without pcap using the Linux kernel 2.6 support for netfilter queues, so if you have any experience w