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
b332fcdf
Commit
b332fcdf
authored
Aug 16, 1999
by
Ondřej Filip
Browse files
Better dumping.
parent
032df280
Changes
1
Hide whitespace changes
Inline
Side-by-side
proto/ospf/ospf.c
View file @
b332fcdf
...
...
@@ -825,11 +825,23 @@ static void
ospf_dump
(
struct
proto
*
p
)
{
char
areastr
[
20
];
struct
ospf_iface
*
ifa
;
struct
ospf_neighbor
*
n
;
struct
ospf_config
*
c
=
(
void
*
)
p
->
cf
;
DBG
(
p
->
name
);
DBG
(
": Dump.
\n
"
);
debug
(
" -AreaID: %u
\n
"
,
c
->
area
);
debug
(
"%s: AreaID: %u
\n
"
,
p
->
name
,
c
->
area
);
WALK_LIST
(
ifa
,
((
struct
proto_ospf
*
)
p
)
->
iface_list
)
{
debug
(
"%s: Interface: %s
\n
"
,
p
->
name
,
ifa
->
iface
->
name
);
debug
(
"%s: state: %u
\n
"
,
p
->
name
,
ifa
->
state
);
debug
(
"%s: DR: %u
\n
"
,
p
->
name
,
ifa
->
drid
);
debug
(
"%s: BDR: %u
\n
"
,
p
->
name
,
ifa
->
bdrid
);
WALK_LIST
(
n
,
ifa
->
neigh_list
)
{
debug
(
"%s: neighbor %u in state %u
\n
"
,
p
->
name
,
n
->
rid
,
n
->
state
);
}
}
}
static
struct
proto
*
...
...
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