Lines Matching refs:PCAP_API
326 PCAP_API char *pcap_lookupdev(char *)
329 PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *);
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 **);
345 PCAP_API void pcap_free_tstamp_types(int *);
346 PCAP_API int pcap_tstamp_type_name_to_val(const char *);
347 PCAP_API const char *pcap_tstamp_type_val_to_name(int);
348 PCAP_API const char *pcap_tstamp_type_val_to_description(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);
452 PCAP_API const char *pcap_statustostr(int);
453 PCAP_API const char *pcap_strerror(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,
458 PCAP_API int pcap_compile_nopcap(int, int, struct bpf_program *,
460 PCAP_API void pcap_freecode(struct bpf_program *);
461 PCAP_API int pcap_offline_filter(const struct bpf_program *,
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);
467 PCAP_API void pcap_free_datalinks(int *);
468 PCAP_API int pcap_datalink_name_to_val(const char *);
469 PCAP_API const char *pcap_datalink_val_to_name(int);
470 PCAP_API const char *pcap_datalink_val_to_description(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 *);
482 PCAP_API int pcap_wsockinit(void);
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 *);
488 PCAP_API FILE *pcap_dump_file(pcap_dumper_t *);
489 PCAP_API long pcap_dump_ftell(pcap_dumper_t *);
490 PCAP_API int64_t pcap_dump_ftell64(pcap_dumper_t *);
491 PCAP_API int pcap_dump_flush(pcap_dumper_t *);
492 PCAP_API void pcap_dump_close(pcap_dumper_t *);
493 PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *);
495 PCAP_API int pcap_findalldevs(pcap_if_t **, char *);
496 PCAP_API void pcap_freealldevs(pcap_if_t *);
513 PCAP_API const char *pcap_lib_version(void);
523 PCAP_API u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int);
525 PCAP_API int bpf_validate(const struct bpf_insn *f, int len);
526 PCAP_API char *bpf_image(const struct bpf_insn *, int);
527 PCAP_API void bpf_dump(const struct bpf_program *, int);
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 *);
565 PCAP_API pcap_send_queue* pcap_sendqueue_alloc(u_int memsize);
567 PCAP_API void pcap_sendqueue_destroy(pcap_send_queue* queue);
569 PCAP_API int pcap_sendqueue_queue(pcap_send_queue* queue, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data);
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);
581 PCAP_API int pcap_start_oem(char* err_str, int flags);
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);
597 PCAP_API u_long pcap_mac_packets (void);
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,
837 PCAP_API int pcap_createsrcstr(char *source, int type, const char *host,
839 PCAP_API int pcap_parsesrcstr(const char *source, int *type, char *host,
861 PCAP_API int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth,
931 PCAP_API struct pcap_samp *pcap_setsampling(pcap_t *p);
961 PCAP_API SOCKET pcap_remoteact_accept(const char *address, const char *port,
964 PCAP_API int pcap_remoteact_list(char *hostlist, char sep, int size,
966 PCAP_API int pcap_remoteact_close(const char *host, char *errbuf);
967 PCAP_API void pcap_remoteact_cleanup(void);