repo.or.cz
/
hlafsm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Graphviz presentation of SMTP test FSM
[hlafsm.git]
/
test
/
smtpfsm.h
blob
ca8c333e349cd7ee8f52c7783ed7ee5f3316f2bd
1
/*
2
* Based on output of the cfsm FSM compiler:
3
* http://www.mindrot.org/projects/cfsm/
4
*/
5
6
#ifndef _SMTPFSM_H
7
#define _SMTPFSM_H
8
9
#include
"myfsm.h"
10
11
/*
12
* The valid states of the FSM
13
*/
14
enum
mystate
{
15
STATE_INIT
,
16
STATE_HELO
,
17
STATE_MAIL
,
18
STATE_RCPT
,
19
STATE_DATA
,
20
STATE_QUIT
,
21
};
22
23
/*
24
* Events that may cause state transitions in the FSM
25
*/
26
enum
myevent
{
27
HELO
,
28
MAIL
,
29
QUIT
,
30
RCPT
,
31
DATA
,
32
END_DATA
,
33
};
34
35
36
#endif
/* _SMTPFSM_H */