Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dns_resolve.c File Reference
#include <linux/slab.h>
#include <linux/dns_resolver.h>
#include "dns_resolve.h"
#include "cifsglob.h"
#include "cifsproto.h"
#include "cifs_debug.h"

Go to the source code of this file.


int dns_resolve_server_name_to_ip (const char *unc, char **ip_addr)

Function Documentation

int dns_resolve_server_name_to_ip ( const char unc,
char **  ip_addr 

dns_resolve_server_name_to_ip - Resolve UNC server name to ip address. : UNC path specifying the server : Where to return the IP address.

The IP address will be returned in string form, and the caller is responsible for freeing it.

Returns length of result on success, -ve on error.

Definition at line 46 of file dns_resolve.c.