.. | .. |
---|
24 | 24 | #ifndef _LINUX_DNS_RESOLVER_H |
---|
25 | 25 | #define _LINUX_DNS_RESOLVER_H |
---|
26 | 26 | |
---|
27 | | -#ifdef __KERNEL__ |
---|
| 27 | +#include <uapi/linux/dns_resolver.h> |
---|
28 | 28 | |
---|
29 | | -extern int dns_query(const char *type, const char *name, size_t namelen, |
---|
30 | | - const char *options, char **_result, time64_t *_expiry); |
---|
31 | | - |
---|
32 | | -#endif /* KERNEL */ |
---|
| 29 | +struct net; |
---|
| 30 | +extern int dns_query(struct net *net, const char *type, const char *name, size_t namelen, |
---|
| 31 | + const char *options, char **_result, time64_t *_expiry, |
---|
| 32 | + bool invalidate); |
---|
33 | 33 | |
---|
34 | 34 | #endif /* _LINUX_DNS_RESOLVER_H */ |
---|