Lines Matching defs:pcap_linux
288 struct pcap_linux { struct
289 u_int packets_read; /* count of packets read with recvfrom() */
290 long proc_dropped; /* packets reported dropped by /proc/net/dev */
291 struct pcap_stat stat;
293 char *device; /* device name */
294 int filter_in_userland; /* must filter in userland */
295 int blocks_to_filter_in_userland;
296 int must_do_on_close; /* stuff we must do when we close */
297 int timeout; /* timeout for buffering */
298 int sock_packet; /* using Linux 2.0 compatible interface */
299 int cooked; /* using SOCK_DGRAM rather than SOCK_RAW */
300 int ifindex; /* interface index of device we're bound to */
301 int lo_ifindex; /* interface index of the loopback device */
302 bpf_u_int32 oldmode; /* mode to restore when turning monitor mode off */
303 char *mondevice; /* mac80211 monitor device we created */
304 u_char *mmapbuf; /* memory-mapped region pointer */
305 size_t mmapbuflen; /* size of region */
306 int vlan_offset; /* offset at which to insert vlan tags; if -1, don't insert */
307 u_int tp_version; /* version of tpacket_hdr for mmaped ring */
308 u_int tp_hdrlen; /* hdrlen of tpacket_hdr for mmaped ring */
309 u_char *oneshot_buffer; /* buffer for copy of packet */
311 …char *current_packet; /* Current packet within the TPACKET_V3 block. Move to next block if NULL. */
312 …ckets left within the block from previous call to pcap_read_linux_mmap_v3 in case of TPACKET_V3. */