Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
43fd8fae
Commit
43fd8fae
authored
Mar 09, 2016
by
Pavel Tvrdík
Browse files
nest/proto fix local_debug mode
parent
062d18fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
nest/proto.c
View file @
43fd8fae
...
...
@@ -39,6 +39,12 @@ static int graceful_restart_state;
static
u32
graceful_restart_locks
;
static
char
*
p_states
[]
=
{
"DOWN"
,
"START"
,
"UP"
,
"STOP"
};
static
char
*
cs_states
[]
=
{
[
CS_DOWN
]
=
"DOWN"
,
[
CS_START
]
=
"START"
,
[
CS_UP
]
=
"UP"
,
[
CS_FLUSHING
]
=
"FLUSHING"
};
extern
struct
protocol
proto_unix_iface
;
...
...
@@ -313,7 +319,7 @@ channel_set_state(struct channel *c, uint state)
uint
cs
=
c
->
channel_state
;
uint
es
=
c
->
export_state
;
DBG
(
"%s reporting state transition %s
/%s
->
*/
%s
\n
"
,
p
->
name
,
c_states
[
cs
],
p
_states
[
ops
],
p_
state
s
[
ps
]);
DBG
(
"%s reporting
channel %s
state transition %s -> %s
\n
"
,
c
->
proto
->
name
,
c
->
name
,
cs
_states
[
cs
],
cs
_states
[
state
]);
if
(
state
==
cs
)
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment