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