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/compat/linux/linux_ioctl.h | |
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/compat/linux/linux_ioctl.h')
-rw-r--r-- | sys/compat/linux/linux_ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index 59ffed7..0d77e0d 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -166,6 +166,7 @@ #define LINUX_SIOCGIFCONF 0x8912 #define LINUX_SIOCGIFFLAGS 0x8913 #define LINUX_SIOCGIFADDR 0x8915 +#define LINUX_SIOCSIFADDR 0x8916 #define LINUX_SIOCGIFDSTADDR 0x8917 #define LINUX_SIOCGIFBRDADDR 0x8919 #define LINUX_SIOCGIFNETMASK 0x891b |