From owner-freebsd-net Tue Nov 16 22: 7: 6 1999 Delivered-To: freebsd-net@freebsd.org Received: from lion.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id 358A615017 for ; Tue, 16 Nov 1999 22:06:56 -0800 (PST) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by lion.butya.kz with local-esmtp (Exim 2.12 #1) id 11nyEx-0001iY-00; Wed, 17 Nov 1999 12:06:47 +0600 Date: Wed, 17 Nov 1999 12:06:46 +0600 (ALMT) From: Boris Popov To: Alex Feldman Cc: net@FreeBSD.ORG Subject: Re: Network interface name In-Reply-To: <004001bf3074$33255f10$7801a8c0@alex.SANGOMA.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 16 Nov 1999, Alex Feldman wrote: > I'm writting multiple device/protocol driver. > My netowork interface name includes number in the middle of the name (ex. > xx1_xxx12). when I check is network interface is already attached to kernel, > I use 'ifunit' function. But, as I see its source code, FreeBSD not permit > the number inside the network interface name. > Is someone went into this problem? How can I solve this problem (without > changing the name)? > I think that enoght to change only 'ifunit' function.. Is it correct? Right, only ifunit() code depends on it. Having ability to create subinterfaces (like ed0f1) is very useful and this syntax is already supported for disks (wd0s1a). Patches for ifunit() function you can extract from the if_ef driver: ftp://ftp.butya.kz/pub/ipx/ifef-1.2.tar.gz -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message