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
1a1c8054
Commit
1a1c8054
authored
Mar 16, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add neighbour parameter to send_request_resend.
parent
f4f3c9d5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
message.c
message.c
+9
-3
message.h
message.h
+2
-1
route.c
route.c
+3
-3
No files found.
message.c
View file @
1a1c8054
...
...
@@ -513,11 +513,17 @@ send_request(struct network *net,
}
void
send_request_resend
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
send_request_resend
(
struct
neighbour
*
neigh
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
unsigned
short
seqno
,
unsigned
short
router_hash
)
{
if
(
neigh
)
send_unicast_request
(
neigh
,
prefix
,
plen
,
127
,
seqno
,
router_hash
);
else
send_request
(
NULL
,
prefix
,
plen
,
127
,
seqno
,
router_hash
);
record_request
(
prefix
,
plen
,
seqno
,
router_hash
,
NULL
,
record_request
(
prefix
,
plen
,
seqno
,
router_hash
,
neigh
?
neigh
->
network
:
NULL
,
MAX
(
10
,
MIN
(
wireless_hello_interval
/
2
,
MIN
(
wired_hello_interval
/
2
,
...
...
message.h
View file @
1a1c8054
...
...
@@ -47,7 +47,8 @@ void send_request(struct network *net,
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
unsigned
char
hop_count
,
unsigned
short
seqno
,
unsigned
short
router_hash
);
void
send_request_resend
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
void
send_request_resend
(
struct
neighbour
*
neigh
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
unsigned
short
seqno
,
unsigned
short
router_hash
);
void
send_unicast_request
(
struct
neighbour
*
neigh
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
...
...
route.c
View file @
1a1c8054
...
...
@@ -475,7 +475,7 @@ send_unfeasible_request(unsigned short seqno, unsigned short metric,
}
if
(
!
route
||
route
->
metric
>=
metric
+
256
)
{
send_request_resend
(
prefix
,
plen
,
send_request_resend
(
NULL
,
prefix
,
plen
,
src
->
metric
>=
INFINITY
?
src
->
seqno
:
seqno_plus
(
src
->
seqno
,
1
),
hash_id
(
src
->
address
));
...
...
@@ -562,7 +562,7 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
if
(
oldmetric
<
INFINITY
)
{
if
(
newmetric
>=
INFINITY
||
newmetric
>=
oldmetric
+
384
)
send_request_resend
(
route
->
src
->
prefix
,
route
->
src
->
plen
,
send_request_resend
(
NULL
,
route
->
src
->
prefix
,
route
->
src
->
plen
,
route
->
src
->
metric
>=
INFINITY
?
route
->
src
->
seqno
:
seqno_plus
(
route
->
src
->
seqno
,
1
),
...
...
@@ -609,7 +609,7 @@ route_lost(struct source *src, int oldmetric)
/* Complain loudly. */
send_update
(
NULL
,
1
,
src
->
prefix
,
src
->
plen
);
if
(
oldmetric
<
INFINITY
)
send_request_resend
(
src
->
prefix
,
src
->
plen
,
send_request_resend
(
NULL
,
src
->
prefix
,
src
->
plen
,
src
->
metric
>=
INFINITY
?
src
->
seqno
:
seqno_plus
(
src
->
seqno
,
1
),
hash_id
(
src
->
address
));
...
...
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