-/* $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 $ */
/*
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));
switch (cmd) {
- case SIOCSIFDSTADDR:
case SIOCSIFADDR:
+ case SIOCSIFDSTADDR:
case SIOCSIFBRDADDR:
case SIOCSIFNETMASK:
#if BYTE_ORDER != BIG_ENDIAN
} 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;