/external/ppp/pppd/include/ |
pcap-int.h | 33 * @(#) $Header: /data/cvs/ppp/include/pcap-int.h,v 1.1 2000/08/01 01:37:24 paulus Exp $ (LBL) 39 #include <pcap.h> 68 struct pcap { struct 106 /* XXX should these be in pcap.h? */
|
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_freebsd.c | 14 #include <pcap.h> 37 pcap_t *pcap; member in struct:l2_packet_data 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 71 return pcap_inject(l2->pcap, buf, len); 78 pcap_t *pcap = sock_ctx; local 85 packet = pcap_next(pcap, &hdr); 110 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); 111 if (l2->pcap == NULL) { 116 if (pcap_datalink(l2->pcap) != DLT_EN10MB && 117 pcap_set_datalink(l2->pcap, DLT_EN10MB) < 0) [all...] |
l2_packet_pcap.c | 13 #include <pcap.h> 27 pcap_t *pcap; member in struct:l2_packet_data 89 ret = pcap_sendpacket(l2->pcap, buf, len); 105 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 121 pcap_t *pcap = sock_ctx; local 128 packet = pcap_next(pcap, &hdr); 178 pcap_t *pcap = timeout_ctx; local 191 l2, pcap); 192 pcap_dispatch(pcap, 10, l2_packet_receive_cb, (u_char *) l2); 208 l2->pcap = pcap_open_live(ifname, 2500, 0, 10, pcap_err) [all...] |
l2_packet_winpcap.c | 30 #include <pcap.h> 48 pcap_t *pcap; member in struct:l2_packet_data 82 ret = pcap_sendpacket(l2->pcap, buf, len); 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 133 pcap_dispatch(l2->pcap, 1, l2_packet_receive_cb, 169 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 1, pcap_err); 170 if (l2->pcap == NULL) { 182 if (pcap_compile(l2->pcap, &pcap_fp, pcap_filter, 1, pcap_netp) < 0) { 183 fprintf(stderr, "pcap_compile: %s\n", pcap_geterr(l2->pcap)); 187 if (pcap_setfilter(l2->pcap, &pcap_fp) < 0) [all...] |
/external/libpcap/ |
pcap-int.h | 37 #include <pcap/pcap.h> 141 struct pcap { struct 176 struct pcap *next; /* list of open pcaps that need stuff cleared on close */ 347 /* XXX should these be in pcap.h? */ 377 * Routines that most pcap implementations can use for non-blocking mode.
|
pcap-dos.c | 5 * pcap-dos.c: Interface to PKTDRVR, NDIS2 and 32-bit pmode 37 #include "pcap.h" 38 #include "pcap-dos.h" 39 #include "pcap-int.h" 110 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf); 113 static void watt32_recv_hook (u_char *dummy, const struct pcap_pkthdr *pcap, 168 static int pcap_activate_dos (pcap_t *pcap) 170 struct pcap_dos *pcapd = pcap->priv; 172 if (pcap->opt.rfmon) 222 struct pcap_pkthdr pcap; local [all...] |