From 8e4266829bf0ce043a6dae642abbbb72f0a179e4 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 28 Nov 2006 14:18:52 +0000 Subject: [PATCH] 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) --- nfs-utils-1.0.10-udp-no-connect.patch | 11 +++++++++++ nfs-utils.spec | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 nfs-utils-1.0.10-udp-no-connect.patch diff --git a/nfs-utils-1.0.10-udp-no-connect.patch b/nfs-utils-1.0.10-udp-no-connect.patch new file mode 100644 index 0000000..b15249d --- /dev/null +++ b/nfs-utils-1.0.10-udp-no-connect.patch @@ -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; diff --git a/nfs-utils.spec b/nfs-utils.spec index d1fd69b..bb331f3 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -1,7 +1,7 @@ Summary: NFS utlilities and supporting clients and daemons for the kernel NFS server. Name: nfs-utils Version: 1.0.10 -Release: 3%{?dist} +Release: 4%{?dist} Epoch: 1 # 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 Patch77: nfs-utils-1.0.10-export-nosubtree.patch Patch78: nfs-utils-1.0.10-mount-nfsvers.patch +Patch79: nfs-utils-1.0.10-udp-no-connect.patch %if %{enablefscache} 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 %patch77 -p1 %patch78 -p1 +%patch79 -p1 %if %{enablefscache} %patch90 -p1 %endif @@ -286,6 +288,11 @@ fi %endif %changelog +* Wed Nov 28 2006 Steve Dickson 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 1.0.10-3 - Removed some old mounting versioning code that was stopping tcp mount from working (bz 212471)