summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2011-07-02 04:37:04 +0000
committerdlg <dlg@openbsd.org>2011-07-02 04:37:04 +0000
commitda1c5e3624a34e47803205e3518a99c8fda8ec6f (patch)
tree863c795251f6ef9bd217726f5f06f676990bb19f
parentmsi interrupts working on mfi(4) (diff)
downloadwireguard-openbsd-da1c5e3624a34e47803205e3518a99c8fda8ec6f.tar.xz
wireguard-openbsd-da1c5e3624a34e47803205e3518a99c8fda8ec6f.zip
gc in_interfaces. doesnt seem to do anything except get incremented.
ok henning@ deraadt@
-rw-r--r--sys/netinet/in.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 1d795e591b0..17f19a5dbfe 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.65 2011/04/28 09:56:27 claudio Exp $ */
+/* $OpenBSD: in.c,v 1.66 2011/07/02 04:37:04 dlg Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -188,8 +188,6 @@ in_len2mask(mask, len)
p[i] = (0xff00 >> (len % 8)) & 0xff;
}
-int in_interfaces; /* number of external internet interfaces */
-
/*
* Generic internet control operations (ioctl's).
* Ifp is 0 if not an interface-specific ioctl.
@@ -269,8 +267,6 @@ in_control(so, cmd, data, ifp)
}
ia->ia_ifp = ifp;
LIST_INIT(&ia->ia_multiaddrs);
- if ((ifp->if_flags & IFF_LOOPBACK) == 0)
- in_interfaces++;
splx(s);
newifaddr = 1;