Lines Matching refs:fsm
49 #include "fsm.h"
129 log_Printf(LogPHASE, "Call peer back on %s\n", dl->cbcp.fsm.phone);
131 strncpy(dl->cfg.phone.list, dl->cbcp.fsm.phone,
143 /* if dial.timeout is < 0 (random), we don't override fsm.delay */
144 if (dl->cbcp.fsm.delay < dl->cfg.dial.timeout)
145 dl->cbcp.fsm.delay = dl->cfg.dial.timeout;
146 datalink_StartDialTimer(dl, dl->cbcp.fsm.delay);
245 fsm_Up(&dl->physical->link.lcp.fsm);
246 fsm_Open(&dl->physical->link.lcp.fsm);
560 datalink_LayerStart(void *v, struct fsm *fp)
570 datalink_LayerUp(void *v, struct fsm *fp)
572 /* The given fsm is now up */
593 (*dl->parent->LayerUp)(dl->parent->object, &dl->physical->link.ccp.fsm);
629 dl->physical->link.ccp.fsm.open_mode = OPEN_PASSIVE; /* override */
640 (*dl->parent->LayerUp)(dl->parent->object, &dl->physical->link.lcp.fsm);
649 fsm_Up(&dl->physical->link.ccp.fsm);
650 fsm_Open(&dl->physical->link.ccp.fsm);
654 (*dl->parent->LayerUp)(dl->parent->object, &dl->physical->link.lcp.fsm);
662 fsm_Close(&dl->physical->link.lcp.fsm);
689 fsm_Close(&dl->physical->link.lcp.fsm);
697 auth_SetPhoneList(dl->peer.authname, dl->cbcp.fsm.phone,
698 sizeof dl->cbcp.fsm.phone);
699 if (*dl->cbcp.fsm.phone == '\0' || !strcmp(dl->cbcp.fsm.phone, "*")) {
702 *dl->cbcp.fsm.phone = '\0';
704 char *ptr = strchr(dl->cbcp.fsm.phone, ',');
708 dl->cbcp.fsm.phone);
711 dl->cbcp.fsm.delay = 0;
714 fsm_Close(&dl->physical->link.lcp.fsm);
718 strncpy(dl->cbcp.fsm.phone, dl->physical->link.lcp.his_callback.msg,
719 sizeof dl->cbcp.fsm.phone - 1);
720 dl->cbcp.fsm.phone[sizeof dl->cbcp.fsm.phone - 1] = '\0';
722 dl->cbcp.fsm.phone);
724 dl->cbcp.fsm.delay = 0;
727 fsm_Close(&dl->physical->link.lcp.fsm);
735 fsm_Close(&dl->physical->link.lcp.fsm);
745 fsm_Close(&dl->physical->link.lcp.fsm);
749 datalink_LayerDown(void *v, struct fsm *fp)
758 fsm2initial(&dl->physical->link.ccp.fsm);
778 datalink_LayerFinish(void *v, struct fsm *fp)
780 /* The given fsm is now down */
845 dl->parent = &bundle->fsm;
1009 fsm2initial(&dl->physical->link.ccp.fsm);
1020 fsm_Close(&dl->physical->link.lcp.fsm);
1035 fsm2initial(&dl->physical->link.ccp.fsm);
1041 fsm2initial(&dl->physical->link.lcp.fsm);
1351 dl->parent = &bundle->fsm;
1365 copy = dl->pap.cfg.fsm;
1367 dl->pap.cfg.fsm = copy;
1369 copy = dl->chap.auth.cfg.fsm;
1371 dl->chap.auth.cfg.fsm = copy;