From owner-cvs-src@FreeBSD.ORG Wed May 19 23:35:27 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDF6B16A4CE; Wed, 19 May 2004 23:35:27 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D140543D39; Wed, 19 May 2004 23:35:27 -0700 (PDT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i4K6Z3AY006090; Wed, 19 May 2004 23:35:03 -0700 (PDT) (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i4K6Z3ni006089; Wed, 19 May 2004 23:35:03 -0700 (PDT) (envelope-from yar) Message-Id: <200405200635.i4K6Z3ni006089@repoman.freebsd.org> From: Yar Tikhiy Date: Wed, 19 May 2004 23:35:03 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet in_pcb.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 06:35:28 -0000 yar 2004/05/19 23:35:03 PDT FreeBSD src repository Modified files: sys/netinet in_pcb.c Log: When checking for possible port theft, skip over a TCP inpcb unless it's in the closed or listening state (remote address == INADDR_ANY). If a TCP inpcb is in any other state, it's impossible to steal its local port or use it for port theft. And if there are both closed/listening and connected TCP inpcbs on the same localIP:port couple, the call to in_pcblookup_local() will find the former due to the design of that function. No objections raised in: -net, -arch MFC after: 1 month Revision Changes Path 1.147 +3 -7 src/sys/netinet/in_pcb.c