summaryrefslogtreecommitdiff
path: root/src/resolv
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-03-25 22:54:48 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-04-03 14:42:00 +0200
commit584eda085e83a428f2c39dadf0d7adeaff5c87f4 (patch)
treeda9633fb988a2af7e50b4f47a32e5b8ef5b0956a /src/resolv
parent1b171c456ff901ab622e44bcfd213f7de86fd787 (diff)
downloadsssd-584eda085e83a428f2c39dadf0d7adeaff5c87f4.tar.gz
sssd-584eda085e83a428f2c39dadf0d7adeaff5c87f4.tar.bz2
sssd-584eda085e83a428f2c39dadf0d7adeaff5c87f4.zip
Init failover with be_res options
Diffstat (limited to 'src/resolv')
-rw-r--r--src/resolv/async_resolv.c41
-rw-r--r--src/resolv/async_resolv.h5
2 files changed, 0 insertions, 46 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c
index 4ecc4836..dce321e0 100644
--- a/src/resolv/async_resolv.c
+++ b/src/resolv/async_resolv.c
@@ -111,47 +111,6 @@ struct resolv_request {
struct resolv_ctx *context_list;
-errno_t
-resolv_get_family_order(struct confdb_ctx *cdb, const char *conf_path,
- enum restrict_family *family_order)
-{
- errno_t ret;
- TALLOC_CTX *tmp_ctx;
- char *str_opt;
-
- tmp_ctx = talloc_new(NULL);
- if (!tmp_ctx) return ENOMEM;
-
- ret = confdb_get_string(cdb, tmp_ctx, conf_path,
- CONFDB_DOMAIN_FAMILY_ORDER,
- "ipv4_first", &str_opt);
- if (ret != EOK) {
- goto done;
- }
-
- DEBUG(7, ("Lookup order: %s\n", str_opt));
-
- if (strcasecmp(str_opt, "ipv4_first") == 0) {
- *family_order = IPV4_FIRST;
- } else if (strcasecmp(str_opt, "ipv4_only") == 0) {
- *family_order = IPV4_ONLY;
- } else if (strcasecmp(str_opt, "ipv6_first") == 0) {
- *family_order = IPV6_FIRST;
- } else if (strcasecmp(str_opt, "ipv6_only") == 0) {
- *family_order = IPV6_ONLY;
- } else {
- DEBUG(1, ("Unknown value for option %s: %s\n",
- CONFDB_DOMAIN_FAMILY_ORDER, str_opt));
- ret = EINVAL;
- goto done;
- }
-
- ret = EOK;
-done:
- talloc_free(tmp_ctx);
- return ret;
-}
-
static int
return_code(int ares_code)
{
diff --git a/src/resolv/async_resolv.h b/src/resolv/async_resolv.h
index 8f8ddcbd..f6c72b4f 100644
--- a/src/resolv/async_resolv.h
+++ b/src/resolv/async_resolv.h
@@ -85,11 +85,6 @@ enum restrict_family {
IPV6_FIRST
};
-/* Read and validate the family order from conf_path in confdb */
-errno_t
-resolv_get_family_order(struct confdb_ctx *cdb, const char *conf_path,
- enum restrict_family *family_order);
-
/* If resolv_hostent->family is AF_INET, then ipaddr points to
* struct in_addr, else if family is AF_INET6, ipaddr points to
* struct in6_addr