HomeSort by relevance Sort by last modified time
    Searched defs:pcap (Results 1 - 7 of 7) sorted by null

  /external/libpcap/tests/
pcap_compile_test.c 0 pcap = pcap_open_dead(link, snaplen);
4 if (pcap_compile(pcap, &p, prog, optimize, 0) < 0) {
5 fprintf(stderr, pcap_geterr(pcap));
10 pcap_close(pcap); variable
  /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
88 ret = pcap_sendpacket(l2->pcap, buf, len);
104 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
120 pcap_t *pcap = sock_ctx; local
127 packet = pcap_next(pcap, &hdr);
177 pcap_t *pcap = timeout_ctx; local
190 l2, pcap);
191 pcap_dispatch(pcap, 10, l2_packet_receive_cb, (u_char *) l2);
207 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 33 * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.94 2008-09-16 00:20:23 guy Exp $ (LBL)
39 #include <pcap/pcap.h>
120 struct pcap { struct
155 struct pcap *next; /* list of open pcaps that need stuff cleared on close */
316 /* XXX should these be in pcap.h? */
346 * 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
8 * @(#) $Header: /tcpdump/master/libpcap/pcap-dos.c,v 1.7 2008-04-22 17:16:30 guy Exp $ (LBL)
39 #include "pcap.h"
40 #include "pcap-dos.h"
41 #include "pcap-int.h"
112 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf);
115 static void watt32_recv_hook (u_char *dummy, const struct pcap_pkthdr *pcap,
170 static int pcap_activate_dos (pcap_t *pcap)
172 struct pcap_dos *pcapd = pcap->priv
224 struct pcap_pkthdr pcap; local
    [all...]

Completed in 1894 milliseconds