summaryrefslogtreecommitdiffstats
path: root/fs/cifs/dns_resolve.h
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@cjr.nz>2022-10-04 18:41:36 -0300
committerSteve French <stfrench@microsoft.com>2022-12-19 08:03:11 -0600
commit6d740164d8903e6a0e98c30f80fac6af19ce0a21 (patch)
tree9861e8bfcac455a3a51dba53cc4208351c44837b /fs/cifs/dns_resolve.h
parent2301bc103ac4acb6d6b6e5860eeed448c4ba2df0 (diff)
downloadlinux-6d740164d8903e6a0e98c30f80fac6af19ce0a21.tar.bz2
cifs: set resolved ip in sockaddr
All callers from dns_resolve_server_name_to_ip() used to convert the ip addr string back to sockaddr, so do that inside dns_resolve_server_name_to_ip() and avoid duplicating code. Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/dns_resolve.h')
-rw-r--r--fs/cifs/dns_resolve.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/dns_resolve.h b/fs/cifs/dns_resolve.h
index afc0df381246..6eb0c15a2440 100644
--- a/fs/cifs/dns_resolve.h
+++ b/fs/cifs/dns_resolve.h
@@ -11,8 +11,10 @@
#ifndef _DNS_RESOLVE_H
#define _DNS_RESOLVE_H
+#include <linux/net.h>
+
#ifdef __KERNEL__
-extern int dns_resolve_server_name_to_ip(const char *unc, char **ip_addr, time64_t *expiry);
+int dns_resolve_server_name_to_ip(const char *unc, struct sockaddr *ip_addr, time64_t *expiry);
#endif /* KERNEL */
#endif /* _DNS_RESOLVE_H */