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

From: David S. Miller
Date: Wed Jan 18 2006 - 21:27:59 EST


From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/