cifs.upcall: use ip address passed by kernel to get server's hostname
authorJeff Layton <jlayton@redhat.com>
Fri, 14 Aug 2009 11:59:50 +0000 (07:59 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 14 Aug 2009 11:59:50 +0000 (07:59 -0400)
commit2f95ccc1e2c7fe8efd341cd6fc5adc402a7a0a18
treed31273544378843a8cff7a835088cb3c5272e536
parentacbf026012af1c87b680b8d80ea9e4123e24b91a
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>
client/cifs.upcall.c