freebsd-nq/sys/compat
Ian Dowse b0cb4883b1 Deal with a few issues that cropped up following the recent changes
to the code for translating socket and private ioctls:

- Only perform socket ioctl translation if the file descriptor is a
  socket.
- Treat socket ioctls on non-sockets specially, and for now assume
  that these are directed at a tap/vmnet device, so translate the
  ioctl numbers as appropriate (the way if_tap abuses some socket
  ioctls to pass non-ifreq data is utterly bogus, but this is how
  VMware on FreeBSD has always "worked"; I will deal with this
  later).
- Add (untested) support for translating SIOCSIFADDR.
- In all cases where we fail to translate an ioctl, return ENOIOCTL
  so that other handlers have a chance to do the translation.

This should fix the "/dev/vmnet1: Invalid argument" errors that
users of VMware were experiencing, though I have only verified this
on RELENG_4.

Submitted by:	des (mostly)
MFC after:	3 days
2001-11-19 15:43:50 +00:00
..
linprocfs promote tv_sec in printf to make it type agnostic 2001-10-29 02:17:41 +00:00
linux Deal with a few issues that cropped up following the recent changes 2001-11-19 15:43:50 +00:00
netbsd Use queue macros. 2001-01-24 00:01:42 +00:00
pecoff KSE Milestone 2 2001-09-12 08:38:13 +00:00
svr4 Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00