]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
eb5d44eb | 2 | /* |
3 | * IS-IS Rout(e)ing protocol - isis_csm.h | |
4 | * IS-IS circuit state machine | |
5 | * | |
6 | * Copyright (C) 2001,2002 Sampo Saaristo | |
d62a17ae | 7 | * Tampere University of Technology |
eb5d44eb | 8 | * Institute of Communications Engineering |
9 | * | |
eb5d44eb | 10 | */ |
11 | #ifndef _ZEBRA_ISIS_CSM_H | |
12 | #define _ZEBRA_ISIS_CSM_H | |
13 | ||
14 | /* | |
15 | * Circuit states | |
16 | */ | |
61cd5761 DS |
17 | enum isis_circuit_state { |
18 | C_STATE_NA, | |
19 | C_STATE_INIT, /* Connected to interface */ | |
20 | C_STATE_CONF, /* Configured for ISIS */ | |
21 | C_STATE_UP, /* CONN | CONF */ | |
22 | }; | |
eb5d44eb | 23 | |
24 | /* | |
25 | * Circuit events | |
26 | */ | |
9d454ad2 DS |
27 | enum isis_circuit_event { |
28 | ISIS_ENABLE = 1, | |
29 | IF_UP_FROM_Z, | |
30 | ISIS_DISABLE, | |
31 | IF_DOWN_FROM_Z, | |
32 | }; | |
eb5d44eb | 33 | |
9d454ad2 DS |
34 | struct isis_circuit *isis_csm_state_change(enum isis_circuit_event event, |
35 | struct isis_circuit *circuit, | |
36 | void *arg); | |
eb5d44eb | 37 | |
38 | #endif /* _ZEBRA_ISIS_CSM_H */ |