summaryrefslogtreecommitdiff
path: root/lib/resolver.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-12-11 12:27:05 +0100
committerDavid Lamparter <equinox@diac24.net>2019-12-11 12:27:05 +0100
commit125dc9525b34089903ccd4402a2e9bf8c6c7f801 (patch)
treef3899d3c1668a4db68955d3c417f30a9332e55e2 /lib/resolver.h
parenta3d04c32b897a6b288af794bfd4a672e2105ba4a (diff)
lib/resolver: support/bypass IP literals
libc-ares doesn't do IP literals, so we have to do that before running off to do DNS. Since this isn't BMP specific, move to lib/ so NHRP can benefit too. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/resolver.h')
-rw-r--r--lib/resolver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/resolver.h b/lib/resolver.h
index bc6326edaa..a418377a29 100644
--- a/lib/resolver.h
+++ b/lib/resolver.h
@@ -15,6 +15,10 @@
struct resolver_query {
void (*callback)(struct resolver_query *, int n, union sockunion *);
+
+ /* used to immediate provide the result if IP literal is passed in */
+ union sockunion literal_addr;
+ struct thread *literal_cb;
};
void resolver_init(struct thread_master *tm);