Date: Mon, 11 Jul 2005 10:20:44 -0700 From: Stephen Hemminger Subject: Re: [Bridge] new ioctl Message-ID: <20050711102044.29f2a5ef@dxpl.pdx.osdl.net> In-Reply-To: <42D2250A.5090105@smartbridges.com> References: <42D2250A.5090105@smartbridges.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: munro Cc: bridge@lists.osdl.org On Mon, 11 Jul 2005 15:51:38 +0800 munro wrote: > Hi, all, > > I am a newbie. i wish to add another ioctl into brctl for doing some > manipulations. How do i do so?? > > Please advise on the steps. > I moved away from using ioctl's for doing bridge stuff and used sysfs instead for the newer API's in 2.6. The problem was that it is impossible to to use device private ioctl's in a mixed 32bit/64bit environment. If you look at the ioctl translation code in kernel/compat.c you will see how the bridge specific ioctl's are translated. But the SIOCDEVPRIVATE one's couldn't easily be fixed.