Lines Matching defs:bundle

88 #include "bundle.h"
176 bundle_CalculateBandwidth(fp->bundle); /* Against ccp_MTUOverhead */
201 mp->bundle->bandwidth;
204 bundle_AutoAdjust(mp->bundle, percent, AUTO_UP);
207 bundle_AutoAdjust(mp->bundle, percent, AUTO_DOWN);
226 if (bundle_WantAutoloadTimer(mp->bundle))
242 mp_Init(struct mp *mp, struct bundle *bundle)
255 mp->bundle = bundle;
286 lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL);
287 ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp);
366 ncp_SetLink(&mp->bundle->ncp, &mp->link);
448 for (dl = mp->bundle->links; dl; dl = dl->next)
581 link_PullPacket(&mp->link, MBUF_CTOP(q), q->m_len, mp->bundle);
614 mp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
618 if (!bundle->ncp.mp.active)
627 mp_Assemble(&bundle->ncp.mp, bp, p);
634 mp_Output(struct mp *mp, struct bundle *bundle, struct link *l,
664 link_PushPacket(l, m, bundle, LINK_QUEUES(l) - 1, PROTO_MP);
668 mp_FillPhysicalQueues(struct bundle *bundle)
670 struct mp *mp = &bundle->ncp.mp;
679 for (fdl = NULL, dl = bundle->links; dl; dl = dl->next) {
693 fdl = bundle->links;
702 dl = bundle->links;
724 * If there's only a single open link in our bundle and we haven't got
747 if (!ncp_PushPacket(&bundle->ncp, &mp->out.af, bestlink))
784 mp_Output(mp, bundle, &dl->physical->link, mo, begin, end);
792 dl = bundle->links;
821 bundle_CalculateBandwidth(arg->bundle);
829 struct mp *mp = &arg->bundle->ncp.mp;
961 struct mp *mp = &arg->bundle->ncp.mp;
964 switch (bundle_Phase(arg->bundle)) {
969 if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) {
987 strcpy(mp->cfg.enddisc.address, arg->bundle->cfg.label);
990 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY)
991 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr);
993 addr = arg->bundle->ncp.ipcp.my_ip;
996 mp->cfg.enddisc.len = sizeof arg->bundle->ncp.ipcp.my_ip.s_addr;
1000 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY)
1001 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr);
1003 addr = arg->bundle->ncp.ipcp.my_ip;
1080 mpserver_Read(struct fdescriptor *d, struct bundle *bundle,
1085 bundle_ReceiveDatalink(bundle, s->fd);
1089 mpserver_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused,
1155 log_Printf(LogPHASE, "mpserver: can't create bundle socket %s (%s)\n",
1166 log_Printf(LogPHASE, "mpserver: can't connect to bundle socket %s (%s)\n",