ostinato/server/pcapextra.h
Srivats P. c7d90ff1ab - All tabs converted to spaces in all files
- .vimrc added to reflect settings used in the project
2009-12-28 08:31:28 +00:00

27 lines
493 B
C

#ifndef _PCAP_EXTRA_H
#define _PCAP_EXTRA_H
#include <pcap.h>
#include <QtGlobal>
#ifndef Q_OS_WIN32
//#define PCAP_OPENFLAG_PROMISCUOUS 1
struct pcap_send_queue
{
u_int maxlen;
u_int len;
char *buffer;
};
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,
const struct pcap_pkthdr *pkt_header, const u_char *pkt_data);
#endif
#endif