ares_parse_srv_reply.c (c-ares-1.17.1) | : | ares_parse_srv_reply.c (c-ares-1.17.2) | ||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
#ifdef HAVE_NETINET_IN_H | #ifdef HAVE_NETINET_IN_H | |||
# include <netinet/in.h> | # include <netinet/in.h> | |||
#endif | #endif | |||
#ifdef HAVE_NETDB_H | #ifdef HAVE_NETDB_H | |||
# include <netdb.h> | # include <netdb.h> | |||
#endif | #endif | |||
#ifdef HAVE_ARPA_INET_H | #ifdef HAVE_ARPA_INET_H | |||
# include <arpa/inet.h> | # include <arpa/inet.h> | |||
#endif | #endif | |||
#ifdef HAVE_ARPA_NAMESER_H | ||||
# include <arpa/nameser.h> | #include "ares_nameser.h" | |||
#else | ||||
# include "nameser.h" | ||||
#endif | ||||
#ifdef HAVE_ARPA_NAMESER_COMPAT_H | ||||
# include <arpa/nameser_compat.h> | ||||
#endif | ||||
#include "ares.h" | #include "ares.h" | |||
#include "ares_dns.h" | #include "ares_dns.h" | |||
#include "ares_data.h" | #include "ares_data.h" | |||
#include "ares_private.h" | #include "ares_private.h" | |||
/* AIX portability check */ | ||||
#ifndef T_SRV | ||||
# define T_SRV 33 /* server selection */ | ||||
#endif | ||||
int | int | |||
ares_parse_srv_reply (const unsigned char *abuf, int alen, | ares_parse_srv_reply (const unsigned char *abuf, int alen, | |||
struct ares_srv_reply **srv_out) | struct ares_srv_reply **srv_out) | |||
{ | { | |||
unsigned int qdcount, ancount, i; | unsigned int qdcount, ancount, i; | |||
const unsigned char *aptr, *vptr; | const unsigned char *aptr, *vptr; | |||
int status, rr_type, rr_class, rr_len; | int status, rr_type, rr_class, rr_len; | |||
long len; | long len; | |||
char *hostname = NULL, *rr_name = NULL; | char *hostname = NULL, *rr_name = NULL; | |||
struct ares_srv_reply *srv_head = NULL; | struct ares_srv_reply *srv_head = NULL; | |||
End of changes. 2 change blocks. | ||||
13 lines changed or deleted | 2 lines changed or added |