diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-04 22:53:54 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-04 22:53:54 +0000 |
commit | 58db9026612e598768f5e9b089a1676f5f270bb2 (patch) | |
tree | 6129de5d38d2db3f49672917c91e9482036634f0 /sys/net | |
parent | 62cc8f8771932fdd7cfb2a979c68024716b24fba (diff) |
remove compat_svr4 support. ok deraadt
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 635371dca9d..07b3500611b 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.234 2011/03/13 15:31:41 stsp Exp $ */ +/* $OpenBSD: if.c,v 1.235 2011/07/04 22:53:53 tedu Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1619,7 +1619,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) default: if (so->so_proto == 0) return (EOPNOTSUPP); -#if !defined(COMPAT_43) && !defined(COMPAT_LINUX) && !defined(COMPAT_SVR4) +#if !defined(COMPAT_43) && !defined(COMPAT_LINUX) error = ((*so->so_proto->pr_usrreq)(so, PRU_CONTROL, (struct mbuf *) cmd, (struct mbuf *) data, (struct mbuf *) ifp, p)); @@ -1718,7 +1718,7 @@ ifconf(u_long cmd, caddr_t data) TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) { sa = ifa->ifa_addr; -#if defined(COMPAT_43) || defined(COMPAT_LINUX) || defined(COMPAT_SVR4) +#if defined(COMPAT_43) || defined(COMPAT_LINUX) if (cmd != OSIOCGIFCONF) #endif if (sa->sa_len > sizeof(*sa)) @@ -1748,7 +1748,7 @@ ifconf(u_long cmd, caddr_t data) ifa != TAILQ_END(&ifp->if_addrlist); ifa = TAILQ_NEXT(ifa, ifa_list)) { struct sockaddr *sa = ifa->ifa_addr; -#if defined(COMPAT_43) || defined(COMPAT_LINUX) || defined(COMPAT_SVR4) +#if defined(COMPAT_43) || defined(COMPAT_LINUX) if (cmd == OSIOCGIFCONF) { struct osockaddr *osa = (struct osockaddr *)&ifr.ifr_addr; |