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
..
2001-10-23 00:42:15 +00:00
2001-11-17 13:44:33 +00:00
2001-11-19 06:42:11 +00:00
2001-11-17 01:09:53 +00:00
2001-10-24 14:12:47 +00:00
2001-11-19 08:06:56 +00:00
2001-11-07 19:55:16 +00:00
2001-11-19 06:41:04 +00:00
2001-08-21 09:16:57 +00:00
2001-11-17 13:48:31 +00:00
2001-09-12 08:38:13 +00:00