2009-01-17 04:52:00 -06:00
|
|
|
#ifndef _PCAP_EXTRA_H
|
|
|
|
#define _PCAP_EXTRA_H
|
|
|
|
|
2009-12-26 11:33:27 -06:00
|
|
|
#include <pcap.h>
|
|
|
|
#include <QtGlobal>
|
2009-02-22 01:53:14 -06:00
|
|
|
|
|
|
|
#ifndef Q_OS_WIN32
|
|
|
|
|
2010-01-02 07:49:54 -06:00
|
|
|
#define PCAP_OPENFLAG_PROMISCUOUS 1
|
2009-01-17 04:52:00 -06:00
|
|
|
|
|
|
|
struct pcap_send_queue
|
|
|
|
{
|
2009-12-28 02:31:28 -06:00
|
|
|
u_int maxlen;
|
|
|
|
u_int len;
|
|
|
|
char *buffer;
|
2009-01-17 04:52:00 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
pcap_send_queue* pcap_sendqueue_alloc (u_int memsize);
|
|
|
|
void pcap_sendqueue_destroy (pcap_send_queue *queue);
|
|
|
|
int pcap_sendqueue_queue (pcap_send_queue *queue,
|
2009-12-28 02:31:28 -06:00
|
|
|
const struct pcap_pkthdr *pkt_header, const u_char *pkt_data);
|
2009-01-17 04:52:00 -06:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|