aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_bridge.h
diff options
context:
space:
mode:
authorMarko Zec <zec@FreeBSD.org>2010-05-05 22:06:05 +0000
committerMarko Zec <zec@FreeBSD.org>2010-05-05 22:06:05 +0000
commitf8aab721b2d046452ffa9347cb20ab26f62d7b9a (patch)
treea12bc1a8023da35bc5ab9ba5c3811bbb1dcca19d /sys/netgraph/ng_bridge.h
parente4b50334ec633d9ca7dbb970b48c72753a0a9d66 (diff)
downloadsrc-f8aab721b2d046452ffa9347cb20ab26f62d7b9a.tar.gz
src-f8aab721b2d046452ffa9347cb20ab26f62d7b9a.zip
Add an optional "persistent" flag to ng_hub and ng_bridge, which if set,
disables automatic node shutdown when the last hook gets disconnected. Reviewed by: julian
Notes
Notes: svn path=/head/; revision=207680
Diffstat (limited to 'sys/netgraph/ng_bridge.h')
-rw-r--r--sys/netgraph/ng_bridge.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_bridge.h b/sys/netgraph/ng_bridge.h
index 0524a96cb36f..c34d27d9966b 100644
--- a/sys/netgraph/ng_bridge.h
+++ b/sys/netgraph/ng_bridge.h
@@ -149,6 +149,7 @@ enum {
NGM_BRIDGE_CLR_STATS, /* clear link stats */
NGM_BRIDGE_GETCLR_STATS, /* atomically get & clear link stats */
NGM_BRIDGE_GET_TABLE, /* get link table */
+ NGM_BRIDGE_SET_PERSISTENT, /* set persistent mode */
};
#endif /* _NETGRAPH_NG_BRIDGE_H_ */