Lines Matching refs:ncp

85 #include "ncp.h"
151 if (ncp_fsmStart(&bundle->ncp, bundle)) {
162 mp_Down(&bundle->ncp.mp);
221 ncp_DeleteQueues(&bundle->ncp);
256 mp_CheckAutoloadTimer(&bundle->ncp.mp);
287 mp_CheckAutoloadTimer(&bundle->ncp.mp);
289 if (ncp_LayersOpen(&fp->bundle->ncp) == 1) {
297 mp_CheckAutoloadTimer(&fp->bundle->ncp.mp);
321 if (ncp_LayersOpen(&fp->bundle->ncp) == 0) {
328 mp_StopAutoloadTimer(&bundle->ncp.mp);
346 if (bundle->ncp.mp.active) {
350 mp_LinkLost(&bundle->ncp.mp, lost);
358 ncp2initial(&bundle->ncp);
359 mp_Down(&bundle->ncp.mp);
376 if (isncp(fp->proto) && !ncp_LayersUnfinished(&bundle->ncp)) {
383 mp_Down(&bundle->ncp.mp);
430 if (ncp_LayersUnfinished(&bundle->ncp))
431 ncp_Close(&bundle->ncp);
433 ncp2initial(&bundle->ncp);
434 mp_Down(&bundle->ncp.mp);
468 queued = r ? ncp_FillPhysicalQueues(&bundle->ncp, bundle) :
469 ncp_QueueLen(&bundle->ncp);
507 result += descriptor_UpdateSet(&bundle->ncp.mp.server.desc, r, w, e, n);
527 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
541 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
542 descriptor_Read(&bundle->ncp.mp.server.desc, bundle, fdset);
594 bundle->ncp.ipcp.my_ip.s_addr) {
640 ncp_Enqueue(&bundle->ncp, af, pri, (char *)&tun, n + sizeof tun.header);
653 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
654 if (descriptor_Write(&bundle->ncp.mp.server.desc, bundle, fdset) == 1)
866 ncp_Init(&bundle.ncp, &bundle);
895 iface_Clear(bundle.iface, &bundle.ncp, 0, IFACE_CLEAR_ALL);
921 mp_Down(&bundle->ncp.mp);
922 iface_Clear(bundle->iface, &bundle->ncp, 0, IFACE_CLEAR_ALL);
935 ncp_Destroy(&bundle->ncp);
972 ncp2initial(&bundle->ncp);
973 mp_Down(&bundle->ncp.mp);
1045 t = &arg->bundle->ncp.mp.link.stats.total;
1080 (unsigned long)ncp_QueueLen(&arg->bundle->ncp),
1207 if (ncp_LayersOpen(&bundle->ncp))
1301 mp_CheckAutoloadTimer(&bundle->ncp.mp);
1697 if (bundle->ncp.ipcp.peer_ip.s_addr == INADDR_ANY) {
1709 ipcp_InterfaceUp(&bundle->ncp.ipcp);
1874 struct in_addr *dns = bundle->ncp.ipcp.ns.dns;
1903 if (!bundle->ncp.mp.active) {
1913 if (bundle->ncp.mp.active) {
1914 bundle->iface->mtu = bundle->ncp.mp.peer_mrru;
1915 overhead = ccp_MTUOverhead(&bundle->ncp.mp.link.ccp);
1973 mp_CheckAutoloadTimer(&bundle->ncp.mp);
1978 mp_CheckAutoloadTimer(&bundle->ncp.mp);