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)
This commit is contained in:
Steve Dickson 2006-11-28 14:18:52 +00:00
parent 7cb13c84e8
commit 8e4266829b
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- 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;

View File

@ -1,7 +1,7 @@
Summary: NFS utlilities and supporting clients and daemons for the kernel NFS server. Summary: NFS utlilities and supporting clients and daemons for the kernel NFS server.
Name: nfs-utils Name: nfs-utils
Version: 1.0.10 Version: 1.0.10
Release: 3%{?dist} Release: 4%{?dist}
Epoch: 1 Epoch: 1
# group all 32bit related archs # group all 32bit related archs
@ -44,6 +44,7 @@ Patch75: nfs-utils-1.0.9-nfsmount-authnone.patch
Patch76: nfs-utils-1.0.9-mount-remount.patch Patch76: nfs-utils-1.0.9-mount-remount.patch
Patch77: nfs-utils-1.0.10-export-nosubtree.patch Patch77: nfs-utils-1.0.10-export-nosubtree.patch
Patch78: nfs-utils-1.0.10-mount-nfsvers.patch Patch78: nfs-utils-1.0.10-mount-nfsvers.patch
Patch79: nfs-utils-1.0.10-udp-no-connect.patch
%if %{enablefscache} %if %{enablefscache}
Patch90: nfs-utils-1.0.9-mount-fsc.patch Patch90: nfs-utils-1.0.9-mount-fsc.patch
@ -109,6 +110,7 @@ This package also contains the mount.nfs and umount.nfs program.
%patch76 -p1 %patch76 -p1
%patch77 -p1 %patch77 -p1
%patch78 -p1 %patch78 -p1
%patch79 -p1
%if %{enablefscache} %if %{enablefscache}
%patch90 -p1 %patch90 -p1
%endif %endif
@ -286,6 +288,11 @@ fi
%endif %endif
%changelog %changelog
* Wed Nov 28 2006 Steve Dickson <steved@redhat.com> 1.0.10-4
- 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)
* Wed Nov 15 2006 Steve Dickson <steved@redhat.com> 1.0.10-3 * Wed Nov 15 2006 Steve Dickson <steved@redhat.com> 1.0.10-3
- Removed some old mounting versioning code that was - Removed some old mounting versioning code that was
stopping tcp mount from working (bz 212471) stopping tcp mount from working (bz 212471)