Lines Matching refs:pcap_t
329 static void map_arphrd_to_dlt(pcap_t *, int, int, const char *, int);
333 static int pcap_activate_linux(pcap_t *);
334 static int activate_old(pcap_t *);
335 static int activate_new(pcap_t *);
336 static int activate_mmap(pcap_t *, int *);
337 static int pcap_can_set_rfmon_linux(pcap_t *);
338 static int pcap_read_linux(pcap_t *, int, pcap_handler, u_char *);
339 static int pcap_read_packet(pcap_t *, pcap_handler, u_char *);
340 static int pcap_inject_linux(pcap_t *, const void *, size_t);
341 static int pcap_stats_linux(pcap_t *, struct pcap_stat *);
342 static int pcap_setfilter_linux(pcap_t *, struct bpf_program *);
343 static int pcap_setdirection_linux(pcap_t *, pcap_direction_t);
344 static int pcap_set_datalink_linux(pcap_t *, int);
345 static void pcap_cleanup_linux(pcap_t *);
383 static void destroy_ring(pcap_t *handle);
384 static int create_ring(pcap_t *handle, int *status);
385 static int prepare_tpacket_socket(pcap_t *handle);
386 static void pcap_cleanup_linux_mmap(pcap_t *);
387 static int pcap_read_linux_mmap_v1(pcap_t *, int, pcap_handler , u_char *);
388 static int pcap_read_linux_mmap_v1_64(pcap_t *, int, pcap_handler , u_char *);
390 static int pcap_read_linux_mmap_v2(pcap_t *, int, pcap_handler , u_char *);
393 static int pcap_read_linux_mmap_v3(pcap_t *, int, pcap_handler , u_char *);
395 static int pcap_setfilter_linux_mmap(pcap_t *, struct bpf_program *);
396 static int pcap_setnonblock_mmap(pcap_t *p, int nonblock, char *errbuf);
397 static int pcap_getnonblock_mmap(pcap_t *p, char *errbuf);
421 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
425 static int iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf);
428 static int iface_get_offload(pcap_t *handle);
433 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
436 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
437 static int reset_kernel_filter(pcap_t *handle);
445 pcap_t *
448 pcap_t *handle;
543 get_mac80211_phydev(pcap_t *handle, const char *device, char *phydev_path,
619 nl80211_init(pcap_t *handle, struct nl80211_state *state, const char *device)
669 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
765 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
819 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device)
981 pcap_can_set_rfmon_linux(pcap_t *handle)
1141 static void pcap_cleanup_linux( pcap_t *handle )
1157 * pcap_t.
1304 pcap_activate_linux(pcap_t *handle)
1486 pcap_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user)
1496 pcap_set_datalink_linux(pcap_t *handle, int dlt)
1508 linux_check_direction(const pcap_t *handle, const struct sockaddr_ll *sll)
1544 pcap_read_packet(pcap_t *handle, pcap_handler callback, u_char *userdata)
1885 pcap_inject_linux(pcap_t *handle, const void *buf, size_t size)
1937 pcap_stats_linux(pcap_t *handle, struct pcap_stat *stats)
2410 pcap_setfilter_linux_common(pcap_t *handle, struct bpf_program *filter,
2582 pcap_setfilter_linux(pcap_t *handle, struct bpf_program *filter)
2593 pcap_setdirection_linux(pcap_t *handle, pcap_direction_t d)
2695 * function takes a pointer to a "pcap_t", and an ARPHRD_xxx
2710 static void map_arphrd_to_dlt(pcap_t *handle, int sock_fd, int arptype,
3139 activate_new(pcap_t *handle)
3525 activate_mmap(pcap_t *handle, int *status)
3609 activate_mmap(pcap_t *handle _U_, int *status _U_)
3626 init_tpacket(pcap_t *handle, int version, const char *version_str)
3714 prepare_tpacket_socket(pcap_t *handle)
3831 create_ring(pcap_t *handle, int *status)
4201 destroy_ring(pcap_t *handle)
4242 pcap_t *handle = sp->pd;
4251 pcap_cleanup_linux_mmap( pcap_t *handle )
4265 pcap_getnonblock_mmap(pcap_t *p, char *errbuf)
4274 pcap_setnonblock_mmap(pcap_t *p, int nonblock, char *errbuf)
4306 pcap_get_ring_frame(pcap_t *handle, int status)
4346 static int pcap_wait_for_frames_mmap(pcap_t *handle)
4457 pcap_t *handle,
4601 pcap_read_linux_mmap_v1(pcap_t *handle, int max_packets, pcap_handler callback,
4675 pcap_read_linux_mmap_v1_64(pcap_t *handle, int max_packets, pcap_handler callback,
4750 pcap_read_linux_mmap_v2(pcap_t *handle, int max_packets, pcap_handler callback,
4830 pcap_read_linux_mmap_v3(pcap_t *handle, int max_packets, pcap_handler callback,
4944 pcap_setfilter_linux_mmap(pcap_t *handle, struct bpf_program *filter)
5162 enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device)
5778 enter_rfmon_mode(pcap_t *handle, int sock_fd, const char *device)
5823 iface_set_default_ts_types(pcap_t *handle)
5838 iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf)
5909 iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf _U_)
5933 iface_ethtool_flag_ioctl(pcap_t *handle, int cmd, const char *cmdname)
5962 iface_get_offload(pcap_t *handle)
6020 iface_get_offload(pcap_t *handle _U_)
6041 activate_old(pcap_t *handle)
6119 * pcap_t is closed.
6324 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped)
6463 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode)
6590 reset_kernel_filter(pcap_t *handle)