Lines Matching full:ncp

83 #include "ncp.h"
149 if (ncp_fsmStart(&bundle->ncp, bundle)) { in bundle_NewPhase()
160 mp_Down(&bundle->ncp.mp); in bundle_NewPhase()
219 ncp_DeleteQueues(&bundle->ncp); in bundle_ClearQueues()
254 mp_CheckAutoloadTimer(&bundle->ncp.mp); in bundle_LinksRemoved()
273 * If it's the first NCP, calculate our bandwidth in bundle_LayerUp()
274 * If it's the first NCP, set our ``upat'' time in bundle_LayerUp()
275 * If it's the first NCP, start the idle timer. in bundle_LayerUp()
276 * If it's an NCP, tell our -background parent to go away. in bundle_LayerUp()
277 * If it's the first NCP, start the autoload timer in bundle_LayerUp()
285 mp_CheckAutoloadTimer(&bundle->ncp.mp); in bundle_LayerUp()
287 if (ncp_LayersOpen(&fp->bundle->ncp) == 1) { in bundle_LayerUp()
295 mp_CheckAutoloadTimer(&fp->bundle->ncp.mp); in bundle_LayerUp()
307 * If it's our last NCP, stop the idle timer. in bundle_LayerDown()
308 * If it's our last NCP, clear our ``upat'' value. in bundle_LayerDown()
309 * If it's our last NCP, stop the autoload timer in bundle_LayerDown()
319 if (ncp_LayersOpen(&fp->bundle->ncp) == 0) { in bundle_LayerDown()
326 mp_StopAutoloadTimer(&bundle->ncp.mp); in bundle_LayerDown()
344 if (bundle->ncp.mp.active) { in bundle_LayerDown()
348 mp_LinkLost(&bundle->ncp.mp, lost); in bundle_LayerDown()
356 ncp2initial(&bundle->ncp); in bundle_LayerDown()
357 mp_Down(&bundle->ncp.mp); in bundle_LayerDown()
367 * If it's the last NCP, fsm_Close all LCPs in bundle_LayerFinish()
368 * If it's the last NCP, bring any MP layer down in bundle_LayerFinish()
374 if (isncp(fp->proto) && !ncp_LayersUnfinished(&bundle->ncp)) { in bundle_LayerFinish()
381 mp_Down(&bundle->ncp.mp); in bundle_LayerFinish()
428 if (ncp_LayersUnfinished(&bundle->ncp)) in bundle_Close()
429 ncp_Close(&bundle->ncp); in bundle_Close()
431 ncp2initial(&bundle->ncp); in bundle_Close()
432 mp_Down(&bundle->ncp.mp); in bundle_Close()
466 queued = r ? ncp_FillPhysicalQueues(&bundle->ncp, bundle) : in bundle_UpdateSet()
467 ncp_QueueLen(&bundle->ncp); in bundle_UpdateSet()
505 result += descriptor_UpdateSet(&bundle->ncp.mp.server.desc, r, w, e, n); in bundle_UpdateSet()
525 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) in bundle_IsSet()
539 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) in bundle_DescriptorRead()
540 descriptor_Read(&bundle->ncp.mp.server.desc, bundle, fdset); in bundle_DescriptorRead()
592 bundle->ncp.ipcp.my_ip.s_addr) { in bundle_DescriptorRead()
609 * device until the appropriate NCP is opened. in bundle_DescriptorRead()
638 ncp_Enqueue(&bundle->ncp, af, pri, (char *)&tun, n + sizeof tun.header); in bundle_DescriptorRead()
651 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) in bundle_DescriptorWrite()
652 if (descriptor_Write(&bundle->ncp.mp.server.desc, bundle, fdset) == 1) in bundle_DescriptorWrite()
861 ncp_Init(&bundle.ncp, &bundle); in bundle_Create()
890 iface_Clear(bundle.iface, &bundle.ncp, 0, IFACE_CLEAR_ALL); in bundle_Create()
916 mp_Down(&bundle->ncp.mp); in bundle_Destroy()
917 iface_Clear(bundle->iface, &bundle->ncp, 0, IFACE_CLEAR_ALL); in bundle_Destroy()
930 ncp_Destroy(&bundle->ncp); in bundle_Destroy()
967 ncp2initial(&bundle->ncp); in bundle_LinkClosed()
968 mp_Down(&bundle->ncp.mp); in bundle_LinkClosed()
1040 t = &arg->bundle->ncp.mp.link.stats.total; in bundle_ShowLinks()
1075 (unsigned long)ncp_QueueLen(&arg->bundle->ncp), in bundle_ShowStatus()
1202 if (ncp_LayersOpen(&bundle->ncp)) in bundle_SetIdleTimer()
1296 mp_CheckAutoloadTimer(&bundle->ncp.mp); in bundle_DatalinkLinkin()
1692 if (bundle->ncp.ipcp.peer_ip.s_addr == INADDR_ANY) { in bundle_SetMode()
1704 ipcp_InterfaceUp(&bundle->ncp.ipcp); in bundle_SetMode()
1869 struct in_addr *dns = bundle->ncp.ipcp.ns.dns; in bundle_AdjustDNS()
1898 if (!bundle->ncp.mp.active) { in bundle_CalculateBandwidth()
1908 if (bundle->ncp.mp.active) { in bundle_CalculateBandwidth()
1909 bundle->iface->mtu = bundle->ncp.mp.peer_mrru; in bundle_CalculateBandwidth()
1910 overhead = ccp_MTUOverhead(&bundle->ncp.mp.link.ccp); in bundle_CalculateBandwidth()
1968 mp_CheckAutoloadTimer(&bundle->ncp.mp); in bundle_AutoAdjust()
1973 mp_CheckAutoloadTimer(&bundle->ncp.mp); in bundle_AutoAdjust()