Searched refs:fsm (Results 1 - 24 of 24) sorted by relevance

/openbsd-current/usr.sbin/pppd/
H A Dfsm.h1 /* $OpenBSD: fsm.h,v 1.5 2002/07/01 19:31:37 deraadt Exp $ */
4 * fsm.h - {Link, IP} Control Protocol Finite State Machine definitions.
64 * Each FSM is described by an fsm structure and fsm callbacks.
66 typedef struct fsm { struct
83 } fsm; typedef in typeref:struct:fsm
88 (fsm *);
90 (fsm *);
92 (fsm *, u_char *, int *);
94 (fsm *, u_cha
[all...]
H A Dccp.h50 extern fsm ccp_fsm[];
H A Dfsm.c1 /* $OpenBSD: fsm.c,v 1.8 2009/10/27 23:59:53 deraadt Exp $ */
4 * fsm.c - {Link, IP} Control Protocol Finite State Machine.
47 * Randomize fsm id on link/init.
57 #include "fsm.h"
60 static void fsm_rconfreq(fsm *, int, u_char *, int);
61 static void fsm_rconfack(fsm *, int, u_char *, int);
62 static void fsm_rconfnakrej(fsm *, int, int, u_char *, int);
63 static void fsm_rtermreq(fsm *, int, u_char *, int);
64 static void fsm_rtermack(fsm *);
65 static void fsm_rcoderej(fsm *, u_cha
[all...]
H A Dipcp.h85 extern fsm ipcp_fsm[];
H A Dlcp.c60 #include "fsm.h"
66 fsm lcp_fsm[NUM_PPP]; /* LCP fsm structure (global)*/
80 * Callbacks for fsm code. (CI = Configuration Information)
82 static void lcp_resetci(fsm *); /* Reset our CI */
83 static int lcp_cilen(fsm *); /* Return length of our CI */
84 static void lcp_addci(fsm *, u_char *, int *); /* Add our CI to pkt */
85 static int lcp_ackci(fsm *, u_char *, int); /* Peer ack'd our CI */
86 static int lcp_nakci(fsm *, u_char *, int); /* Peer nak'd our CI */
87 static int lcp_rejci(fsm *, u_cha
[all...]
H A Dccp.c44 #include "fsm.h"
80 fsm ccp_fsm[NUM_PPP];
87 * Callbacks for fsm code.
89 static void ccp_resetci(fsm *);
90 static int ccp_cilen(fsm *);
91 static void ccp_addci(fsm *, u_char *, int *);
92 static int ccp_ackci(fsm *, u_char *, int);
93 static int ccp_nakci(fsm *, u_char *, int);
94 static int ccp_rejci(fsm *, u_char *, int);
95 static int ccp_reqci(fsm *, u_cha
[all...]
H A Dlcp.h90 extern fsm lcp_fsm[];
H A DMakefile6 SRCS= auth.c cbcp.c ccp.c chap.c demand.c fsm.c ipcp.c \
H A Dipcp.c59 #include "fsm.h"
75 * Callbacks for fsm code. (CI = Configuration Information)
77 static void ipcp_resetci(fsm *); /* Reset our CI */
78 static int ipcp_cilen(fsm *); /* Return length of our CI */
79 static void ipcp_addci(fsm *, u_char *, int *); /* Add our CI */
80 static int ipcp_ackci(fsm *, u_char *, int); /* Peer ack'd our CI */
81 static int ipcp_nakci(fsm *, u_char *, int); /* Peer nak'd our CI */
82 static int ipcp_rejci(fsm *, u_char *, int); /* Peer rej'd our CI */
83 static int ipcp_reqci(fsm *, u_char *, int *, int); /* Rcv CI */
84 static void ipcp_up(fsm *); /* W
[all...]
/openbsd-current/usr.sbin/npppd/npppd/
H A Dfsm.h1 /* $OpenBSD: fsm.h,v 1.7 2024/02/26 08:25:51 yasuoka Exp $ */
2 /* $NetBSD: fsm.h,v 1.10 2000/09/23 22:39:35 christos Exp $ */
5 * fsm.h - {Link, IP} Control Protocol Finite State Machine definitions.
22 * Id: fsm.h,v 1.8 1999/11/15 01:51:50 paulus Exp
52 * Each FSM is described by an fsm structure and fsm callbacks.
54 typedef struct fsm { struct
73 } fsm; typedef in typeref:struct:fsm
77 void (*resetci)(fsm *); /* Reset our Configuration Information */
78 int (*cilen)(fsm *); /* Lengt
[all...]
H A Dccp.c45 #include "fsm.h"
55 static int ccp_reqci (fsm *, u_char *, int *, int);
56 static void ccp_open (fsm *);
57 static void ccp_close (fsm *);
58 static void ccp_start (fsm *);
59 static void ccp_stop (fsm *);
60 static void ccp_resetci (fsm *);
61 static int ccp_cilen (fsm *);
62 static void ccp_addci (fsm *, u_char *, int *);
63 static int ccp_ackci (fsm *, u_cha
[all...]
H A Dipcp.c70 static void ipcp_resetci (fsm *);
71 static int ipcp_cilen (fsm *);
72 static void ipcp_addci (fsm *, u_char *, int *);
73 static int ipcp_ackci (fsm *, u_char *, int);
74 static int ipcp_nakci (fsm *, u_char *, int);
75 static int ipcp_rejci (fsm *, u_char *, int);
76 static int ipcp_reqci (fsm *, u_char *, int *, int);
77 static void ipcp_open (fsm *);
78 static void ipcp_close (fsm *);
79 static void ipcp_start (fsm *);
[all...]
H A Dlcp.c69 static void lcp_resetci(fsm *);
70 static void lcp_addci(fsm *, u_char *, int *);
71 static int lcp_reqci(fsm *, u_char *, int *, int);
72 static int lcp_ackci(fsm *, u_char *, int);
73 static int lcp_nakci(fsm *, u_char *, int);
74 static int lcp_rejci(fsm *, u_char *, int);
75 static int lcp_cilen(fsm *);
76 static void lcp_open(fsm *);
77 static void lcp_down(fsm *);
78 static void lcp_finished(fsm *);
[all...]
H A Dfsm.c1 /* $OpenBSD: fsm.c,v 1.11 2024/02/26 08:25:51 yasuoka Exp $ */
4 * This file was adapted from NetBSD:/usr/src/usr.sbin/pppd/pppd/fsm.c
7 * fsm.c is simple and it can be use without modifications. So keep the
13 /* $NetBSD: fsm.c,v 1.13 2000/09/23 22:39:35 christos Exp $ */
16 * fsm.c - {Link, IP} Control Protocol Finite State Machine.
36 * Randomize fsm id on link/init.
56 #include "fsm.h"
73 static void fsm_rconfreq(fsm *, u_char, u_char *, int len);
74 static void fsm_rconfack(fsm *, int, u_char *, int);
75 static void fsm_rconfnakrej(fsm *, in
[all...]
H A Dppp.c272 fsm_lowerdown(&_this->ccp.fsm);
273 fsm_lowerdown(&_this->ipcp.fsm);
308 fsm_close(&_this->lcp.fsm, reason);
432 fsm_lowerdown(&_this->ccp.fsm);
433 fsm_lowerdown(&_this->ipcp.fsm);
512 fsm_lowerdown(&_this->lcp.fsm);
529 fsm_lowerdown(&_this->lcp.fsm);
530 fsm_close(&_this->lcp.fsm, NULL);
602 fsm_lowerup(&_this->ipcp.fsm);
603 fsm_open(&_this->ipcp.fsm);
[all...]
H A Dppp.h223 #include "fsm.h"
232 fsm fsm; member in struct:_lcp
347 fsm fsm; member in struct:_ccp
356 fsm fsm; member in struct:_ipcp
H A DMakefile10 SRCS= ccp.c chap.c chap_ms.c fsm.c ipcp.c lcp.c mppe.c pap.c ppp.c
H A Dnpppd.c1014 req->pr_ccp_id = ppp->ccp.fsm.id;
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A DANSI.py36 def DoEmit (fsm):
38 screen = fsm.memory[0]
39 screen.write_ch(fsm.input_symbol)
41 def DoStartNumber (fsm):
43 fsm.memory.append (fsm.input_symbol)
45 def DoBuildNumber (fsm):
47 ns = fsm.memory.pop()
48 ns = ns + fsm.input_symbol
49 fsm
[all...]
H A DFSM.py277 def BeginBuildNumber (fsm):
278 fsm.memory.append (fsm.input_symbol)
280 def BuildNumber (fsm):
281 s = fsm.memory.pop ()
282 s = s + fsm.input_symbol
283 fsm.memory.append (s)
285 def EndBuildNumber (fsm):
286 s = fsm.memory.pop ()
287 fsm
[all...]
/openbsd-current/usr.bin/patch/
H A Ded.c75 int fsm; local
79 fsm = FSM_CMD;
87 if (fsm == FSM_CMD) {
88 if ((fsm = get_command()) == -1)
91 switch (fsm) {
107 fsm = (fsm == FSM_C) ? FSM_A : FSM_CMD;
111 fsm = FSM_CMD;
121 fsm = FSM_CMD;
128 else if (fsm
163 int fsm; local
[all...]
/openbsd-current/sbin/newfs_ext2fs/
H A Dmke2fs.c761 static const struct fsm { struct
775 const struct fsm *fsm; local
809 for (fsm = fs_magics;; fsm++) {
811 if (fsm->mask == 0)
813 v = oldfs[fsm->offset];
814 if ((v & fsm->mask) == fsm->magic ||
815 (swap32(v) & fsm
[all...]
/openbsd-current/gnu/llvm/libcxxabi/src/
H A Daix_state_tab_eh.inc354 FSM* const fsm = state->table;
357 if (fsm->magic != FSMMagic::number && fsm->magic != FSMMagic::number2 && fsm->magic != FSMMagic::number3) {
376 _LIBCXXABI_TRACE_STATETAB("fsm->magic=%#x, fsm->numberOfStates=%d\n", fsm->magic, fsm->numberOfStates);
381 for (int i = 0; i < fsm->numberOfStates; i++) {
382 currFSMEntry = &fsm
[all...]
/openbsd-current/usr.sbin/iscsid/
H A Dconnection.c386 } fsm[] = { variable in typeref:struct:__anon10623
413 for (i = 0; fsm[i].action != NULL; i++) {
414 if (c->state & fsm[i].state && event == fsm[i].event) {
418 ns = fsm[i].action(c, event);
509 * Called by the session fsm before calling conn_free.

Completed in 244 milliseconds