Lines Matching full:links

211 	struct ng_ppp_link	links[NG_PPP_MAX_LINKS];/* per-link info */  member
213 int32_t mseq; /* min links[i].seq */
215 uint16_t numActiveLinks; /* how many links up */
504 priv->links[i].seq = MP_NOSEQ; in ng_ppp_constructor()
537 hookPtr = &priv->links[linkNum].hook; in ng_ppp_newhook()
545 if (priv->links[linkNum].conf.enableLink && in ng_ppp_newhook()
607 priv->links[i].conf = conf->links[i]; in ng_ppp_rcvmsg()
622 conf->links[i] = priv->links[i].conf; in ng_ppp_rcvmsg()
636 if (priv->links[i].seq != MP_NOSEQ) in ng_ppp_rcvmsg()
637 info->rseq[i] = priv->links[i].seq; in ng_ppp_rcvmsg()
660 &priv->bundleStats : &priv->links[linkNum].stats; in ng_ppp_rcvmsg()
763 priv->links[~index].hook = NULL; in ng_ppp_disconnect()
1331 link = &priv->links[linkNum]; in ng_ppp_link_xmit()
1409 struct ng_ppp_link * const link = &priv->links[linkNum]; in ng_ppp_rcvdata()
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]; in ng_ppp_mp_recv()
1599 &priv->links[priv->activeLinks[i]]; in ng_ppp_mp_recv()
1644 * If new mseq > current then set it and update all active links
1656 &priv->links[priv->activeLinks[i]]; in ng_ppp_bump_mseq()
1982 * the frame across the individual PPP links and do so.
2038 /* Strategy when all links are equivalent (optimize the common case) */ in ng_ppp_mp_xmit()
2061 /* Strategy when all links are not equivalent */ in ng_ppp_mp_xmit()
2070 struct ng_ppp_link *const link = &priv->links[linkNum]; in ng_ppp_mp_xmit()
2092 struct ng_ppp_link *const link = &priv->links[linkNum]; in ng_ppp_mp_xmit()
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]]; in ng_ppp_mp_strategy()
2316 /* Sort active links by latency */ in ng_ppp_mp_strategy()
2320 /* Find the interval we need (add links in sortByLatency[] order) */ in ng_ppp_mp_strategy()
2328 total += ((flowTime * priv->links[ in ng_ppp_mp_strategy()
2338 int bw = priv->links[ in ng_ppp_mp_strategy()
2348 int bw = priv->links[ in ng_ppp_mp_strategy()
2359 &priv->links[priv->activeLinks[sortByLatency[0]]]; in ng_ppp_mp_strategy()
2365 &priv->links[priv->activeLinks[sortByLatency[i]]]; in ng_ppp_mp_strategy()
2375 &priv->links[priv->activeLinks[sortByLatency[0]]]; in ng_ppp_mp_strategy()
2381 &priv->links[priv->activeLinks[sortByLatency[i]]]; in ng_ppp_mp_strategy()
2485 if (priv->links[i].conf.bandwidth == 0) in ng_ppp_update()
2489 + (priv->links[i].conf.enableACFComp ? 0 : 2) in ng_ppp_update()
2490 + (priv->links[i].conf.enableProtoComp ? 1 : 2) in ng_ppp_update()
2492 priv->links[i].latency = in ng_ppp_update()
2493 priv->links[i].conf.latency + in ng_ppp_update()
2494 (hdrBytes / priv->links[i].conf.bandwidth + 50) / 100; in ng_ppp_update()
2498 /* Update list of active links */ in ng_ppp_update()
2503 struct ng_ppp_link *const link = &priv->links[i]; in ng_ppp_update()
2509 /* Add link to list of active links */ in ng_ppp_update()
2511 link0 = &priv->links[priv->activeLinks[0]]; in ng_ppp_update()
2513 /* Determine if all links are still equal */ in ng_ppp_update()
2536 struct ng_ppp_link *const link = &priv->links[i]; in ng_ppp_update()
2569 /* Check per-link config and count how many links would be active */ in ng_ppp_config_valid()
2571 if (newConf->links[i].enableLink && priv->links[i].hook != NULL) in ng_ppp_config_valid()
2573 if (!newConf->links[i].enableLink) in ng_ppp_config_valid()
2575 if (newConf->links[i].mru < MP_MIN_LINK_MRU) in ng_ppp_config_valid()
2577 if (newConf->links[i].bandwidth == 0) in ng_ppp_config_valid()
2579 if (newConf->links[i].bandwidth > NG_PPP_MAX_BANDWIDTH) in ng_ppp_config_valid()
2581 if (newConf->links[i].latency > NG_PPP_MAX_LATENCY) in ng_ppp_config_valid()