diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-11-19 15:43:50 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-11-19 15:43:50 +0000 |
commit | a7c89cf1a83e437aca0b87219683aebe33f8146b (patch) | |
tree | ca52f5c1cc767655fbdfdfd1f319579fc5996098 /sys/boot | |
parent | a9c3d65330ced3ef34a2a3a9aa5eac51e1383ec2 (diff) | |
download | FreeBSD-src-a7c89cf1a83e437aca0b87219683aebe33f8146b.zip FreeBSD-src-a7c89cf1a83e437aca0b87219683aebe33f8146b.tar.gz |
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
Diffstat (limited to 'sys/boot')
0 files changed, 0 insertions, 0 deletions