summaryrefslogtreecommitdiff
path: root/pcap-int.h
diff options
context:
space:
mode:
authortorsten <torsten>2000-06-08 06:40:09 +0000
committertorsten <torsten>2000-06-08 06:40:09 +0000
commit94de442535f9b75c9ba8babfc945e60d77376662 (patch)
treedc0e8dee8c9af55cca46e97fd1d8f79dd13aaad3 /pcap-int.h
parent299da87b7de4e3582eb487e7498369964a0e016e (diff)
downloadlibpcap-94de442535f9b75c9ba8babfc945e60d77376662.tar.gz
Merged the Linux v2.2 packet support into the main trunk (from
tag linux-2-2-packet). Please test this code :)
Diffstat (limited to 'pcap-int.h')
-rw-r--r--pcap-int.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/pcap-int.h b/pcap-int.h
index bfa20988..8d14aacc 100644
--- a/pcap-int.h
+++ b/pcap-int.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.21 2000-05-04 13:34:24 itojun Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.22 2000-06-08 06:40:10 torsten Exp $ (LBL)
*/
#ifndef pcap_int_h
@@ -52,16 +52,17 @@ struct pcap_sf {
struct pcap_md {
struct pcap_stat stat;
/*XXX*/
- int use_bpf;
+ int use_bpf; /* using kernel filter */
u_long TotPkts; /* can't oflow for 79 hrs on ether */
u_long TotAccepted; /* count accepted by filter */
u_long TotDrops; /* count of dropped packets */
long TotMissed; /* missed by i/f during this run */
long OrigMissed; /* missed by i/f before this run */
#ifdef linux
- int pad;
- int skip;
- char *device;
+ int sock_packet; /* using Linux 2.0 compatible interface */
+ int timeout; /* timeout specified to pcap_open_live */
+ int promisc; /* running in promiscuous mode */
+ char *device; /* device name */
#endif
};