Re: [cifs] cifs: Allow binding to local IP address.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/25/2010 05:35 PM, Steve French wrote:
On Wed, Aug 25, 2010 at 6:00 PM, Ben Greear<greearb@xxxxxxxxxxxxxxx>  wrote:
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 bindaddr=192.168.1.50,user=foo, ...

Seems like a reasonable idea, but I have a few questions.
Is there a similar named mount option for other network
file systems on other operating systems?

I have patches for NFS as well, but they are a bit more complex,
so I was going to start with cifs.

It *seems* that bindaddr is sort of half way expected to work,
for nfs, (but does not on linux, last I checked, without my additional patches).

I've never tried this on any other platform.

Also don't IPv6 address strings already allow you to specify the local
interface to use?

I think you still have to do the bind() call somewhere, and I don't
think that is happening in the current cifs code.

If/when I can get the ipv4 stuff in acceptable shape for inclusion,
I'll work on ipv6 (it shouldn't be much additional work).

Thanks,
Ben

--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux