diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-02-09 23:46:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-02-09 23:46:29 +0000 |
commit | 2bbb7d5b3c517956e95e5827037a76cbc39a20c8 (patch) | |
tree | e5d2f14edf74a9e9992ebe907e5feffd9dca7c7e /include | |
parent | 00458b5bee15b31f90bca83c79f29e168f04ecc8 (diff) | |
download | glibc-2bbb7d5b3c517956e95e5827037a76cbc39a20c8.tar.gz glibc-2bbb7d5b3c517956e95e5827037a76cbc39a20c8.tar.xz glibc-2bbb7d5b3c517956e95e5827037a76cbc39a20c8.zip |
* resolv/res_init.c (res_setoptions): Recognize edns0 option.
* resolv/res_mkquery.c: Define __res_nopt. * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set try adding EDNS0 record. * resolv/res_send.c (send_dg): If request failed with FORMERR and EDNS0 record was send make sure we don't try it again. * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0. * include/resolv.h: Declare __res_nopt.
Diffstat (limited to 'include')
-rw-r--r-- | include/resolv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h index 189e4fb58b..c1c89f0ada 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -48,6 +48,8 @@ extern void res_send_setrhook (res_send_rhook __hook); extern int res_ourserver_p (const res_state __statp, const struct sockaddr_in6 *__inp); extern void __res_iclose (res_state statp, bool free_addr); +extern int __res_nopt(res_state statp, int n0, u_char *buf, int buflen, + int anslen); libc_hidden_proto (__res_ninit) libc_hidden_proto (__res_maybe_init) libc_hidden_proto (__res_nclose) @@ -100,6 +102,7 @@ libresolv_hidden_proto (__ns_name_ntop) libresolv_hidden_proto (__ns_name_unpack) libresolv_hidden_proto (__ns_get16) libresolv_hidden_proto (__ns_get32) +libresolv_hidden_proto (__res_nopt) extern const char *_res_opcodes[]; libresolv_hidden_proto (_res_opcodes) |