1 Jul 2009 18:21
[PATCH] ares_parse_srv_reply
Hello, we are strongly considering using c-ares for a project we are working on [1]. One thing that, from our perspective, was missing from c-ares was the ability to parse SRV records. I scanned the archives briefly and found one post dated 2004 [2] that said you wouldn't be opposed to adding such functionality. The attached patch adds a ares_parse_srv_reply function. I look at other ares_parse_XXX_reply functions for inspiration, but as this is my first patch for the project, I guess there will be some comments as per code quality or formatting standards - of course I'm willing to fix these. Thank you, Jakub Hrozek [1] https://fedorahosted.org/sssd/ [2] http://curl.haxx.se/mail/lib-2004-03/0302.html
diff -up ./ares.h.srv ./ares.h
--- ./ares.h.srv 2009-07-01 18:05:38.000000000 +0200
+++ ./ares.h 2009-07-01 18:07:26.000000000 +0200
<at> <at> -321,6 +321,13 <at> <at> struct addr6ttl {
int ttl;
};
+struct srv_reply {
+ int weight;
(Continue reading)
RSS Feed