> I've started to get some commands working, but I ran into some > problems > that I forgot to think about earlier (stupid me): > > 1) ioctl() doesn't get the size of the data buffer in BeOS - it's > always zero. Hence, it's needed to already know all the commands and > their buffer lengths at compile time, which isn't too nice (but hey, > it's working). > Fortunately, BSD ioctls are computed values and contain the length of > the buffer > > 2) pointers in buffers passed to ioctl() - we use them a lot, but > also > the BSD code (notably struct ifconf) uses them, and it's some ugly > work > required to copy those buffers first into the shared region. You could use area_for() for this. Just share the memory area they are in with the net_server. This is how net_server does it in R5. -Nathan -- Fortune Cookie Says: In Dr. Johnson's famous dictionary patriotism is defined as the last resort of the scoundrel. With all due respect to an enlightened but inferior lexicographer I beg to submit that it is the first. -- Ambrose Bierce, "The Devil's Dictionary"