Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
77ca1b10
Commit
77ca1b10
authored
Mar 31, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement send_update_resend.
parent
ce2ac2fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
message.c
message.c
+16
-0
message.h
message.h
+2
-0
No files found.
message.c
View file @
77ca1b10
...
...
@@ -897,6 +897,22 @@ send_update(struct network *net, int urgent,
schedule_update_flush
(
net
,
urgent
);
}
void
send_update_resend
(
struct
network
*
net
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
)
{
int
delay
;
send_update
(
net
,
1
,
prefix
,
plen
);
delay
=
2000
;
delay
=
MIN
(
delay
,
wireless_hello_interval
/
2
);
delay
=
MIN
(
delay
,
wired_hello_interval
/
2
);
delay
=
MAX
(
delay
,
10
);
record_resend
(
RESEND_REQUEST
,
prefix
,
plen
,
0
,
0
,
NULL
,
delay
);
}
void
update_myseqno
(
int
force
)
{
...
...
message.h
View file @
77ca1b10
...
...
@@ -60,6 +60,8 @@ void send_unicast_request(struct neighbour *neigh,
unsigned
short
router_hash
);
void
send_update
(
struct
network
*
net
,
int
urgent
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
void
send_update_resend
(
struct
network
*
net
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
void
update_myseqno
(
int
force
);
void
send_self_update
(
struct
network
*
net
,
int
force_seqno
);
void
send_ihu
(
struct
neighbour
*
neigh
,
struct
network
*
net
);
...
...
Write
Preview
Markdown
is supported
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