mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
6d740164d8
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>
21 lines
499 B
C
21 lines
499 B
C
/* SPDX-License-Identifier: LGPL-2.1 */
|
|
/*
|
|
* DNS Resolver upcall management for CIFS DFS
|
|
* Handles host name to IP address resolution
|
|
*
|
|
* Copyright (c) International Business Machines Corp., 2008
|
|
* Author(s): Steve French (sfrench@us.ibm.com)
|
|
*
|
|
*/
|
|
|
|
#ifndef _DNS_RESOLVE_H
|
|
#define _DNS_RESOLVE_H
|
|
|
|
#include <linux/net.h>
|
|
|
|
#ifdef __KERNEL__
|
|
int dns_resolve_server_name_to_ip(const char *unc, struct sockaddr *ip_addr, time64_t *expiry);
|
|
#endif /* KERNEL */
|
|
|
|
#endif /* _DNS_RESOLVE_H */
|