From patchwork Thu May 19 15:30:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mkrtchyan, Tigran" X-Patchwork-Id: 9127825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DC4F560221 for ; Thu, 19 May 2016 15:30:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D079D281BB for ; Thu, 19 May 2016 15:30:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5272281C3; Thu, 19 May 2016 15:30:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,HK_RANDOM_FROM, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7835F281BB for ; Thu, 19 May 2016 15:30:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932179AbcESPad (ORCPT ); Thu, 19 May 2016 11:30:33 -0400 Received: from smtp-o-1.desy.de ([131.169.56.154]:33655 "EHLO smtp-o-1.desy.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932140AbcESPad (ORCPT ); Thu, 19 May 2016 11:30:33 -0400 X-Clacks-Overhead: GNU Terry Pratchett Received: from smtp-map-1.desy.de (smtp-map-1.desy.de [131.169.56.66]) by smtp-o-1.desy.de (DESY-O-1) with ESMTP id 51455280973 for ; Thu, 19 May 2016 17:30:26 +0200 (CEST) Received: from ZITSWEEP2.win.desy.de (zitsweep2.win.desy.de [131.169.97.96]) by smtp-map-1.desy.de (DESY_MAP_1) with ESMTP id E9ABB13ECE for ; Thu, 19 May 2016 17:30:24 +0200 (MEST) Received: from smtp-intra-3.desy.de (lb-40-26.desy.de) by ZITSWEEP2.win.desy.de (Clearswift SMTPRS 5.5.0) with ESMTP id ; Thu, 19 May 2016 17:30:25 +0200 Received: from anahit.desy.de (anahit.desy.de [131.169.185.68]) by smtp-intra-3.desy.de (DESY-INTRA-3) with ESMTP id 89CAB2CE06; Thu, 19 May 2016 17:30:24 +0200 (MEST) From: Tigran Mkrtchyan To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org, Gil Amsalem , Tigran Mkrtchyan Subject: [PATCH] When trying to establish privileged source port number of tcp connection, use 1 instead of 0 as start port, as 0 means that the kernel will choose the port number Date: Thu, 19 May 2016 17:30:18 +0200 Message-Id: <1463671819-4933-3-git-send-email-tigran.mkrtchyan@desy.de> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1463671819-4933-1-git-send-email-tigran.mkrtchyan@desy.de> References: <1463671819-4933-1-git-send-email-tigran.mkrtchyan@desy.de> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gil Amsalem Signed-off-by: Tigran Mkrtchyan --- rpc/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/rpc.py b/rpc/rpc.py index 83a0222..1a3ca38 100644 --- a/rpc/rpc.py +++ b/rpc/rpc.py @@ -824,7 +824,7 @@ class ConnectionHandler(object): defer.wait() return pipe - def bindsocket(self, s, port=0): + def bindsocket(self, s, port=1): """Scan up through ports, looking for one we can bind to""" # This is necessary when we need to use a 'secure' port using = port