ng_bridge.c (87997) | ng_bridge.c (87998) |
---|---|
1 2/* 3 * ng_bridge.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * | 1 2/* 3 * ng_bridge.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_bridge.c 87997 2001-12-15 20:48:53Z archie $ | 39 * $FreeBSD: head/sys/netgraph/ng_bridge.c 87998 2001-12-15 20:53:15Z archie $ |
40 */ 41 42/* 43 * ng_bridge(4) netgraph node type 44 * 45 * The node performs standard intelligent Ethernet bridging over 46 * each of its connected hooks, or links. A simple loop detection 47 * algorithm is included which disables a link for priv->conf.loopTimeout --- 920 unchanged lines hidden (view full) --- 968} 969 970/* 971 * Handle our once-per-second timeout event. We do two things: 972 * we decrement link->loopCount for those links being muted due to 973 * a detected loopback condition, and we remove any hosts from 974 * the hashtable whom we haven't heard from in a long while. 975 * | 40 */ 41 42/* 43 * ng_bridge(4) netgraph node type 44 * 45 * The node performs standard intelligent Ethernet bridging over 46 * each of its connected hooks, or links. A simple loop detection 47 * algorithm is included which disables a link for priv->conf.loopTimeout --- 920 unchanged lines hidden (view full) --- 968} 969 970/* 971 * Handle our once-per-second timeout event. We do two things: 972 * we decrement link->loopCount for those links being muted due to 973 * a detected loopback condition, and we remove any hosts from 974 * the hashtable whom we haven't heard from in a long while. 975 * |
976 * If the node has the NG_INVALID flag set, out job is to kill it. | 976 * If the node has the NG_INVALID flag set, our job is to kill it. |
977 */ 978static void 979ng_bridge_timeout(void *arg) 980{ 981 const node_p node = arg; 982 const priv_p priv = NG_NODE_PRIVATE(node); 983 int s, bucket; 984 int counter = 0; --- 86 unchanged lines hidden --- | 977 */ 978static void 979ng_bridge_timeout(void *arg) 980{ 981 const node_p node = arg; 982 const priv_p priv = NG_NODE_PRIVATE(node); 983 int s, bucket; 984 int counter = 0; --- 86 unchanged lines hidden --- |