Lines Matching defs:link
64 /* Per-link private data */
67 struct ng_one2many_link_stats stats; /* link stats */
72 node_p node; /* link to node */
209 struct ng_one2many_link *link;
226 link = &priv->many[linkNum];
229 link = &priv->one;
234 if (link->hook != NULL)
237 /* Setup private info for this link */
239 link->hook = hook;
240 bzero(&link->stats, sizeof(link->stats));
242 priv->conf.enabledLinks[linkNum] = 1; /* auto-enable link */
296 /* Normalized many link enabled bits */
322 struct ng_one2many_link *link;
325 /* Get link */
332 link = &priv->one;
335 link = &priv->many[linkNum];
344 sizeof(link->stats), M_NOWAIT);
349 bcopy(&link->stats,
350 resp->data, sizeof(link->stats));
353 bzero(&link->stats, sizeof(link->stats));
362 * One of our downstreams notifies us of link change. If we are
424 /* Get link number */
430 /* Figure out source link */
439 /* Figure out destination link */
521 /* Get link number */
527 /* Nuke the link */
548 * Update internal state after the addition or removal of a "many" link
598 * Notify upstream if we are out of links, or we have at least one link.