mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
35 lines
946 B
C
35 lines
946 B
C
/* @(#) $Id: nb_dns.h 6219 2008-10-01 05:39:07Z vern $ (LBL)
|
|
*
|
|
* See the file "COPYING" in the main distribution directory for copyright.
|
|
*/
|
|
|
|
/* Private data */
|
|
struct nb_dns_info;
|
|
|
|
/* Public data */
|
|
struct nb_dns_result {
|
|
void *cookie;
|
|
int host_errno;
|
|
struct hostent *hostent;
|
|
};
|
|
|
|
typedef unsigned int nb_uint32_t;
|
|
|
|
/* Public routines */
|
|
struct nb_dns_info *nb_dns_init(char *);
|
|
void nb_dns_finish(struct nb_dns_info *);
|
|
|
|
int nb_dns_fd(struct nb_dns_info *);
|
|
|
|
int nb_dns_host_request(struct nb_dns_info *, const char *, void *, char *);
|
|
int nb_dns_host_request2(struct nb_dns_info *, const char *, int,
|
|
void *, char *);
|
|
|
|
int nb_dns_addr_request(struct nb_dns_info *, nb_uint32_t, void *, char *);
|
|
int nb_dns_addr_request2(struct nb_dns_info *, char *, int, void *, char *);
|
|
|
|
int nb_dns_abort_request(struct nb_dns_info *, void *);
|
|
|
|
int nb_dns_activity(struct nb_dns_info *, struct nb_dns_result *, char *);
|
|
|
|
#define NB_DNS_ERRSIZE 256
|