From bbe989ee87ee81f45a4f6450bff468f7a193e79e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sat, 31 Dec 2016 19:08:39 +0100 Subject: resolv: Deprecate RES_BLAST --- resolv/res_debug.c | 1 - resolv/res_send.c | 3 +-- resolv/resolv.h | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'resolv') diff --git a/resolv/res_debug.c b/resolv/res_debug.c index 33891878d8..12059c229b 100644 --- a/resolv/res_debug.c +++ b/resolv/res_debug.c @@ -558,7 +558,6 @@ p_option(u_long option) { case RES_NOALIASES: return "noaliases"; case DEPRECATED_RES_USE_INET6: return "inet6"; case RES_ROTATE: return "rotate"; - case RES_BLAST: return "blast"; case RES_USE_EDNS0: return "edns0"; case RES_SNGLKUP: return "single-request"; case RES_SNGLKUPREOP: return "single-request-reopen"; diff --git a/resolv/res_send.c b/resolv/res_send.c index cc2a7de886..1839225605 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -424,8 +424,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen, * Some resolvers want to even out the load on their nameservers. * Note that RES_BLAST overrides RES_ROTATE. */ - if (__builtin_expect ((statp->options & RES_ROTATE) != 0, 0) && - (statp->options & RES_BLAST) == 0) { + if (__builtin_expect ((statp->options & RES_ROTATE) != 0, 0)) { struct sockaddr_in ina; struct sockaddr_in6 *inp; int lastns = statp->nscount - 1; diff --git a/resolv/resolv.h b/resolv/resolv.h index ddc022091c..7809e2eb19 100644 --- a/resolv/resolv.h +++ b/resolv/resolv.h @@ -197,7 +197,8 @@ struct res_sym { __glibc_macro_warning ("RES_NOCHECKNAME is deprecated") 0x00008000 #define RES_KEEPTSIG \ __glibc_macro_warning ("RES_KEEPTSIG is deprecated") 0x00010000 -#define RES_BLAST 0x00020000 /* blast all recursive servers */ +#define RES_BLAST \ + __glibc_macro_warning ("RES_BLAST is deprecated") 0x00020000 #define RES_USE_EDNS0 0x00100000 /* Use EDNS0. */ #define RES_SNGLKUP 0x00200000 /* one outstanding request at a time */ #define RES_SNGLKUPREOP 0x00400000 /* -"-, but open new socket for each -- cgit v1.2.3