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
6d5ecf0e
Commit
6d5ecf0e
authored
Apr 04, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move resend_expired around.
parent
0ceec83a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
resend.c
resend.c
+11
-11
No files found.
resend.c
View file @
6d5ecf0e
...
...
@@ -128,6 +128,17 @@ record_resend(int kind, const unsigned char *prefix, unsigned char plen,
return
1
;
}
static
int
resend_expired
(
struct
resend
*
resend
)
{
switch
(
resend
->
kind
)
{
case
RESEND_REQUEST
:
return
timeval_minus_msec
(
&
now
,
&
resend
->
time
)
>=
REQUEST_TIMEOUT
;
default:
return
resend
->
max
<=
0
;
}
}
int
unsatisfied_request
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
unsigned
short
seqno
,
unsigned
short
router_hash
)
...
...
@@ -172,17 +183,6 @@ satisfy_request(const unsigned char *prefix, unsigned char plen,
return
0
;
}
static
int
resend_expired
(
struct
resend
*
resend
)
{
switch
(
resend
->
kind
)
{
case
RESEND_REQUEST
:
return
timeval_minus_msec
(
&
now
,
&
resend
->
time
)
>=
REQUEST_TIMEOUT
;
default:
return
resend
->
max
<=
0
;
}
}
void
expire_resend
()
{
...
...
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