summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-02-28 08:27:24 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-02-28 08:27:24 +0000
commit5b23d4ff0c22b915fd5713948674bb8cd9ac34d6 (patch)
treeee6b46b92a88706e6a81dd7d4200889f2aafdaae /sys/compat/linux
parent9c887536f8cfd044f18e84edfd0e304ee709ddb3 (diff)
fron NetBSD: some ioctl support added.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_ioctl.c20
-rw-r--r--sys/compat/linux/linux_sockio.h8
2 files changed, 26 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index c469b6a7034..cd04f9ae31e 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ioctl.c,v 1.8.2.1 1995/11/16 18:45:18 thorpej Exp $ */
+/* $NetBSD: linux_ioctl.c,v 1.12 1996/02/27 08:18:16 mycroft Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -642,6 +642,24 @@ linux_sys_ioctl(p, v, retval)
case LINUX_TIOCNOTTY:
SCARG(&ia, com) = TIOCNOTTY;
break;
+ case LINUX_SIOCGIFCONF:
+ SCARG(&ia, com) = OSIOCGIFCONF;
+ break;
+ case LINUX_SIOCGIFFLAGS:
+ SCARG(&ia, com) = SIOCGIFFLAGS;
+ break;
+ case LINUX_SIOCGIFADDR:
+ SCARG(&ia, com) = OSIOCGIFADDR;
+ break;
+ case LINUX_SIOCGIFDSTADDR:
+ SCARG(&ia, com) = OSIOCGIFDSTADDR;
+ break;
+ case LINUX_SIOCGIFBRDADDR:
+ SCARG(&ia, com) = OSIOCGIFBRDADDR;
+ break;
+ case LINUX_SIOCGIFNETMASK:
+ SCARG(&ia, com) = OSIOCGIFNETMASK;
+ break;
case LINUX_SIOCADDMULTI:
SCARG(&ia, com) = SIOCADDMULTI;
break;
diff --git a/sys/compat/linux/linux_sockio.h b/sys/compat/linux/linux_sockio.h
index 62ae2bc26a4..b6f466b5287 100644
--- a/sys/compat/linux/linux_sockio.h
+++ b/sys/compat/linux/linux_sockio.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sockio.h,v 1.2 1995/06/22 21:34:42 fvdl Exp $ */
+/* $NetBSD: linux_sockio.h,v 1.4 1996/02/27 08:18:17 mycroft Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -34,6 +34,12 @@
#ifndef _LINUX_SOCKIO_H
#define _LINUX_SOCKIO_H
+#define LINUX_SIOCGIFCONF 0x8912
+#define LINUX_SIOCGIFFLAGS 0x8913
+#define LINUX_SIOCGIFADDR 0x8915
+#define LINUX_SIOCGIFDSTADDR 0x8917
+#define LINUX_SIOCGIFBRDADDR 0x8919
+#define LINUX_SIOCGIFNETMASK 0x891b
#define LINUX_SIOCADDMULTI 0x8931
#define LINUX_SIOCDELMULTI 0x8932