cifs.upcall: use ip address passed by kernel to get server's hostname
commitff1b2c8725e21ed7fc944020a1c1cc12a80a9bec
authorJeff Layton <jlayton@redhat.com>
Wed, 14 Oct 2009 15:06:18 +0000 (14 11:06 -0400)
committerKarolin Seeger <kseeger@samba.org>
Fri, 16 Oct 2009 13:04:55 +0000 (16 15:04 +0200)
tree9eefbcbe5deff2888d65d96dad007279a38a91d7
parentfe57399ac4ddbdc601871579478b996cfc85fcee
cifs.upcall: use ip address passed by kernel to get server's hostname

Instead of using the hostname given by the upcall to get the server's
principal, take the IP address given in the upcall and reverse resolve
it to a hostname.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
source/client/cifs.upcall.c