From 22bdcdfcee58aa1bd57b6499c6bae32f2a2e2f86 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 26 Sep 2003 16:52:12 +0000 Subject: allocate node table entries with a specific malloc type --- sys/net80211/ieee80211_node.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/net80211') diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index fe0c9b1..e688fde 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -78,6 +78,8 @@ static void ieee80211_setup_node(struct ieee80211com *ic, static void _ieee80211_free_node(struct ieee80211com *, struct ieee80211_node *); +MALLOC_DEFINE(M_80211_NODE, "node", "802.11 node state"); + void ieee80211_node_attach(struct ifnet *ifp) { @@ -393,14 +395,14 @@ ieee80211_end_scan(struct ifnet *ifp) static struct ieee80211_node * ieee80211_node_alloc(struct ieee80211com *ic) { - return malloc(sizeof(struct ieee80211_node), M_DEVBUF, + return malloc(sizeof(struct ieee80211_node), M_80211_NODE, M_NOWAIT | M_ZERO); } static void ieee80211_node_free(struct ieee80211com *ic, struct ieee80211_node *ni) { - free(ni, M_DEVBUF); + free(ni, M_80211_NODE); } static void -- cgit v1.1