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. Regards, Munro
Take a look at net/bridge/br.c and net/bridge/br_ioctl.c Steve -----Original Message----- From: bridge-bounces@lists.osdl.org on behalf of munro Sent: Mon 7/11/2005 3:51 AM To: bridge@lists.osdl.org Cc: Subject: [Bridge] new ioctl 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. Regards, Munro
On Mon, 11 Jul 2005 15:51:38 +0800 munro <munro.biswal@smartbridges.com> 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.