diff options
author | pjd <pjd@FreeBSD.org> | 2004-02-19 17:04:23 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-02-19 17:04:23 +0000 |
commit | 112dc996defecd05c1a61f9c1b39f107aa1d2b52 (patch) | |
tree | a9d7592e1ec7b5f671be14d6841bb7518950a828 /sys/netgraph/ng_one2many.h | |
parent | eb34e2938ab63180b53f296f366dcbb753b2b47f (diff) | |
download | FreeBSD-src-112dc996defecd05c1a61f9c1b39f107aa1d2b52.zip FreeBSD-src-112dc996defecd05c1a61f9c1b39f107aa1d2b52.tar.gz |
Add new failure detection algorithm.
It works as follows:
In every 'interval' seconds defined links are checked.
If they are non-active they will not be used by to data transfer.
No response from: julian, archie
Silent on: net@
Approved by: scottl (mentor)
Diffstat (limited to 'sys/netgraph/ng_one2many.h')
-rw-r--r-- | sys/netgraph/ng_one2many.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netgraph/ng_one2many.h b/sys/netgraph/ng_one2many.h index bf79859..3f7ceec 100644 --- a/sys/netgraph/ng_one2many.h +++ b/sys/netgraph/ng_one2many.h @@ -61,13 +61,16 @@ #define NG_ONE2MANY_XMIT_ROUNDROBIN 1 /* round-robin delivery */ #define NG_ONE2MANY_XMIT_ALL 2 /* send packets to all many hooks */ -/* Algorithms for detecting link failure (XXX only one so far) */ +/* Algorithms for detecting link failure */ #define NG_ONE2MANY_FAIL_MANUAL 1 /* use enabledLinks[] array */ +#define NG_ONE2MANY_FAIL_IFACE_LINK 2 /* use interface state */ /* Node configuration structure */ struct ng_one2many_config { u_int32_t xmitAlg; /* how to distribute packets */ u_int32_t failAlg; /* how to detect link failure */ + u_int32_t interval; /* interval for IFACE_LINK + failure algorithm */ u_char enabledLinks[NG_ONE2MANY_MAX_LINKS]; }; @@ -75,6 +78,7 @@ struct ng_one2many_config { #define NG_ONE2MANY_CONFIG_TYPE_INFO(atype) { \ { "xmitAlg", &ng_parse_uint32_type }, \ { "failAlg", &ng_parse_uint32_type }, \ + { "interval", &ng_parse_uint32_type }, \ { "enabledLinks", (atype) }, \ { NULL } \ } |