Lines Matching refs:bundle
176 bundle_CalculateBandwidth(fp->bundle); /* Against ccp_MTUOverhead */ in mp_LayerUp()
201 mp->bundle->bandwidth; in mp_UpDown()
204 bundle_AutoAdjust(mp->bundle, percent, AUTO_UP); in mp_UpDown()
207 bundle_AutoAdjust(mp->bundle, percent, AUTO_DOWN); in mp_UpDown()
226 if (bundle_WantAutoloadTimer(mp->bundle)) in mp_CheckAutoloadTimer()
242 mp_Init(struct mp *mp, struct bundle *bundle) in mp_Init() argument
255 mp->bundle = bundle; in mp_Init()
286 lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL); in mp_Init()
287 ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp); in mp_Init()
366 ncp_SetLink(&mp->bundle->ncp, &mp->link); in mp_Up()
448 for (dl = mp->bundle->links; dl; dl = dl->next) in mp_Assemble()
581 link_PullPacket(&mp->link, MBUF_CTOP(q), q->m_len, mp->bundle); in mp_Assemble()
614 mp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in mp_Input() argument
618 if (!bundle->ncp.mp.active) in mp_Input()
627 mp_Assemble(&bundle->ncp.mp, bp, p); in mp_Input()
634 mp_Output(struct mp *mp, struct bundle *bundle, struct link *l, in mp_Output() argument
664 link_PushPacket(l, m, bundle, LINK_QUEUES(l) - 1, PROTO_MP); in mp_Output()
668 mp_FillPhysicalQueues(struct bundle *bundle) in mp_FillPhysicalQueues() argument
670 struct mp *mp = &bundle->ncp.mp; in mp_FillPhysicalQueues()
679 for (fdl = NULL, dl = bundle->links; dl; dl = dl->next) { in mp_FillPhysicalQueues()
693 fdl = bundle->links; in mp_FillPhysicalQueues()
702 dl = bundle->links; in mp_FillPhysicalQueues()
747 if (!ncp_PushPacket(&bundle->ncp, &mp->out.af, bestlink)) in mp_FillPhysicalQueues()
784 mp_Output(mp, bundle, &dl->physical->link, mo, begin, end); in mp_FillPhysicalQueues()
792 dl = bundle->links; in mp_FillPhysicalQueues()
821 bundle_CalculateBandwidth(arg->bundle); in mp_SetDatalinkBandwidth()
829 struct mp *mp = &arg->bundle->ncp.mp; in mp_ShowStatus()
961 struct mp *mp = &arg->bundle->ncp.mp; in mp_SetEnddisc()
964 switch (bundle_Phase(arg->bundle)) { in mp_SetEnddisc()
969 if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) { in mp_SetEnddisc()
987 strcpy(mp->cfg.enddisc.address, arg->bundle->cfg.label); in mp_SetEnddisc()
990 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) in mp_SetEnddisc()
991 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr); in mp_SetEnddisc()
993 addr = arg->bundle->ncp.ipcp.my_ip; in mp_SetEnddisc()
996 mp->cfg.enddisc.len = sizeof arg->bundle->ncp.ipcp.my_ip.s_addr; in mp_SetEnddisc()
1000 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) in mp_SetEnddisc()
1001 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr); in mp_SetEnddisc()
1003 addr = arg->bundle->ncp.ipcp.my_ip; in mp_SetEnddisc()
1080 mpserver_Read(struct fdescriptor *d, struct bundle *bundle, in mpserver_Read() argument
1085 bundle_ReceiveDatalink(bundle, s->fd); in mpserver_Read()
1089 mpserver_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, in mpserver_Write()