From 902a7f6cb41a6f6cab491fd2908b5e27ab5e19eb Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 9 May 1996 11:10:28 +0000 Subject: [PATCH] linux & svr4 support --- sys/net/if.c | 8 ++++---- 1 file 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; -- 2.20.1