]> bbs.cooldavid.org Git - net-next-2.6.git/commit
cifs: Allow binding to local IP address.
authorBen Greear <greearb@candelatech.com>
Thu, 2 Sep 2010 00:06:02 +0000 (17:06 -0700)
committerSteve French <sfrench@us.ibm.com>
Wed, 29 Sep 2010 19:04:29 +0000 (19:04 +0000)
commit3eb9a8893a76cf1cda3b41c3212eb2cfe83eae0e
treefd4fb596113f27bcbe3bba1f2777c91f14521f48
parent2b149f11978b44199954710d32c0eecf6c9efd9c
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>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c