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...] |