summaryrefslogtreecommitdiffstats
path: root/server/resolv/ares/ares_parse_srv_reply.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/resolv/ares/ares_parse_srv_reply.h')
-rw-r--r--server/resolv/ares/ares_parse_srv_reply.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/resolv/ares/ares_parse_srv_reply.h b/server/resolv/ares/ares_parse_srv_reply.h
new file mode 100644
index 000000000..43eb41548
--- /dev/null
+++ b/server/resolv/ares/ares_parse_srv_reply.h
@@ -0,0 +1,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__ */