Guy
I apologize for the late response.
I have considered your suggestion to move pfring into a pcap-pfring.*
file. I think that it's better to leave it into pcap-linux.c as moving
to a separate file would reduce the number of #ifdefs into pcap-
linux.c but this will require some pcap-linux.c code duplication into
pcap-pfring.* that I personally don't like.
Please let me know if the enclosed patch works on your environment.
Thanks in advance, Luca
On Jan 6, 2008, at 9:54 PM, Guy Harris wrote:
Luca Deri wrote:
your comments are very valuable: thanks. I have enclosed a new
patch that should address all of them.
It's still not a context or unified diff, and I've subsequently made
some changes to pcap-linux.c to move the SITA support code into pcap-
sita.c, so the patch didn't apply correctly.
Also:
Would it work better if, for PF_RING sockets, there were a separate
pcap_read_pf_ring, and handle->read_op were set to pcap_read_pf_ring
if a PF_RING socket were being used? That'd avoid some per-packet
checks in the read_op routine, and might involve fewer #ifdefs as
well.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.