diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-04-07 02:00:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-04-07 02:00:27 +0000 |
commit | ae06191038e8757bc9ba637c7c94f2e02817b43b (patch) | |
tree | 67e37d19c72eeffa82c97e4d40732dfedce930f1 /resolv/res_init.c | |
parent | 735be400144a70658c635382a74653582d50c835 (diff) | |
download | glibc-ae06191038e8757bc9ba637c7c94f2e02817b43b.tar.gz glibc-ae06191038e8757bc9ba637c7c94f2e02817b43b.tar.xz glibc-ae06191038e8757bc9ba637c7c94f2e02817b43b.zip |
* resolv/resolv.h (RES_SNGLKUP): Define. cvs/fedora-glibc-20090407T0545
* resolv/res_init.c (res_setoptions): Recognize single-request option. * resolv/res_send.c (send_dg): If we sent two requests at once and only get one reply before timeout switch to mode where we send the second request only after the first answer has been received.
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r-- | resolv/res_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c index 2bf830cc95..8841fe9faa 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -540,6 +540,9 @@ res_setoptions(res_state statp, const char *options, const char *source) { statp->options |= RES_NOCHECKNAME; } else if (!strncmp(cp, "edns0", sizeof("edns0") - 1)) { statp->options |= RES_USE_EDNS0; + } else if (!strncmp(cp, "single-request", + sizeof("single-request") - 1)) { + statp->options |= RES_SNGLKUP; } else { /* XXX - print a warning here? */ } |