Lines Matching refs:pcap_t
341 static void map_arphrd_to_dlt(pcap_t *, int, int, const char *, int);
345 static int pcap_activate_linux(pcap_t *);
346 static int activate_old(pcap_t *);
347 static int activate_new(pcap_t *);
348 static int activate_mmap(pcap_t *, int *);
349 static int pcap_can_set_rfmon_linux(pcap_t *);
350 static int pcap_read_linux(pcap_t *, int, pcap_handler, u_char *);
351 static int pcap_read_packet(pcap_t *, pcap_handler, u_char *);
352 static int pcap_inject_linux(pcap_t *, const void *, size_t);
353 static int pcap_stats_linux(pcap_t *, struct pcap_stat *);
354 static int pcap_setfilter_linux(pcap_t *, struct bpf_program *);
355 static int pcap_setdirection_linux(pcap_t *, pcap_direction_t);
356 static int pcap_set_datalink_linux(pcap_t *, int);
357 static void pcap_cleanup_linux(pcap_t *);
396 static void destroy_ring(pcap_t *handle);
397 static int create_ring(pcap_t *handle, int *status);
398 static int prepare_tpacket_socket(pcap_t *handle);
399 static void pcap_cleanup_linux_mmap(pcap_t *);
400 static int pcap_read_linux_mmap_v1(pcap_t *, int, pcap_handler , u_char *);
401 static int pcap_read_linux_mmap_v1_64(pcap_t *, int, pcap_handler , u_char *);
403 static int pcap_read_linux_mmap_v2(pcap_t *, int, pcap_handler , u_char *);
406 static int pcap_read_linux_mmap_v3(pcap_t *, int, pcap_handler , u_char *);
408 static int pcap_setfilter_linux_mmap(pcap_t *, struct bpf_program *);
409 static int pcap_setnonblock_mmap(pcap_t *p, int nonblock);
410 static int pcap_getnonblock_mmap(pcap_t *p);
474 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
478 static int iface_ethtool_get_ts_info(const char *device, pcap_t *handle,
482 static int iface_get_offload(pcap_t *handle);
487 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
490 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
491 static int reset_kernel_filter(pcap_t *handle);
499 pcap_t *
502 pcap_t *handle; in pcap_create_interface()
595 get_mac80211_phydev(pcap_t *handle, const char *device, char *phydev_path, in get_mac80211_phydev()
670 nl80211_init(pcap_t *handle, struct nl80211_state *state, const char *device) in nl80211_init()
720 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
724 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
835 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
889 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device)
1052 static int pcap_protocol(pcap_t *handle)
1064 pcap_can_set_rfmon_linux(pcap_t *handle)
1224 static void pcap_cleanup_linux( pcap_t *handle )
1475 pcap_activate_linux(pcap_t *handle)
1672 pcap_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user)
1682 pcap_set_datalink_linux(pcap_t *handle, int dlt)
1694 linux_check_direction(const pcap_t *handle, const struct sockaddr_ll *sll)
1746 pcap_read_packet(pcap_t *handle, pcap_handler callback, u_char *userdata)
2112 pcap_inject_linux(pcap_t *handle, const void *buf, size_t size)
2164 pcap_stats_linux(pcap_t *handle, struct pcap_stat *stats)
2826 pcap_setfilter_linux_common(pcap_t *handle, struct bpf_program *filter,
2998 pcap_setfilter_linux(pcap_t *handle, struct bpf_program *filter)
3009 pcap_setdirection_linux(pcap_t *handle, pcap_direction_t d)
3126 static void map_arphrd_to_dlt(pcap_t *handle, int sock_fd, int arptype,
3569 activate_new(pcap_t *handle)
3964 activate_mmap(pcap_t *handle, int *status)
4047 activate_mmap(pcap_t *handle _U_, int *status _U_)
4064 init_tpacket(pcap_t *handle, int version, const char *version_str)
4148 prepare_tpacket_socket(pcap_t *handle)
4267 create_ring(pcap_t *handle, int *status)
4663 destroy_ring(pcap_t *handle)
4704 pcap_t *handle = sp->pd;
4713 pcap_cleanup_linux_mmap( pcap_t *handle )
4727 pcap_getnonblock_mmap(pcap_t *handle)
4736 pcap_setnonblock_mmap(pcap_t *handle, int nonblock)
4773 pcap_get_ring_frame_status(pcap_t *handle, int offset)
4808 static int pcap_wait_for_frames_mmap(pcap_t *handle)
4893 pcap_t *handle,
5054 pcap_read_linux_mmap_v1(pcap_t *handle, int max_packets, pcap_handler callback,
5138 pcap_read_linux_mmap_v1_64(pcap_t *handle, int max_packets, pcap_handler callback,
5223 pcap_read_linux_mmap_v2(pcap_t *handle, int max_packets, pcap_handler callback,
5309 pcap_read_linux_mmap_v3(pcap_t *handle, int max_packets, pcap_handler callback,
5435 pcap_setfilter_linux_mmap(pcap_t *handle, struct bpf_program *filter)
5650 enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device)
6266 enter_rfmon_mode(pcap_t *handle, int sock_fd, const char *device)
6314 iface_set_all_ts_types(pcap_t *handle)
6329 iface_ethtool_get_ts_info(const char *device, pcap_t *handle, char *ebuf)
6441 iface_ethtool_get_ts_info(const char *device, pcap_t *handle, char *ebuf _U_)
6477 iface_ethtool_flag_ioctl(pcap_t *handle, int cmd, const char *cmdname)
6506 iface_get_offload(pcap_t *handle)
6564 iface_get_offload(pcap_t *handle _U_)
6585 activate_old(pcap_t *handle)
6869 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped)
7008 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode)
7135 reset_kernel_filter(pcap_t *handle)
7162 pcap_set_protocol_linux(pcap_t *p, int protocol)