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
b1693b8f
Commit
b1693b8f
authored
Aug 09, 1999
by
Ondřej Filip
Browse files
Bug in election fixed.
parent
e83dc0d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
proto/ospf/ospf.c
View file @
b1693b8f
...
...
@@ -149,6 +149,9 @@ backupseen(struct ospf_iface *ifa)
p
=
(
struct
proto
*
)(
ifa
->
proto
);
tm_stop
(
ifa
->
wait_timer
);
DBG
(
"%s: Stoping wait timer
\n
"
,
p
->
name
);
DBG
(
"%s: (B)DR election.
\n
"
,
p
->
name
);
myid
=
p
->
cf
->
global
->
router_id
;
...
...
@@ -166,10 +169,10 @@ backupseen(struct ospf_iface *ifa)
if
(
ndr
==
NULL
)
ndr
=
nbdr
;
if
(((
ifa
->
drid
==
myid
)
&&
(
ndr
!=
myid
))
||
((
ifa
->
drid
!=
myid
)
&&
(
ndr
==
myid
))
||
((
ifa
->
bdrid
==
myid
)
&&
(
nbdr
!=
myid
))
||
((
ifa
->
bdrid
!=
myid
)
&&
(
nbdr
==
myid
)))
if
(((
ifa
->
drid
==
myid
)
&&
(
ndr
->
rid
!=
myid
))
||
((
ifa
->
drid
!=
myid
)
&&
(
ndr
->
rid
==
myid
))
||
((
ifa
->
bdrid
==
myid
)
&&
(
nbdr
->
rid
!=
myid
))
||
((
ifa
->
bdrid
!=
myid
)
&&
(
nbdr
->
rid
==
myid
)))
{
if
(
ndr
==
NULL
)
ifa
->
drid
=
me
.
dr
=
0
;
else
ifa
->
drid
=
me
.
dr
=
ndr
->
rid
;
...
...
@@ -188,9 +191,6 @@ backupseen(struct ospf_iface *ifa)
DBG
(
"%s: DR=%u, BDR=%u
\n
"
,
p
->
name
,
ifa
->
drid
,
ifa
->
bdrid
);
tm_stop
(
ifa
->
wait_timer
);
DBG
(
"%s: Stoping wait timer
\n
"
,
p
->
name
);
if
(
myid
==
ifa
->
drid
)
iface_chstate
(
ifa
,
OSPF_IS_DR
);
else
{
...
...
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