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 */
503 priv->links[i].seq = MP_NOSEQ;
536 hookPtr = &priv->links[linkNum].hook;
544 if (priv->links[linkNum].conf.enableLink &&
606 priv->links[i].conf = conf->links[i];
621 conf->links[i] = priv->links[i].conf;
635 if (priv->links[i].seq != MP_NOSEQ)
636 info->rseq[i] = priv->links[i].seq;
659 &priv->bundleStats : &priv->links[linkNum].stats;
762 priv->links[~index].hook = NULL;
1317 link = &priv->links[linkNum];
1395 struct ng_ppp_link * const link = &priv->links[linkNum];
1466 * the sequence numbers coming in from different links are far apart from
1473 * link. That means if we define MSEQ as the minimum over all links of
1509 struct ng_ppp_link *const link = &priv->links[linkNum];
1585 &priv->links[priv->activeLinks[i]];
1630 * If new mseq > current then set it and update all active links
1642 &priv->links[priv->activeLinks[i]];
1971 * the frame across the individual PPP links and do so.
2027 /* Strategy when all links are equivalent (optimize the common case) */
2050 /* Strategy when all links are not equivalent */
2059 struct ng_ppp_link *const link = &priv->links[linkNum];
2081 struct ng_ppp_link *const link = &priv->links[linkNum];
2173 * This algorithm is only useful when not all of the links have the
2200 * Assume that l_i includes any a_i already, and that the links are
2205 * Suppose we were to start writing bytes at time t = 0 on all links
2210 * Our goal is simply this: fragment the frame across the links such
2229 * In other words, we start allocating bytes to the links one at a time.
2230 * We keep adding links until the frame is completely sent. Some links
2238 * number of links that receive a non-zero number of bytes.
2243 * To avoid this algorithm altogether, configure all links to have the
2274 alink = &priv->links[priv->activeLinks[activeLinkNum]];
2305 /* Sort active links by latency */
2309 /* Find the interval we need (add links in sortByLatency[] order) */
2317 total += ((flowTime * priv->links[
2327 int bw = priv->links[
2337 int bw = priv->links[
2348 &priv->links[priv->activeLinks[sortByLatency[0]]];
2354 &priv->links[priv->activeLinks[sortByLatency[i]]];
2364 &priv->links[priv->activeLinks[sortByLatency[0]]];
2370 &priv->links[priv->activeLinks[sortByLatency[i]]];
2475 if (priv->links[i].conf.bandwidth == 0)
2479 + (priv->links[i].conf.enableACFComp ? 0 : 2)
2480 + (priv->links[i].conf.enableProtoComp ? 1 : 2)
2482 priv->links[i].latency =
2483 priv->links[i].conf.latency +
2484 (hdrBytes / priv->links[i].conf.bandwidth + 50) / 100;
2488 /* Update list of active links */
2493 struct ng_ppp_link *const link = &priv->links[i];
2499 /* Add link to list of active links */
2501 link0 = &priv->links[priv->activeLinks[0]];
2503 /* Determine if all links are still equal */
2526 struct ng_ppp_link *const link = &priv->links[i];
2545 /* Check per-link config and count how many links would be active */
2547 if (newConf->links[i].enableLink && priv->links[i].hook != NULL)
2549 if (!newConf->links[i].enableLink)
2551 if (newConf->links[i].mru < MP_MIN_LINK_MRU)
2553 if (newConf->links[i].bandwidth == 0)
2555 if (newConf->links[i].bandwidth > NG_PPP_MAX_BANDWIDTH)
2557 if (newConf->links[i].latency > NG_PPP_MAX_LATENCY)