Lines Matching refs: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]];
1982 * the frame across the individual PPP links and do so.
2038 /* Strategy when all links are equivalent (optimize the common case) */
2061 /* Strategy when all links are not equivalent */
2070 struct ng_ppp_link *const link = &priv->links[linkNum];
2092 struct ng_ppp_link *const link = &priv->links[linkNum];
2184 * This algorithm is only useful when not all of the links have the
2211 * Assume that l_i includes any a_i already, and that the links are
2216 * Suppose we were to start writing bytes at time t = 0 on all links
2221 * Our goal is simply this: fragment the frame across the links such
2240 * In other words, we start allocating bytes to the links one at a time.
2241 * We keep adding links until the frame is completely sent. Some links
2249 * number of links that receive a non-zero number of bytes.
2254 * To avoid this algorithm altogether, configure all links to have the
2285 alink = &priv->links[priv->activeLinks[activeLinkNum]];
2316 /* Sort active links by latency */
2320 /* Find the interval we need (add links in sortByLatency[] order) */
2328 total += ((flowTime * priv->links[
2338 int bw = priv->links[
2348 int bw = priv->links[
2359 &priv->links[priv->activeLinks[sortByLatency[0]]];
2365 &priv->links[priv->activeLinks[sortByLatency[i]]];
2375 &priv->links[priv->activeLinks[sortByLatency[0]]];
2381 &priv->links[priv->activeLinks[sortByLatency[i]]];
2485 if (priv->links[i].conf.bandwidth == 0)
2489 + (priv->links[i].conf.enableACFComp ? 0 : 2)
2490 + (priv->links[i].conf.enableProtoComp ? 1 : 2)
2492 priv->links[i].latency =
2493 priv->links[i].conf.latency +
2494 (hdrBytes / priv->links[i].conf.bandwidth + 50) / 100;
2498 /* Update list of active links */
2503 struct ng_ppp_link *const link = &priv->links[i];
2509 /* Add link to list of active links */
2511 link0 = &priv->links[priv->activeLinks[0]];
2513 /* Determine if all links are still equal */
2536 struct ng_ppp_link *const link = &priv->links[i];
2569 /* Check per-link config and count how many links would be active */
2571 if (newConf->links[i].enableLink && priv->links[i].hook != NULL)
2573 if (!newConf->links[i].enableLink)
2575 if (newConf->links[i].mru < MP_MIN_LINK_MRU)
2577 if (newConf->links[i].bandwidth == 0)
2579 if (newConf->links[i].bandwidth > NG_PPP_MAX_BANDWIDTH)
2581 if (newConf->links[i].latency > NG_PPP_MAX_LATENCY)