| /dragonfly/usr.sbin/ppp/ |
| HD | cbcp.c | 66 cbcp->fsm.state = CBCP_CLOSED; in cbcp_Init() 67 cbcp->fsm.id = 0; in cbcp_Init() 68 cbcp->fsm.delay = 0; in cbcp_Init() 69 *cbcp->fsm.phone = '\0'; in cbcp_Init() 70 memset(&cbcp->fsm.timer, '\0', sizeof cbcp->fsm.timer); in cbcp_Init() 83 timer_Stop(&cbcp->fsm.timer); in cbcp_Timeout() 84 if (cbcp->fsm.restart) { in cbcp_Timeout() 85 switch (cbcp->fsm.state) { in cbcp_Timeout() 105 switch (cbcp->fsm.state) { in cbcp_Timeout() 134 timer_Stop(&cbcp->fsm.timer); in cbcp_StartTimer() [all …]
|
| HD | fsm.h | 62 struct fsm; 77 int (*LayerUp)(struct fsm *); /* Layer is now up (tlu) */ 78 void (*LayerDown)(struct fsm *); /* About to come down (tld) */ 79 void (*LayerStart)(struct fsm *); /* Layer about to start (tls) */ 80 void (*LayerFinish)(struct fsm *); /* Layer now down (tlf) */ 81 void (*InitRestartCounter)(struct fsm *, int);/* Set fsm timer load */ 82 void (*SendConfigReq)(struct fsm *); /* Send REQ please */ 83 void (*SentTerminateReq)(struct fsm *); /* Term REQ just sent */ 84 void (*SendTerminateAck)(struct fsm *, u_char); /* Send Term ACK please */ 85 void (*DecodeConfig)(struct fsm *, u_char *, u_char *, int, [all …]
|
| HD | ccp.c | 80 static void CcpSendConfigReq(struct fsm *); 81 static void CcpSentTerminateReq(struct fsm *); 82 static void CcpSendTerminateAck(struct fsm *, u_char); 83 static void CcpDecodeConfig(struct fsm *, u_char *, u_char *, int, 85 static void CcpLayerStart(struct fsm *); 86 static void CcpLayerFinish(struct fsm *); 87 static int CcpLayerUp(struct fsm *); 88 static void CcpLayerDown(struct fsm *); 89 static void CcpInitRestartCounter(struct fsm *, int); 90 static int CcpRecvResetReq(struct fsm *); [all …]
|
| HD | ipv6cp.c | 91 static int ipv6cp_LayerUp(struct fsm *); 92 static void ipv6cp_LayerDown(struct fsm *); 93 static void ipv6cp_LayerStart(struct fsm *); 94 static void ipv6cp_LayerFinish(struct fsm *); 95 static void ipv6cp_InitRestartCounter(struct fsm *, int); 96 static void ipv6cp_SendConfigReq(struct fsm *); 97 static void ipv6cp_SentTerminateReq(struct fsm *); 98 static void ipv6cp_SendTerminateAck(struct fsm *, u_char); 99 static void ipv6cp_DecodeConfig(struct fsm *, u_char *, u_char *, int, 198 struct bundle *bundle = ipv6cp->fsm.bundle; in ipcp_SetIPv6address() [all …]
|
| HD | ncp.c | 113 &bundle->fsm); in ncp_Init() 116 &bundle->fsm); in ncp_Init() 148 fsm_Up(&ncp->ipcp.fsm); in ncp_fsmStart() 149 fsm_Open(&ncp->ipcp.fsm); in ncp_fsmStart() 155 fsm_Up(&ncp->ipv6cp.fsm); in ncp_fsmStart() 156 fsm_Open(&ncp->ipv6cp.fsm); in ncp_fsmStart() 330 struct bundle *bundle = l->lcp.fsm.bundle; in ncp_PushPacket() 482 n = !!(ncp->ipcp.fsm.state == ST_OPENED); in ncp_LayersOpen() 484 n += !!(ncp->ipv6cp.fsm.state == ST_OPENED); in ncp_LayersOpen() 495 if (ncp->ipcp.fsm.state > ST_CLOSED || in ncp_LayersUnfinished() [all …]
|
| HD | lcp.c | 90 static int LcpLayerUp(struct fsm *); 91 static void LcpLayerDown(struct fsm *); 92 static void LcpLayerStart(struct fsm *); 93 static void LcpLayerFinish(struct fsm *); 94 static void LcpInitRestartCounter(struct fsm *, int); 95 static void LcpSendConfigReq(struct fsm *); 96 static void LcpSentTerminateReq(struct fsm *); 97 static void LcpSendTerminateAck(struct fsm *, u_char); 98 static void LcpDecodeConfig(struct fsm *, u_char *, u_char *, int, 164 prompt_Printf(arg->prompt, "%s: %s [%s]\n", l->name, lcp->fsm.name, in lcp_ReportStatus() [all …]
|
| HD | fsm.c | 71 static void FsmSendConfigReq(struct fsm *); 72 static void FsmSendTerminateReq(struct fsm *); 73 static void FsmInitRestartCounter(struct fsm *, int); 75 typedef void (recvfn)(struct fsm *, struct fsmheader *, struct mbuf *); 129 struct fsm *fp = (struct fsm *)v; in StoppedTimeout() 142 fsm_Init(struct fsm *fp, const char *name, u_short proto, int mincode, in fsm_Init() 169 NewState(struct fsm *fp, int new) in NewState() 188 fsm_Output(struct fsm *fp, u_int code, u_int id, u_char *ptr, unsigned count, in fsm_Output() 229 struct fsm *fp = (struct fsm *)v; in FsmOpenNow() 255 fsm_Open(struct fsm *fp) in fsm_Open() [all …]
|
| HD | ipcp.c | 110 static int IpcpLayerUp(struct fsm *); 111 static void IpcpLayerDown(struct fsm *); 112 static void IpcpLayerStart(struct fsm *); 113 static void IpcpLayerFinish(struct fsm *); 114 static void IpcpInitRestartCounter(struct fsm *, int); 115 static void IpcpSendConfigReq(struct fsm *); 116 static void IpcpSentTerminateReq(struct fsm *); 117 static void IpcpSendTerminateAck(struct fsm *, u_char); 118 static void IpcpDecodeConfig(struct fsm *, u_char *, u_char *, int, 263 bundle_AdjustDNS(ipcp->fsm.bundle); in ipcp_LoadDNS() [all …]
|
| HD | ccp.h | 82 struct fsm_retry fsm; /* How often/frequently to resend requests */ member 93 struct fsm fsm; /* The finite state machine */ member 128 int (*Usable)(struct fsm *); /* Ok to negotiate ? */ 129 int (*Required)(struct fsm *); /* Must negotiate ? */ 157 extern void ccp_SendResetReq(struct fsm *); 163 extern int ccp_DefaultUsable(struct fsm *); 164 extern int ccp_DefaultRequired(struct fsm *);
|
| HD | datalink.c | 128 log_Printf(LogPHASE, "Call peer back on %s\n", dl->cbcp.fsm.phone); in datalink_HangupDone() 130 strncpy(dl->cfg.phone.list, dl->cbcp.fsm.phone, in datalink_HangupDone() 143 if (dl->cbcp.fsm.delay < dl->cfg.dial.timeout) in datalink_HangupDone() 144 dl->cbcp.fsm.delay = dl->cfg.dial.timeout; in datalink_HangupDone() 145 datalink_StartDialTimer(dl, dl->cbcp.fsm.delay); in datalink_HangupDone() 244 fsm_Up(&dl->physical->link.lcp.fsm); in datalink_LoginDone() 245 fsm_Open(&dl->physical->link.lcp.fsm); in datalink_LoginDone() 559 datalink_LayerStart(void *v, struct fsm *fp) in datalink_LayerStart() 569 datalink_LayerUp(void *v, struct fsm *fp) in datalink_LayerUp() 592 (*dl->parent->LayerUp)(dl->parent->object, &dl->physical->link.ccp.fsm); in datalink_LayerUp() [all …]
|
| HD | lqr.c | 78 struct hdlc *hdlc = &link2physical(lcp->fsm.link)->hdlc; in SendEchoReq() 84 fsm_Output(&lcp->fsm, CODE_ECHOREQ, hdlc->lqm.echo.seq_sent++, in SendEchoReq() 89 lqr_RecvEcho(struct fsm *fp, struct mbuf *bp) in lqr_RecvEcho() 150 link_PushPacket(lcp->fsm.link, bp, lcp->fsm.bundle, in SendLqrData() 151 LINK_QUEUES(lcp->fsm.link) - 1, PROTO_LQR); in SendLqrData() 158 struct physical *p = link2physical(lcp->fsm.link); in SendLqrReport() 166 lcp->fsm.link->name); in SendLqrReport() 168 lcp->fsm.link->name); in SendLqrReport() 181 lcp->fsm.link->name); in SendLqrReport() 183 lcp->fsm.link->name); in SendLqrReport() [all …]
|
| HD | physical.c | 543 if (p->link.lcp.fsm.state <= ST_CLOSED) { in physical_DescriptorRead() 591 p->link.lcp.fsm.bundle = dl->bundle; in iov2physical() 592 p->link.lcp.fsm.link = &p->link; in iov2physical() 593 memset(&p->link.lcp.fsm.FsmTimer, '\0', sizeof p->link.lcp.fsm.FsmTimer); in iov2physical() 594 memset(&p->link.lcp.fsm.OpenTimer, '\0', sizeof p->link.lcp.fsm.OpenTimer); in iov2physical() 595 memset(&p->link.lcp.fsm.StoppedTimer, '\0', in iov2physical() 596 sizeof p->link.lcp.fsm.StoppedTimer); in iov2physical() 597 p->link.lcp.fsm.parent = &dl->fsmp; in iov2physical() 600 p->link.ccp.fsm.bundle = dl->bundle; in iov2physical() 601 p->link.ccp.fsm.link = &p->link; in iov2physical() [all …]
|
| HD | ipv6cp.h | 39 struct fsm fsm; /* The finite state machine */ member 42 struct fsm_retry fsm; /* frequency to resend requests */ member
|
| HD | ipcp.h | 47 struct fsm fsm; /* The finite state machine */ member 70 struct fsm_retry fsm; /* frequency to resend requests */ member
|
| HD | lcp.h | 51 struct fsm fsm; /* The finite state machine */ member 93 struct fsm_retry fsm; /* How often/frequently to resend requests */ member
|
| HD | command.c | 912 if (!arg->cx->physical->link.lcp.fsm.StoppedTimer.load) in ShowStopped() 916 arg->cx->physical->link.lcp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped() 919 if (!arg->cx->physical->link.ccp.fsm.StoppedTimer.load) in ShowStopped() 923 arg->cx->physical->link.ccp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped() 1230 if (arg->cx->physical->link.lcp.fsm.state > ST_CLOSED) { in TerminalCommand() 1232 State2Nam(arg->cx->physical->link.lcp.fsm.state)); in TerminalCommand() 1264 if (cx->physical->link.lcp.fsm.state == ST_OPENED) in OpenCommand() 1265 fsm_Reopen(&cx->physical->link.lcp.fsm); in OpenCommand() 1271 struct fsm *fp; in OpenCommand() 1273 fp = &command_ChooseLink(arg)->ccp.fsm; in OpenCommand() [all …]
|
| HD | lqr.h | 59 struct fsm; 69 extern struct mbuf *lqr_RecvEcho(struct fsm *, struct mbuf *);
|
| HD | auth.c | 367 authp->cfg.fsm.timeout = DEF_FSMRETRY; in auth_Init() 368 authp->cfg.fsm.maxreq = DEF_FSMAUTHTRIES; in auth_Init() 369 authp->cfg.fsm.maxtrm = 0; /* not used */ in auth_Init() 382 authp->authtimer.load = authp->cfg.fsm.timeout * SECTICKS; in auth_StartReq() 384 authp->retry = authp->cfg.fsm.maxreq; in auth_StartReq()
|
| HD | pred.c | 243 fsm_Reopen(&ccp->fsm); in Pred1Input() 252 fsm_Reopen(&ccp->fsm); in Pred1Input() 285 ccp->fsm.link->name, pre); in Pred1Input() 286 fsm_Reopen(&ccp->fsm); in Pred1Input()
|
| HD | mppe.c | 316 fsm_Output(&ccp->fsm, CODE_RESETREQ, ccp->fsm.reqid++, NULL, 0, in MPPEInput() 331 fsm_Output(&ccp->fsm, CODE_RESETREQ, ccp->fsm.reqid++, NULL, 0, in MPPEInput() 431 MPPEUsable(struct fsm *fp) in MPPEUsable() 459 MPPERequired(struct fsm *fp) in MPPERequired()
|
| HD | deflate.c | 228 ccp_SendResetReq(&ccp->fsm); in DeflateInput() 265 ccp_SendResetReq(&ccp->fsm); in DeflateInput() 307 ccp_SendResetReq(&ccp->fsm); in DeflateInput() 390 ccp_SendResetReq(&ccp->fsm); in DeflateDictSetup()
|
| HD | mp.c | 165 mp_LayerStart(void *v __unused, struct fsm *fp __unused) in mp_LayerStart() 171 mp_LayerUp(void *v __unused, struct fsm *fp) in mp_LayerUp() 179 mp_LayerDown(void *v __unused, struct fsm *fp __unused) in mp_LayerDown() 185 mp_LayerFinish(void *v __unused, struct fsm *fp) in mp_LayerFinish() 369 fsm_Up(&mp->link.ccp.fsm); in mp_Up() 370 fsm_Open(&mp->link.ccp.fsm); in mp_Up() 394 fsm2initial(&mp->link.ccp.fsm); in mp_Down() 658 if (l->ccp.fsm.state != ST_OPENED && ccp_Required(&l->ccp)) { in mp_Output()
|
| HD | cbcp.h | 59 } fsm; member
|
| /dragonfly/lib/libnvmm/ |
| HD | libnvmm_x86.c | 1827 node_overflow(struct x86_decode_fsm *fsm, struct x86_instr *instr __unused) in node_overflow() argument 1829 fsm->fn = NULL; in node_overflow() 1834 fsm_read(struct x86_decode_fsm *fsm, uint8_t *bytes, size_t n) in fsm_read() argument 1836 if (fsm->buf + n > fsm->end) { in fsm_read() 1839 memcpy(bytes, fsm->buf, n); in fsm_read() 1844 fsm_advance(struct x86_decode_fsm *fsm, size_t n, in fsm_advance() argument 1847 fsm->buf += n; in fsm_advance() 1848 if (fsm->buf > fsm->end) { in fsm_advance() 1849 fsm->fn = node_overflow; in fsm_advance() 1851 fsm->fn = fn; in fsm_advance() [all …]
|
| /dragonfly/sbin/iscontrol/ |
| HD | Makefile | 3 SRCS= iscontrol.c pdu.c fsm.c config.c login.c auth_subr.c misc.c
|