summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-09 11:10:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-09 11:10:29 +0000
commit0d265d6aaf89220c15debd0a1f2441a40592ccfb (patch)
treee82b64c41cfa8ccda407f578635eb07c2094bf2b
parent882a495192e796f87032714b59a8d8e9ff8982f7 (diff)
linux & svr4 support
-rw-r--r--sys/net/if.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index a542a55c938..426939ffdb7 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.7 1996/04/21 22:28:29 deraadt Exp $ */
+/* $OpenBSD: if.c,v 1.8 1996/05/09 11:10:28 deraadt Exp $ */
/* $NetBSD: if.c,v 1.24 1996/02/13 22:00:09 christos Exp $ */
/*
@@ -510,7 +510,7 @@ ifioctl(so, cmd, data, p)
default:
if (so->so_proto == 0)
return (EOPNOTSUPP);
-#ifndef COMPAT_43
+#if !defined(COMPAT_43) && !defined(COMPAT_LINUX) && !defined(COMPAT_SVR4)
return ((*so->so_proto->pr_usrreq)(so, PRU_CONTROL,
(struct mbuf *) cmd, (struct mbuf *) data,
(struct mbuf *) ifp));
@@ -520,8 +520,8 @@ ifioctl(so, cmd, data, p)
switch (cmd) {
- case SIOCSIFDSTADDR:
case SIOCSIFADDR:
+ case SIOCSIFDSTADDR:
case SIOCSIFBRDADDR:
case SIOCSIFNETMASK:
#if BYTE_ORDER != BIG_ENDIAN
@@ -623,7 +623,7 @@ ifconf(cmd, data)
} else
for (; space > sizeof (ifr) && ifa != 0; ifa = ifa->ifa_list.tqe_next) {
register struct sockaddr *sa = ifa->ifa_addr;
-#ifdef COMPAT_43
+#if defined(COMPAT_43) || defined(COMPAT_LINUX) || defined(COMPAT_SVR4)
if (cmd == OSIOCGIFCONF) {
struct osockaddr *osa =
(struct osockaddr *)&ifr.ifr_addr;