nfs-utils/nfs-utils-1.0.10-udp-no-connect.patch
Steve Dickson 8e4266829b Doing a connect on UDP sockets causes the linux network stack to reject UDP
patches from multi-home server with nic on the same subnet. (bz 212471)
2006-11-28 14:18:52 +00:00

12 lines
378 B
Diff

--- nfs-utils-1.0.9/support/nfs/conn.c.noconnect
+++ nfs-utils-1.0.9/support/nfs/conn.c
@@ -98,7 +98,7 @@ int get_socket(struct sockaddr_in *saddr
return RPC_ANYSOCK;
}
}
- if (type == SOCK_STREAM || type == SOCK_DGRAM) {
+ if (type == SOCK_STREAM) {
cc = connect(so, (struct sockaddr *)saddr, namelen);
if (cc < 0) {
rpc_createerr.cf_stat = RPC_SYSTEMERROR;