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
5a01d744
Commit
5a01d744
authored
Mar 16, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only send requests for unfeasible routes to the advertising neighbour.
parent
1a1c8054
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
route.c
route.c
+5
-4
route.h
route.h
+2
-1
No files found.
route.c
View file @
5a01d744
...
...
@@ -422,13 +422,13 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
if
(
feasible
)
trigger_route_change
(
route
,
oldsrc
,
oldmetric
);
else
send_unfeasible_request
(
seqno
,
metric
,
a
,
p
,
plen
);
send_unfeasible_request
(
neigh
,
seqno
,
metric
,
a
,
p
,
plen
);
if
(
lost
)
route_lost
(
oldsrc
,
oldmetric
);
}
else
{
if
(
!
feasible
)
{
send_unfeasible_request
(
seqno
,
metric
,
a
,
p
,
plen
);
send_unfeasible_request
(
neigh
,
seqno
,
metric
,
a
,
p
,
plen
);
return
NULL
;
}
if
(
refmetric
>=
INFINITY
)
...
...
@@ -459,7 +459,8 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
/* We just received an unfeasible update. If it's any good, send
a request for a new seqno. */
void
send_unfeasible_request
(
unsigned
short
seqno
,
unsigned
short
metric
,
send_unfeasible_request
(
struct
neighbour
*
neigh
,
unsigned
short
seqno
,
unsigned
short
metric
,
const
unsigned
char
*
a
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
)
{
...
...
@@ -475,7 +476,7 @@ send_unfeasible_request(unsigned short seqno, unsigned short metric,
}
if
(
!
route
||
route
->
metric
>=
metric
+
256
)
{
send_request_resend
(
NULL
,
prefix
,
plen
,
send_request_resend
(
neigh
,
prefix
,
plen
,
src
->
metric
>=
INFINITY
?
src
->
seqno
:
seqno_plus
(
src
->
seqno
,
1
),
hash_id
(
src
->
address
));
...
...
route.h
View file @
5a01d744
...
...
@@ -65,7 +65,8 @@ struct route *update_route(const unsigned char *a,
unsigned
short
seqno
,
unsigned
short
refmetric
,
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
);
void
send_unfeasible_request
(
unsigned
short
seqno
,
unsigned
short
metric
,
void
send_unfeasible_request
(
struct
neighbour
*
neigh
,
unsigned
short
seqno
,
unsigned
short
metric
,
const
unsigned
char
*
a
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
void
consider_route
(
struct
route
*
route
);
...
...
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