Re: Can you specify a local IP or Interface to be used on a per NFS mount basis?

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

 



From: Ben Greear <[email protected]>
Date: Wed, 18 Jan 2006 18:21:26 -0800

> When a socket is created, you can optionally bind to local IP,
> interface and/or IP-Port.  Somewhere, NFS is opening a socket I
> assume?  So, is there a way to ask it to bind?

Things like net/sunrpc/xprtsock.c:xs_bindresvport() will bind,
but to a specific port.  It leaves the address field all zeros
which makes the kernel pick a default.

net/sunrpc/svcsock.c does something similar, you can get it
to use a particular port but it uses INADDR_ANY for the
address during the bind().
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux