From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 3 02:50:38 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B851116A420; Mon, 3 Oct 2005 02:50:38 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C79B43D46; Mon, 3 Oct 2005 02:50:38 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (yar@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j932ocNj002579; Mon, 3 Oct 2005 02:50:38 GMT (envelope-from yar@freefall.freebsd.org) Received: (from yar@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j932ocqj002575; Mon, 3 Oct 2005 02:50:38 GMT (envelope-from yar) Date: Mon, 3 Oct 2005 02:50:38 GMT From: Yar Tikhiy Message-Id: <200510030250.j932ocqj002575@freefall.freebsd.org> To: nuno.antunes@gmail.com, yar@FreeBSD.org, freebsd-bugs@FreeBSD.org, yar@FreeBSD.org Cc: Subject: Re: bin/82367: [PATCH] ifconfig ifname.tag does not automatically load if_vlan module X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2005 02:50:38 -0000 Synopsis: [PATCH] ifconfig ifname.tag does not automatically load if_vlan module State-Changed-From-To: open->closed State-Changed-By: yar State-Changed-When: Mon Oct 3 02:40:39 GMT 2005 State-Changed-Why: I'm sorry to close this PR, but indeed the interface name handling in FreeBSD is too sophisticated to assume that rl0.10 will always stand for vlan 10 on rl0. As a matter of fact, the kernel iterates over all loaded drivers to see which one claims the interface name to create, and each driver provides a function that determines if the name belongs to this driver. You see, there is no simple 1-to-1 correspondence between an interface name and the respective driver. ifconfig(8) tries to guess interface type from its name, but this is really primitive and tricky because it doesn't quite correspond to what happens in the kernel. Responsible-Changed-From-To: freebsd-bugs->yar Responsible-Changed-By: yar Responsible-Changed-When: Mon Oct 3 02:40:39 GMT 2005 Responsible-Changed-Why: Just looking after vlan(4) sometimes. http://www.freebsd.org/cgi/query-pr.cgi?pr=82367