summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorBen Greear2010-09-02 02:06:02 +0200
committerSteve French2010-09-29 21:04:29 +0200
commit3eb9a8893a76cf1cda3b41c3212eb2cfe83eae0e (patch)
treefd4fb596113f27bcbe3bba1f2777c91f14521f48 /fs/cifs/cifsglob.h
parentcifs NTLMv2/NTLMSSP ntlmv2 within ntlmssp autentication code (diff)
downloadkernel-qcow2-linux-3eb9a8893a76cf1cda3b41c3212eb2cfe83eae0e.tar.gz
kernel-qcow2-linux-3eb9a8893a76cf1cda3b41c3212eb2cfe83eae0e.tar.xz
kernel-qcow2-linux-3eb9a8893a76cf1cda3b41c3212eb2cfe83eae0e.zip
cifs: Allow binding to local IP address.
When using multi-homed machines, it's nice to be able to specify the local IP to use for outbound connections. This patch gives cifs the ability to bind to a particular IP address. Usage: mount -t cifs -o srcaddr=192.168.1.50,user=foo, ... Usage: mount -t cifs -o srcaddr=2002::100:1,user=foo, ... Acked-by: Jeff Layton <jlayton@redhat.com> Acked-by: Dr. David Holder <david.holder@erion.co.uk> Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index c68f31cf4550..6ef0efaf68d4 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -139,6 +139,7 @@ struct TCP_Server_Info {
struct sockaddr_in sockAddr;
struct sockaddr_in6 sockAddr6;
} addr;
+ struct sockaddr_storage srcaddr; /* locally bind to this IP */
wait_queue_head_t response_q;
wait_queue_head_t request_q; /* if more than maxmpx to srvr must block*/
struct list_head pending_mid_q;