From owner-freebsd-net@FreeBSD.ORG Tue May 22 17:33:12 2007 Return-Path: X-Original-To: net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E74F316A421; Tue, 22 May 2007 17:33:11 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (mail.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id D207013C4BA; Tue, 22 May 2007 17:33:11 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 5EC555B3E; Tue, 22 May 2007 10:07:03 -0700 (PDT) To: Gleb Smirnoff In-reply-to: Your message of "Tue, 22 May 2007 18:22:12 +0400." <20070522142212.GZ89017@FreeBSD.org> Date: Tue, 22 May 2007 10:07:03 -0700 From: Bakul Shah Message-Id: <20070522170703.5EC555B3E@mail.bitblocks.com> Cc: net@FreeBSD.org Subject: Re: walking (and cleaning) the routing table on mask change? 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: Tue, 22 May 2007 17:33:12 -0000 > what do you think about cleaning the routing table on mask change? I think it would be far easier and more correct to not allow just the mask change (which is never really needed). $ ifconfig tap0 10.1.1.0/24 $ netstat -nr | grep tap0 10.1.1.0/24 link#6 UC 0 0 tap0 $ ifconfig tap0 10.1.1.0/26 $ netstat -nr | grep tap0 10.1.1.0/26 link#6 UC 0 0 tap0