cifs.upcall: use ip address passed by kernel to get server's hostname
commitddbd5be71987a446a24c49f68075b6c645539e4f
authorJeff Layton <jlayton@redhat.com>
Wed, 14 Oct 2009 15:06:18 +0000 (14 11:06 -0400)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2010 13:00:50 +0000 (13 14:00 +0100)
tree38ff7e3419d8490995d057d1bad1f09c7fb238cc
parent4d2e71c4f6d31c0032b39b92d814ec4dfe074db3
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>
(cherry picked from commit ff1b2c8725e21ed7fc944020a1c1cc12a80a9bec)
source/client/cifs.upcall.c