diff options
author | julian <julian@FreeBSD.org> | 2004-07-20 17:15:38 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-07-20 17:15:38 +0000 |
commit | 8c938ed70a0b0d695f2d2c2577503b1b3b9365ec (patch) | |
tree | 1ffde5acbe2efbfe316cb725d560740f7caca117 /sys/netgraph/ng_gif.c | |
parent | 4254b3bd2255d9046d99d1394abc7c3f3ba744b7 (diff) | |
download | FreeBSD-src-8c938ed70a0b0d695f2d2c2577503b1b3b9365ec.zip FreeBSD-src-8c938ed70a0b0d695f2d2c2577503b1b3b9365ec.tar.gz |
Slight cosmetic changes.
Also introduce a macro to be called by persistent nodes to signal their
persistence during shutdown to hide this mechanism from the node author.
Make node flags have a consistent style in naming.
Document the change.
Diffstat (limited to 'sys/netgraph/ng_gif.c')
-rw-r--r-- | sys/netgraph/ng_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c index 9ef3cc9..3ecd852 100644 --- a/sys/netgraph/ng_gif.c +++ b/sys/netgraph/ng_gif.c @@ -492,7 +492,7 @@ ng_gif_shutdown(node_p node) { const priv_p priv = NG_NODE_PRIVATE(node); - if (node->nd_flags & NG_REALLY_DIE) { + if (node->nd_flags & NGF_REALLY_DIE) { /* * WE came here because the gif interface is being destroyed, * so stop being persistant. @@ -504,7 +504,7 @@ ng_gif_shutdown(node_p node) NG_NODE_UNREF(node); /* free node itself */ return (0); } - node->nd_flags &= ~NG_INVALID; /* Signal ng_rmnode we are persisant */ + NG_NODE_REVIVE(node); /* Signal ng_rmnode we are persisant */ return (0); } |