From owner-freebsd-net@FreeBSD.ORG Sat Feb 5 00:34:28 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22B881065675 for ; Sat, 5 Feb 2011 00:34:28 +0000 (UTC) (envelope-from prabhuh@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D51518FC0C for ; Sat, 5 Feb 2011 00:34:27 +0000 (UTC) Received: by yxh35 with SMTP id 35so1194596yxh.13 for ; Fri, 04 Feb 2011 16:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=5nGdHwcnUUHKAlbFKpTmhpsNmx6R4xck+LIh7NWuOCw=; b=bbjEDStuC2nnLiF7cdJ6JHD0NoPVBcT3uEyxfs7jmnBfapanR2v/19KuzdHYthoJJq vYF4SjGPM+co4Coz8ZcwKz3tJ5WGl93iueko1lLj+HMNHYjeMVNTdMTiyTKxdCseTyli aNIBPMGl0sCR61xfQprQW38TrIvUN02rVMWqw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AGrHjB7u9ny6Sb6Vip4IrnOnM+sA5ZdUMYFLv61By8DZO1+mv1bRZ82r6pYph6DrYK FtIq62VWKYo2PIHg4evTPBawPZt5BBr870BpOdYuPGf8wxjkIo0OSMgxfcyksKLQTwAb X/sdrkLUtHZpbslVgGJSC4tmMaMP1HByMr2io= MIME-Version: 1.0 Received: by 10.100.131.4 with SMTP id e4mr1666457and.59.1296864184709; Fri, 04 Feb 2011 16:03:04 -0800 (PST) Received: by 10.100.38.14 with HTTP; Fri, 4 Feb 2011 16:03:04 -0800 (PST) Date: Fri, 4 Feb 2011 16:03:04 -0800 Message-ID: From: Prabhu Hariharan To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Connections not purged on address deletion X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 00:34:28 -0000 Hi, When I delete an IP-address from an interface, the TCP (and other) connections using that local IP-address are not getting purged. The telnet or ssh sessions on the other end just get hung, as FreeBSD address-deletion doesn't handle this situation and fails to call pfctlinput() to notify protocols on this event. The TCP connections simply linger in the system and takes it due course on TCP timers to free those inpcbs. tcp4 0 0 30.30.30.31.22 30.30.30.30.58796 ESTABLISHED Is this by design? Or any significance on relying on applications intelligently to do timeouts, without a notification from network layer? Thanks, Prabhu H