81 |
|
*/ |
82 |
|
|
83 |
|
#include "stdinc.h" |
84 |
– |
#include "irc_reslib.h" |
85 |
– |
#include "irc_res.h" |
84 |
|
#include "ircd_defs.h" |
85 |
+ |
#include "irc_res.h" |
86 |
+ |
#include "irc_reslib.h" |
87 |
|
#include "fileio.h" |
88 |
|
#include "irc_string.h" |
89 |
– |
#include "irc_getaddrinfo.h" |
89 |
|
|
90 |
|
#define NS_TYPE_ELT 0x40 /* EDNS0 extended label type */ |
91 |
|
#define DNS_LABELTYPE_BITSTRING 0x41 |
237 |
|
hints.ai_socktype = SOCK_DGRAM; |
238 |
|
hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; |
239 |
|
|
240 |
< |
if (irc_getaddrinfo(arg, "domain", &hints, &res)) |
240 |
> |
if (getaddrinfo(arg, "domain", &hints, &res)) |
241 |
|
return; |
242 |
|
|
243 |
|
if (res == NULL) |
246 |
|
memcpy(&irc_nsaddr_list[irc_nscount].ss, res->ai_addr, res->ai_addrlen); |
247 |
|
irc_nsaddr_list[irc_nscount].ss_len = res->ai_addrlen; |
248 |
|
irc_nscount++; |
249 |
< |
irc_freeaddrinfo(res); |
249 |
> |
freeaddrinfo(res); |
250 |
|
} |
251 |
|
|
252 |
|
/* |