summaryrefslogtreecommitdiff
path: root/server/resolv/ares/ares_parse_srv_reply.h
blob: 43eb41548e01b4fbff783a56a6e81c63b371d7ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __ARES_PARSE_SRV_REPLY_H__
#define __ARES_PARSE_SRV_REPLY_H__

struct srv_reply {
    u_int16_t weight;
    u_int16_t priority;
    u_int16_t port;
    char *host;
};

int _ares_parse_srv_reply (const unsigned char *abuf, int alen,
                           struct srv_reply **srv_out, int *nsrvreply);

#endif /* __ARES_PARSE_SRV_REPLY_H__ */