Lines Matching refs:pcap_t
118 typedef struct pcap pcap_t; typedef
331 PCAP_API pcap_t *pcap_create(const char *, char *);
332 PCAP_API int pcap_set_snaplen(pcap_t *, int);
333 PCAP_API int pcap_set_promisc(pcap_t *, int);
334 PCAP_API int pcap_can_set_rfmon(pcap_t *);
335 PCAP_API int pcap_set_rfmon(pcap_t *, int);
336 PCAP_API int pcap_set_timeout(pcap_t *, int);
337 PCAP_API int pcap_set_tstamp_type(pcap_t *, int);
338 PCAP_API int pcap_set_immediate_mode(pcap_t *, int);
339 PCAP_API int pcap_set_buffer_size(pcap_t *, int);
340 PCAP_API int pcap_set_tstamp_precision(pcap_t *, int);
341 PCAP_API int pcap_get_tstamp_precision(pcap_t *);
342 PCAP_API int pcap_activate(pcap_t *);
344 PCAP_API int pcap_list_tstamp_types(pcap_t *, int **);
351 PCAP_API int pcap_set_protocol_linux(pcap_t *, int);
407 PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *);
408 PCAP_API pcap_t *pcap_open_dead(int, int);
409 PCAP_API pcap_t *pcap_open_dead_with_tstamp_precision(int, int, u_int);
410 PCAP_API pcap_t *pcap_open_offline_with_tstamp_precision(const char *, u_int, char *);
411 PCAP_API pcap_t *pcap_open_offline(const char *, char *);
413 PCAP_API pcap_t *pcap_hopen_offline_with_tstamp_precision(intptr_t, u_int, char *);
414 PCAP_API pcap_t *pcap_hopen_offline(intptr_t, char *);
435 PCAP_API pcap_t *pcap_fopen_offline_with_tstamp_precision(FILE *, u_int, char *);
436 PCAP_API pcap_t *pcap_fopen_offline(FILE *, char *);
439 PCAP_API void pcap_close(pcap_t *);
440 PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *);
441 PCAP_API int pcap_dispatch(pcap_t *, int, pcap_handler, u_char *);
442 PCAP_API const u_char *pcap_next(pcap_t *, struct pcap_pkthdr *);
443 PCAP_API int pcap_next_ex(pcap_t *, struct pcap_pkthdr **, const u_char **);
444 PCAP_API void pcap_breakloop(pcap_t *);
445 PCAP_API int pcap_stats(pcap_t *, struct pcap_stat *);
446 PCAP_API int pcap_setfilter(pcap_t *, struct bpf_program *);
447 PCAP_API int pcap_setdirection(pcap_t *, pcap_direction_t);
448 PCAP_API int pcap_getnonblock(pcap_t *, char *);
449 PCAP_API int pcap_setnonblock(pcap_t *, int, char *);
450 PCAP_API int pcap_inject(pcap_t *, const void *, size_t);
451 PCAP_API int pcap_sendpacket(pcap_t *, const u_char *, int);
454 PCAP_API char *pcap_geterr(pcap_t *);
455 PCAP_API void pcap_perror(pcap_t *, const char *);
456 PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int,
463 PCAP_API int pcap_datalink(pcap_t *);
464 PCAP_API int pcap_datalink_ext(pcap_t *);
465 PCAP_API int pcap_list_datalinks(pcap_t *, int **);
466 PCAP_API int pcap_set_datalink(pcap_t *, int);
471 PCAP_API int pcap_snapshot(pcap_t *);
472 PCAP_API int pcap_is_swapped(pcap_t *);
473 PCAP_API int pcap_major_version(pcap_t *);
474 PCAP_API int pcap_minor_version(pcap_t *);
475 PCAP_API int pcap_bufsize(pcap_t *);
478 PCAP_API FILE *pcap_file(pcap_t *);
479 PCAP_API int pcap_fileno(pcap_t *);
485 PCAP_API pcap_dumper_t *pcap_dump_open(pcap_t *, const char *);
486 PCAP_API pcap_dumper_t *pcap_dump_fopen(pcap_t *, FILE *fp);
487 PCAP_API pcap_dumper_t *pcap_dump_open_append(pcap_t *, const char *);
556 PCAP_API int pcap_setbuff(pcap_t *p, int dim);
557 PCAP_API int pcap_setmode(pcap_t *p, int mode);
558 PCAP_API int pcap_setmintocopy(pcap_t *p, int size);
560 PCAP_API HANDLE pcap_getevent(pcap_t *p);
562 PCAP_API int pcap_oid_get_request(pcap_t *, bpf_u_int32, void *, size_t *);
563 PCAP_API int pcap_oid_set_request(pcap_t *, bpf_u_int32, const void *, size_t *);
571 PCAP_API u_int pcap_sendqueue_transmit(pcap_t *p, pcap_send_queue* queue, int sync);
573 PCAP_API struct pcap_stat *pcap_stats_ex(pcap_t *p, int *pcap_stat_size);
575 PCAP_API int pcap_setuserbuffer(pcap_t *p, int size);
577 PCAP_API int pcap_live_dump(pcap_t *p, char *filename, int maxsize, int maxpacks);
579 PCAP_API int pcap_live_dump_ended(pcap_t *p, int sync);
583 PCAP_API PAirpcapHandle pcap_get_airpcap_handle(pcap_t *p);
595 PCAP_API int pcap_stats_ex (pcap_t *, struct pcap_stat_ex *);
596 PCAP_API void pcap_set_wait (pcap_t *p, void (*yield)(void), int wait);
605 PCAP_API int pcap_get_selectable_fd(pcap_t *);
606 PCAP_API struct timeval *pcap_get_required_select_timeout(pcap_t *);
835 PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags,
931 PCAP_API struct pcap_samp *pcap_setsampling(pcap_t *p);