summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-10 16:39:40 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-10 16:39:40 +0000
commitecb062743cab98559c151841da5801e6afd4e232 (patch)
treec76adfef3783b6111fe550255850a8566d18400a /sys/netinet6/in6.c
parent300867c65ec34b4ae4f4fbe30bb5692e5d51e0d9 (diff)
Kill in6_ifstat_inc() and associated per-ifp storage.
The SIOCGIFSTAT_IN6 is no longer supported. ok mikeb@, claudio@, dlg@
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 60cb6ee77c6..e4f3e66df0f 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.173 2015/09/10 14:02:35 bluhm Exp $ */
+/* $OpenBSD: in6.c,v 1.174 2015/09/10 16:39:39 mpi Exp $ */
/* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */
/*
@@ -388,14 +388,6 @@ in6_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp)
break;
case SIOCGIFSTAT_IN6:
- if (ifp == NULL)
- return EINVAL;
- bzero(&ifr->ifr_ifru.ifru_stat,
- sizeof(ifr->ifr_ifru.ifru_stat));
- ifr->ifr_ifru.ifru_stat =
- *((struct in6_ifextra *)ifp->if_afdata[AF_INET6])->in6_ifstat;
- break;
-
case SIOCGIFSTAT_ICMP6:
return (EOPNOTSUPP);
@@ -1998,9 +1990,6 @@ in6_domifattach(struct ifnet *ifp)
ext = malloc(sizeof(*ext), M_IFADDR, M_WAITOK | M_ZERO);
- ext->in6_ifstat = malloc(sizeof(*ext->in6_ifstat), M_IFADDR,
- M_WAITOK | M_ZERO);
-
ext->nd_ifinfo = nd6_ifattach(ifp);
ext->nprefixes = 0;
ext->ndefrouters = 0;
@@ -2013,6 +2002,5 @@ in6_domifdetach(struct ifnet *ifp, void *aux)
struct in6_ifextra *ext = (struct in6_ifextra *)aux;
nd6_ifdetach(ext->nd_ifinfo);
- free(ext->in6_ifstat, M_IFADDR, 0);
free(ext, M_IFADDR, 0);
}