summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-01-11 19:27:54 +0000
committerjulian <julian@FreeBSD.org>2001-01-11 19:27:54 +0000
commit420cd96845940f5b7d69ecc28843ccc9e95384bd (patch)
tree88cf5483ae4052b5cdda21e1daed26acf6d1250d /sys/netgraph/ng_pppoe.c
parentc24ab624c0b03d3d3a8012d0d57692f8dec8237d (diff)
downloadFreeBSD-src-420cd96845940f5b7d69ecc28843ccc9e95384bd.zip
FreeBSD-src-420cd96845940f5b7d69ecc28843ccc9e95384bd.tar.gz
Add an exported function ng_rmhook_self() that removes a hook
from a node, but does it via the locking queue, thus ensuring that the node is locked when it's hook is removed. Add 'deadnode' and 'deadhook' structures for when a node or hook is invalidated but not yet freed. (not yet freed)
Diffstat (limited to 'sys/netgraph/ng_pppoe.c')
-rw-r--r--sys/netgraph/ng_pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 77e9668..8e44423 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -1167,7 +1167,7 @@ AAA
/* send message to creator */
/* close hook */
if (sendhook) {
- ng_destroy_hook(sendhook);
+ ng_rmhook_self(sendhook);
}
break;
default:
@@ -1511,7 +1511,7 @@ AAA
case PPPOE_PRIMED:
case PPPOE_SOFFER:
/* a timeout on these says "give up" */
- ng_destroy_hook(hook);
+ ng_rmhook_self(hook);
break;
default:
/* timeouts have no meaning in other states */
OpenPOWER on IntegriCloud