Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet GC in_interfaces.
details: https://anonhg.NetBSD.org/src/rev/9651efad1e1a
branches: trunk
changeset: 485801:9651efad1e1a
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sat May 06 02:41:32 2000 +0000
description:
GC in_interfaces.
diffstat:
sys/netinet/in.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diffs (37 lines):
diff -r b9af3f35fb31 -r 9651efad1e1a sys/netinet/in.c
--- a/sys/netinet/in.c Sat May 06 00:46:19 2000 +0000
+++ b/sys/netinet/in.c Sat May 06 02:41:32 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in.c,v 1.60 2000/04/03 03:50:05 enami Exp $ */
+/* $NetBSD: in.c,v 1.61 2000/05/06 02:41:32 mycroft Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -296,8 +296,6 @@
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.
@@ -407,9 +405,6 @@
}
ia->ia_ifp = ifp;
LIST_INIT(&ia->ia_multiaddrs);
- if ((ifp->if_flags & IFF_LOOPBACK) == 0)
- in_interfaces++;
-
newifaddr = 1;
} else
newifaddr = 0;
@@ -490,8 +485,6 @@
IFAFREE(&ia->ia_ifa);
TAILQ_REMOVE(&in_ifaddr, ia, ia_list);
IFAFREE(&ia->ia_ifa);
- if ((ifp->if_flags & IFF_LOOPBACK) == 0)
- in_interfaces--;
}
#endif
return error;
Home |
Main Index |
Thread Index |
Old Index