diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-06-24 18:16:41 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-06-24 18:18:44 +0200 |
commit | f282cdbe7f436c75864e5640a409a10485e9abb2 (patch) | |
tree | 82983c97f959dd19508b1ef3c89f2aa1b8e8db30 /resolv/resolv-internal.h | |
parent | 62a321b12d0e397af88fa422db65079332f971dc (diff) | |
download | glibc-f282cdbe7f436c75864e5640a409a10485e9abb2.zip glibc-f282cdbe7f436c75864e5640a409a10485e9abb2.tar.gz glibc-f282cdbe7f436c75864e5640a409a10485e9abb2.tar.bz2 |
resolv: Implement no-aaaa stub resolver option
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv/resolv-internal.h')
-rw-r--r-- | resolv/resolv-internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h index 9d2e832..bb12f47 100644 --- a/resolv/resolv-internal.h +++ b/resolv/resolv-internal.h @@ -85,6 +85,14 @@ int __res_context_send (struct resolv_context *, const unsigned char *, int, int *, int *, int *); libc_hidden_proto (__res_context_send) +/* Return true if the query has been handled in RES_NOAAAA mode. For + that, RES_NOAAAA must be active, and the question type must be AAAA. + The caller is expected to return *RESULT as the return value. */ +bool __res_handle_no_aaaa (struct resolv_context *ctx, + const unsigned char *buf, int buflen, + unsigned char *ans, int anssiz, int *result) + attribute_hidden; + /* Internal function similar to res_hostalias. */ const char *__res_context_hostalias (struct resolv_context *, const char *, char *, size_t); |