From owner-freebsd-current@FreeBSD.ORG Tue Jul 29 13:00:29 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32D5A37B401 for ; Tue, 29 Jul 2003 13:00:29 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E90B43F3F for ; Tue, 29 Jul 2003 13:00:26 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h6TK04j31733; Tue, 29 Jul 2003 17:00:05 -0300 Message-ID: <3F26D244.7060905@tcoip.com.br> Date: Tue, 29 Jul 2003 17:00:04 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Terry Lambert References: <20030729094308.L41136@cvs.imp.ch> <3F262E1E.9936E5D7@mindspring.com> In-Reply-To: <3F262E1E.9936E5D7@mindspring.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Martin Blapp cc: current@freebsd.org Subject: Re: STEP 2, fixing dhclient behaviour with multiple interfaces X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2003 20:00:29 -0000 Terry Lambert wrote: > Martin Blapp wrote: > >>I't is my goal to make dhclient really functional, so it can not only >>be used with one interface, but several. >> >>On a well known OS this works just fine. A first interface gets >>initialized and the GW gets set as usual. But if a second interface >>gets added, and the first one is still active and has a working lease, >>the GW will not be overwriten. If you remove now the first interface, >>the default GW changes to the one of the second interface. > > [ ... ] > >>If there are other ideas, I'm open to them. > > > You could add kevents for interface arrival and departure, and > add a kqueue to the dhcpd to catch the arrival/departure events, > and then just act on them. Instead of just adding the stuff to devd? -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Some people have parts that are so private they themselves have no knowledge of them.