summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_one2many.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2004-11-23 09:45:47 +0000
committerglebius <glebius@FreeBSD.org>2004-11-23 09:45:47 +0000
commitd1939766d16ca2a349dd3edf7ab84b0b59add457 (patch)
tree3f25f594455b094691f35a03db9acc300c8f0d13 /sys/netgraph/ng_one2many.h
parentb437de8061981c7de5aff7cc8e490d45a117a7ce (diff)
downloadFreeBSD-src-d1939766d16ca2a349dd3edf7ab84b0b59add457.zip
FreeBSD-src-d1939766d16ca2a349dd3edf7ab84b0b59add457.tar.gz
Introduce new failure detection algorithm, called NG_ONE2MANY_FAIL_NOTIFY.
It means, that node listens to flow control messages from downstreams and removes link from list of active links whenever a LINK_IS_DOWN message is received. If LINK_IS_UP message is received, then links is put back into list of active links. Approved by: julian (mentor), implicitly MFC after: 1 week
Diffstat (limited to 'sys/netgraph/ng_one2many.h')
-rw-r--r--sys/netgraph/ng_one2many.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_one2many.h b/sys/netgraph/ng_one2many.h
index bf79859..f9c4919 100644
--- a/sys/netgraph/ng_one2many.h
+++ b/sys/netgraph/ng_one2many.h
@@ -44,7 +44,7 @@
/* Node type name and magic cookie */
#define NG_ONE2MANY_NODE_TYPE "one2many"
-#define NGM_ONE2MANY_COOKIE 971111383
+#define NGM_ONE2MANY_COOKIE 1100897444
/* Hook names */
#define NG_ONE2MANY_HOOK_ONE "one"
@@ -63,6 +63,7 @@
/* Algorithms for detecting link failure (XXX only one so far) */
#define NG_ONE2MANY_FAIL_MANUAL 1 /* use enabledLinks[] array */
+#define NG_ONE2MANY_FAIL_NOTIFY 2 /* listen to flow control msgs */
/* Node configuration structure */
struct ng_one2many_config {
OpenPOWER on IntegriCloud