From patchwork Thu Jun 9 23:02:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Greear X-Patchwork-Id: 867442 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p59N2r8j030261 for ; Thu, 9 Jun 2011 23:03:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756904Ab1FIXDX (ORCPT ); Thu, 9 Jun 2011 19:03:23 -0400 Received: from mail.candelatech.com ([208.74.158.172]:34518 "EHLO ns3.lanforge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756550Ab1FIXDW (ORCPT ); Thu, 9 Jun 2011 19:03:22 -0400 Received: from fs3.candelatech.com (firewall.candelatech.com [70.89.124.249]) by ns3.lanforge.com (8.14.2/8.14.2) with ESMTP id p59N33Sh008979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Jun 2011 16:03:11 -0700 From: greearb@candelatech.com To: linux-nfs@vger.kernel.org Cc: Ben Greear Subject: [RFC 02/11] nfs: Two AF_UNSPEC addresses should always match each other. Date: Thu, 9 Jun 2011 16:02:46 -0700 Message-Id: <1307660575-6994-3-git-send-email-greearb@candelatech.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1307660575-6994-1-git-send-email-greearb@candelatech.com> References: <1307660575-6994-1-git-send-email-greearb@candelatech.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 09 Jun 2011 23:03:43 +0000 (UTC) From: Ben Greear Signed-off-by: Ben Greear --- :100644 100644 b3dc2b8... 8ba7e1a... M fs/nfs/client.c fs/nfs/client.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index b3dc2b8..8ba7e1a 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -403,6 +403,8 @@ static int nfs_sockaddr_match_ipaddr(const struct sockaddr *sa1, return nfs_sockaddr_match_ipaddr4(sa1, sa2); case AF_INET6: return nfs_sockaddr_match_ipaddr6(sa1, sa2); + case AF_UNSPEC: + return 1; /* two UNSPEC addresses match */ } return 0; }