Lines Matching defs:pcap_linux
170 struct pcap_linux { struct
171 …pped; /* packets reported dropped by /sys/class/net/{if_name}/statistics/rx_{missed,fifo}_errors */
172 struct pcap_stat stat;
174 char *device; /* device name */
175 int filter_in_userland; /* must filter in userland */
176 int blocks_to_filter_in_userland;
177 int must_do_on_close; /* stuff we must do when we close */
178 int timeout; /* timeout for buffering */
179 int cooked; /* using SOCK_DGRAM rather than SOCK_RAW */
180 int ifindex; /* interface index of device we're bound to */
181 int lo_ifindex; /* interface index of the loopback device */
182 int netdown; /* we got an ENETDOWN and haven't resolved it */
183 bpf_u_int32 oldmode; /* mode to restore when turning monitor mode off */
184 char *mondevice; /* mac80211 monitor device we created */
185 u_char *mmapbuf; /* memory-mapped region pointer */
186 size_t mmapbuflen; /* size of region */
187 int vlan_offset; /* offset at which to insert vlan tags; if -1, don't insert */
188 u_int tp_version; /* version of tpacket_hdr for mmaped ring */
189 u_int tp_hdrlen; /* hdrlen of tpacket_hdr for mmaped ring */
190 u_char *oneshot_buffer; /* buffer for copy of packet */
191 int poll_timeout; /* timeout to use in poll() */
193 …char *current_packet; /* Current packet within the TPACKET_V3 block. Move to next block if NULL. */
194 …ckets left within the block from previous call to pcap_read_linux_mmap_v3 in case of TPACKET_V3. */
196 int poll_breakloop_fd; /* fd to an eventfd to break from blocking operations */