2019-08-25 12:49:16 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2005-04-17 02:20:36 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
|
|
|
|
*/
|
|
|
|
|
2012-10-08 06:27:32 +04:00
|
|
|
#include <net_user.h>
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
struct pcap_data {
|
|
|
|
char *host_if;
|
|
|
|
int promisc;
|
|
|
|
int optimize;
|
|
|
|
char *filter;
|
|
|
|
void *compiled;
|
|
|
|
void *pcap;
|
|
|
|
void *dev;
|
|
|
|
};
|
|
|
|
|
2006-10-11 01:49:37 +04:00
|
|
|
extern const struct net_user_info pcap_user_info;
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
extern int pcap_user_read(int fd, void *buf, int len, struct pcap_data *pri);
|
|
|
|
|