1*38c8a9a5SSteve French /* SPDX-License-Identifier: LGPL-2.1 */ 2*38c8a9a5SSteve French /* 3*38c8a9a5SSteve French * DNS Resolver upcall management for CIFS DFS 4*38c8a9a5SSteve French * Handles host name to IP address resolution 5*38c8a9a5SSteve French * 6*38c8a9a5SSteve French * Copyright (c) International Business Machines Corp., 2008 7*38c8a9a5SSteve French * Author(s): Steve French (sfrench@us.ibm.com) 8*38c8a9a5SSteve French * 9*38c8a9a5SSteve French */ 10*38c8a9a5SSteve French 11*38c8a9a5SSteve French #ifndef _DNS_RESOLVE_H 12*38c8a9a5SSteve French #define _DNS_RESOLVE_H 13*38c8a9a5SSteve French 14*38c8a9a5SSteve French #include <linux/net.h> 15*38c8a9a5SSteve French 16*38c8a9a5SSteve French #ifdef __KERNEL__ 17*38c8a9a5SSteve French int dns_resolve_server_name_to_ip(const char *unc, struct sockaddr *ip_addr, time64_t *expiry); 18*38c8a9a5SSteve French #endif /* KERNEL */ 19*38c8a9a5SSteve French 20*38c8a9a5SSteve French #endif /* _DNS_RESOLVE_H */ 21