On Mon, Jul 14, 2003 at 09:15:01PM +0200, Marco Gerards wrote:
> I'm trying to implement the SIOCADDRT ioctl for the Hurd. I've
> encountered a problem in the Hurd/glibc while doing this.
> 
> The format of an ioctl request "bits/ioctls.h" is defined. In this
> request there are only 5 bits defined to store the size of a
> parameter. SIOCADDRT uses "struct rtentry", a structure with the size
> of 84 bytes.

Right, that is only of limited usefulness.

> So without any serious changes the ioctl cannot be implemented. Can
> someone please give me some hints what to do? I can only think of
> extending pfinet.defs with a pfinet_addroute instead of adding an
> ioctl, but this does not solve the ioctl problem :(. Another option is
> changing the size of the request from 32 bits to 64 bits, but this
> will break binary compatibility for other ioctls.

See what I did for the SIOCGIFCONF.  You need to excempt it from the
normal handling and write a wrapper function for it.

Thanks,
Marcus


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to