diff options
author | julian <julian@FreeBSD.org> | 2001-01-11 19:27:54 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-01-11 19:27:54 +0000 |
commit | 420cd96845940f5b7d69ecc28843ccc9e95384bd (patch) | |
tree | 88cf5483ae4052b5cdda21e1daed26acf6d1250d /sys/netgraph/ng_pppoe.c | |
parent | c24ab624c0b03d3d3a8012d0d57692f8dec8237d (diff) | |
download | FreeBSD-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.c | 4 |
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 */ |