PCS  0.4
/Volumes/exported/git/PCS/pcs/pcap/pcap_ex.h
00001 /* $Id: pcap_ex.h,v 1.6 2005/08/29 21:11:40 dugsong Exp $ */
00002 
00003 #ifndef PCAP_EX_H
00004 #define PCAP_EX_H
00005 
00006 int   pcap_ex_immediate(pcap_t *pcap);
00007 char *pcap_ex_name(char *name);
00008 char *pcap_ex_lookupdev(char *ebuf);
00009 int   pcap_ex_fileno(pcap_t *pcap);
00010 void  pcap_ex_setup(pcap_t *pcap);
00011 void  pcap_ex_setnonblock(pcap_t *pcap, int nonblock, char *ebuf);
00012 int   pcap_ex_getnonblock(pcap_t *pcap, char *ebuf);
00013 int   pcap_ex_next(pcap_t *pcap, struct pcap_pkthdr **hdr, u_char **pkt);
00014 int   pcap_ex_compile_nopcap(int snaplen, int dlt, struct bpf_program *fp,
00015           char *str, int optimize, unsigned int netmask);
00016 
00017 #endif /* PCAP_EX_H */