summaryrefslogtreecommitdiffstats
path: root/sys/net/hostcache.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
committerphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
commit36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5 (patch)
treee21c1d8330cbd5fba838afec549f8e4f0f66e451 /sys/net/hostcache.c
parent8ae70d2227594ff4a283453ca3cc3031eb78c14b (diff)
downloadFreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.zip
FreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.tar.gz
Last major round (Unless Bruce thinks of somthing :-) of malloc changes.
Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
Diffstat (limited to 'sys/net/hostcache.c')
-rw-r--r--sys/net/hostcache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/hostcache.c b/sys/net/hostcache.c
index 761aa1f..78f4408 100644
--- a/sys/net/hostcache.c
+++ b/sys/net/hostcache.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: hostcache.c,v 1.1 1997/06/18 01:24:21 wollman Exp $
*/
#include <sys/param.h>
@@ -38,6 +38,8 @@
#include <net/hostcache.h>
#include <net/route.h>
+MALLOC_DEFINE(M_HOSTCACHE, "hostcache", "per-host cache structure");
+
static struct hctable hctable[AF_MAX];
static int hc_timeout_interval = 120;
static int hc_maxidle = 1800;
OpenPOWER on IntegriCloud