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
e3121112
Commit
e3121112
authored
Aug 24, 1999
by
Ondřej Filip
Browse files
Preparing to send DD packets.
parent
29818140
Changes
2
Hide whitespace changes
Inline
Side-by-side
proto/ospf/ospf.c
View file @
e3121112
...
...
@@ -44,7 +44,13 @@ tryadj(struct ospf_neighbor *n, struct proto *p)
{
DBG
(
"%s: Going to build adjacency.
\n
"
,
p
->
name
);
neigh_chstate
(
n
,
NEIGHBOR_EXSTART
);
/* FIXME Go on */
if
(
n
->
adj
==
0
)
/* First time adjacency */
{
n
->
dds
=
random_u32
;
}
n
->
dds
++
;
n
->
ms
=
NEIGHBOR_MASTER
;
/* FIXME Go on, start to send DD packets */
}
/* Neighbor is inactive for a long time. Remove it. */
...
...
@@ -284,6 +290,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
n
->
priority
=
ps
->
priority
;
n
->
options
=
ps
->
options
;
n
->
ifa
=
ifa
;
n
->
adj
=
0
;
neigh_chstate
(
n
,
NEIGHBOR_INIT
);
}
tm_start
(
n
->
inactim
,
ifa
->
deadc
*
ifa
->
helloint
);
...
...
proto/ospf/ospf.h
View file @
e3121112
...
...
@@ -123,6 +123,8 @@ struct ospf_neighbor
#define NEIGHBOR_FULL 7
timer
*
inactim
;
/* Inactivity timer */
byte
ms
;
/* Master/slave */
#define NEIGHBOR_SLAVE 0
#define NEIGHBOR_MASTER 1
u32
dds
;
/* DD Sequence number being sentg */
u32
ddr
;
/* last Dat Des packet */
u32
rid
;
/* Router ID */
...
...
@@ -130,6 +132,7 @@ struct ospf_neighbor
byte
options
;
/* Options */
u32
dr
;
/* Neigbour's idea of DR */
u32
bdr
;
/* Neigbour's idea of BDR */
u8
adj
;
/* built adjacency? */
};
#endif
/* _BIRD_OSPF_H_ */
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