Lines Matching defs:links

211 	struct ng_ppp_link	links[NG_PPP_MAX_LINKS];/* per-link info */
213 int32_t mseq; /* min links[i].seq */
215 uint16_t numActiveLinks; /* how many links up */
504 priv->links[i].seq = MP_NOSEQ;
537 hookPtr = &priv->links[linkNum].hook;
545 if (priv->links[linkNum].conf.enableLink &&
607 priv->links[i].conf = conf->links[i];
622 conf->links[i] = priv->links[i].conf;
636 if (priv->links[i].seq != MP_NOSEQ)
637 info->rseq[i] = priv->links[i].seq;
660 &priv->bundleStats : &priv->links[linkNum].stats;
763 priv->links[~index].hook = NULL;
1331 link = &priv->links[linkNum];
1409 struct ng_ppp_link * const link = &priv->links[linkNum];
1480 * the sequence numbers coming in from different links are far apart from
1487 * link. That means if we define MSEQ as the minimum over all links of
1523 struct ng_ppp_link *const link = &priv->links[linkNum];
1599 &priv->links[priv->activeLinks[i]];
1644 * If new mseq > current then set it and update all active links
1656 &priv->links[priv->activeLinks[i]];
1985 * the frame across the individual PPP links and do so.
2041 /* Strategy when all links are equivalent (optimize the common case) */
2064 /* Strategy when all links are not equivalent */
2073 struct ng_ppp_link *const link = &priv->links[linkNum];
2095 struct ng_ppp_link *const link = &priv->links[linkNum];
2187 * This algorithm is only useful when not all of the links have the
2214 * Assume that l_i includes any a_i already, and that the links are
2219 * Suppose we were to start writing bytes at time t = 0 on all links
2224 * Our goal is simply this: fragment the frame across the links such
2243 * In other words, we start allocating bytes to the links one at a time.
2244 * We keep adding links until the frame is completely sent. Some links
2252 * number of links that receive a non-zero number of bytes.
2257 * To avoid this algorithm altogether, configure all links to have the
2288 alink = &priv->links[priv->activeLinks[activeLinkNum]];
2319 /* Sort active links by latency */
2323 /* Find the interval we need (add links in sortByLatency[] order) */
2331 total += ((flowTime * priv->links[
2341 int bw = priv->links[
2351 int bw = priv->links[
2362 &priv->links[priv->activeLinks[sortByLatency[0]]];
2368 &priv->links[priv->activeLinks[sortByLatency[i]]];
2378 &priv->links[priv->activeLinks[sortByLatency[0]]];
2384 &priv->links[priv->activeLinks[sortByLatency[i]]];
2488 if (priv->links[i].conf.bandwidth == 0)
2492 + (priv->links[i].conf.enableACFComp ? 0 : 2)
2493 + (priv->links[i].conf.enableProtoComp ? 1 : 2)
2495 priv->links[i].latency =
2496 priv->links[i].conf.latency +
2497 (hdrBytes / priv->links[i].conf.bandwidth + 50) / 100;
2501 /* Update list of active links */
2506 struct ng_ppp_link *const link = &priv->links[i];
2512 /* Add link to list of active links */
2514 link0 = &priv->links[priv->activeLinks[0]];
2516 /* Determine if all links are still equal */
2539 struct ng_ppp_link *const link = &priv->links[i];
2572 /* Check per-link config and count how many links would be active */
2574 if (newConf->links[i].enableLink && priv->links[i].hook != NULL)
2576 if (!newConf->links[i].enableLink)
2578 if (newConf->links[i].mru < MP_MIN_LINK_MRU)
2580 if (newConf->links[i].bandwidth == 0)
2582 if (newConf->links[i].bandwidth > NG_PPP_MAX_BANDWIDTH)
2584 if (newConf->links[i].latency > NG_PPP_MAX_LATENCY)