-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsession.go
40 lines (38 loc) · 1.35 KB
/
session.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package bfd
type BfdStatus struct {
SessionState int
RemoteSessionState int
LocalDiscr uint32
RemoteDiscr uint32
LocalDiat int
DesiredMinTxInterval int
RequiredMinRxInterval int
RemoteMinRxInterval int
DemandMode bool
RemoteDemandMode bool
DetectMult uint8
AuthType AuthenticationType
RcvAuthSeq uint32
XmitAuthSeq uint32
AuthSeqKnown bool
}
/* State Machine
+--+
| | UP, ADMIN DOWN, TIMER
| V
DOWN +------+ INIT
+------------| |------------+
| | DOWN | |
| +-------->| |<--------+ |
| | +------+ | |
| | | |
| | ADMIN DOWN,| |
| |ADMIN DOWN, DOWN,| |
| |TIMER TIMER| |
V | | V
+------+ +------+
+----| | | |----+
DOWN| | INIT |--------------------->| UP | |INIT, UP
+--->| | INIT, UP | |<---+
+------+ +------+
*/