tcpdump mailing list archives
Pcap to read packets received on a character device
From: narender <dnarenderreddy () gmail com>
Date: Thu, 18 Aug 2011 12:15:49 +0530
Hi , I would like to know if its possible to know if its possible to read packets from a linux character device using libpcap. If yes, I would like to know how this can be achieved. I have an application which writes packets to the character device and these packets are to be read by another application, do some processing and hand it back. I was checkin the code in pcap-linux.c where we have hooks for DAG and SEPTEL devices. Should it be done in the similar way. Also I would like to know if I can set the filters in libpcap for this character device so that I can ignore packets which are not of any interest to me and avoid them from being copied to the user space. Can I also make use of the ring buffer mechanism to avoid buffer copy. How can this be done. Regards Narender - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Pcap to read packets received on a character device narender (Aug 17)
