patch-1.3.11 linux/fs/nfs/sock.c
Next file: linux/include/asm-alpha/system.h
Previous file: linux/fs/nfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Tue Jul 18 14:53:16 1995
- Orig file:
v1.3.10/linux/fs/nfs/sock.c
- Orig date:
Tue Feb 7 11:43:23 1995
diff -u --recursive --new-file v1.3.10/linux/fs/nfs/sock.c linux/fs/nfs/sock.c
@@ -102,7 +102,10 @@
fs = get_fs();
set_fs(get_ds());
for (n = 0, timeout = init_timeout; ; n++, timeout <<= 1) {
- result = sock->ops->send(sock, (void *) start, len, 0, 0);
+ /* JSP 1995-07-01 Use sendto() not send() to cope with multi-homed hosts
+ as we have set the socket to have INADDR_ANY as it's desination */
+ result = sock->ops->sendto(sock, (void *) start, len, 0, 0,
+ &(server->toaddr), sizeof((server->toaddr))) ;
if (result < 0) {
printk("nfs_rpc_call: send error = %d\n", result);
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this