Re: sized data in struct ifreq

2006-01-15 Thread Brooks Davis
On Sat, Jan 14, 2006 at 11:53:45PM +, Bjoern A. Zeeb wrote: > On Thu, 12 Jan 2006, Brooks Davis wrote: > > > >Are there any objections to this change? I plan to use it to add the > >requested feature of interface descriptions. Here is a diff of possible > >changes to if.h. > > I still think

Re: sized data in struct ifreq

2006-01-14 Thread Bjoern A. Zeeb
On Thu, 12 Jan 2006, Brooks Davis wrote: Are there any objections to this change? I plan to use it to add the requested feature of interface descriptions. Here is a diff of possible changes to if.h. I still think that interface descriptions do not belong to kernel space. -- Bjoern A. Zeeb

sized data in struct ifreq

2006-01-12 Thread Brooks Davis
I'd like to introduce a new entry in the union in struct ifreq containing a pointer and a size. It would be used in place of ifr_data in new ioctls. The problem with the ifr_data (pseudo) member is that it encourages interfaces that encode the size of the data being passed implicitly in the kerne