From owner-freebsd-net Thu Nov 14 8:44:29 2002 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 77B8E37B401 for ; Thu, 14 Nov 2002 08:44:28 -0800 (PST) Received: from fep07-app.kolumbus.fi (fep07-0.kolumbus.fi [193.229.0.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB23A43E4A for ; Thu, 14 Nov 2002 08:44:24 -0800 (PST) (envelope-from pasi.savanain@kolumbus.fi) Received: from kolumbus.fi ([80.186.22.134]) by fep07-app.kolumbus.fi with ESMTP id <20021114164411.GMPV16201.fep07-app.kolumbus.fi@kolumbus.fi> for ; Thu, 14 Nov 2002 18:44:11 +0200 Message-ID: <3DD3D2DB.70401@kolumbus.fi> Date: Thu, 14 Nov 2002 18:44:11 +0200 From: Pasi Savanainen User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021024 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@FreeBSD.org Subject: Network driver IOCTL Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 I am implementing a redundant LAN pseudo-driver. I had to hack a /netinet/if_ether.c file so that arpinput will update arp cache. I tried to use SIOCGIFGENERIC ioctl, but vlan seems to be use the same command. The problem is that ifconfig use that generic command and core dumps. I think that ifconfig should asks vlan status only from the vlan interfaces. If I can't use SIOCGIFGENERIC, I have to define a new ioctl command. Are /sys/sockio.h and /net/if.c the correct files to new command? All hints are helpfull? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message