From owner-freebsd-net Sat Jun 8 6:51:44 2002 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id D6A3037B405 for ; Sat, 8 Jun 2002 06:51:38 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [IPv6:fec0::1:12]) by Awfulhak.org (8.12.3/8.12.3) with ESMTP id g58DpaKZ061394; Sat, 8 Jun 2002 14:51:36 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [IPv6:::1]) by hak.lan.Awfulhak.org (8.12.3/8.12.3) with SMTP id g58DpY9B099330; Sat, 8 Jun 2002 14:51:34 +0100 (BST) (envelope-from brian@Awfulhak.org) Date: Sat, 8 Jun 2002 14:51:34 +0100 From: Brian Somers To: Iasen Kostov Cc: freebsd-net@FreeBSD.ORG, vova@sw.ru Subject: Re: host routes for interface addresses Message-Id: <20020608145134.07fda923.brian@Awfulhak.org> In-Reply-To: <20020607170224.G32865-100000@shadowhand.OTEL.net> References: <20020607152801.T32865-100000@shadowhand.OTEL.net> <20020607170224.G32865-100000@shadowhand.OTEL.net> X-Mailer: Sylpheed version 0.7.5claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 7 Jun 2002 17:27:46 +0300 (EEST), Iasen Kostov wrote: > > > On Fri, 7 Jun 2002, Iasen Kostov wrote: > > > > > I think it's possible to use SIOCSIFCAP to tell the kernel not to set > > host route via IFCAP_NOROUTE or something similar which will set > > IFCAP_NOROUTE in uif_capenable. This flag will be checked in in_ifinit() > > and if it is set no host route will be added. And ofcourse there should be > > a way to set this by ifconfig ( -noroute for example). > > What you think about this ? > > > Hum or set an iface flag IFF_NOROUTE in struct ifnet.if_flags by > SIOCGIFFLAGS ioctl. > What you think ? The problem is that ifnet::if_flags is a short and all of it's bits are already used up :( -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message