From owner-freebsd-net@FreeBSD.ORG Mon Apr 11 05:20:33 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48FA716A4CE; Mon, 11 Apr 2005 05:20:33 +0000 (GMT) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEE7243D39; Mon, 11 Apr 2005 05:20:32 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.4.9]) by relay-er5.mbrd.ru with esmtp (Exim 4.x) id 1DKrLb-000I39-3L; Mon, 11 Apr 2005 09:20:31 +0400 Message-ID: <425A091E.1000207@FreeBSD.org> Date: Mon, 11 Apr 2005 09:20:30 +0400 From: Sergey Matveychuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: gnn@FreeBSD.org References: <42590AB3.3070106@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@FreeBSD.org cc: net@FreeBSD.org Subject: Re: route entries after ICMP redirect X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 05:20:33 -0000 gnn@FreeBSD.org wrote: > If you want to handle this in a more clever way than a cron job you > could write a small daemon which reads routing messages and does "the > right thing" for whatever your situation is. I've explore a code and found I can do quite easy addition for dynamic routes - fill an expire field, check it periodicaly and remove expired entries (just like for arp entries). I think to do a sysctl variable for indication what time will set as expire values and set it to zero by default (no expires). -- Sem.