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
d4e2b1a8
Commit
d4e2b1a8
authored
Nov 01, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't recompute source in send_unfeasible_request.
parent
2f9c99e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
route.c
route.c
+5
-10
route.h
route.h
+1
-2
No files found.
route.c
View file @
d4e2b1a8
...
...
@@ -392,7 +392,7 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
if
(
!
feasible
)
send_unfeasible_request
(
neigh
,
route
->
installed
&&
route_old
(
route
),
seqno
,
metric
,
a
,
p
,
plen
);
seqno
,
metric
,
src
);
if
(
lost
)
route_lost
(
oldsrc
,
oldmetric
);
...
...
@@ -401,7 +401,7 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
/* Somebody's retracting a route we never saw. */
return
NULL
;
if
(
!
feasible
)
{
send_unfeasible_request
(
neigh
,
0
,
seqno
,
metric
,
a
,
p
,
plen
);
send_unfeasible_request
(
neigh
,
0
,
seqno
,
metric
,
src
);
return
NULL
;
}
if
(
numroutes
>=
maxroutes
)
{
...
...
@@ -437,14 +437,9 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
void
send_unfeasible_request
(
struct
neighbour
*
neigh
,
int
force
,
unsigned
short
seqno
,
unsigned
short
metric
,
const
unsigned
char
*
a
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
)
struct
source
*
src
)
{
struct
route
*
route
=
find_installed_route
(
prefix
,
plen
);
struct
source
*
src
=
find_source
(
a
,
prefix
,
plen
,
0
,
0
);
if
(
src
==
NULL
)
return
;
struct
route
*
route
=
find_installed_route
(
src
->
prefix
,
src
->
plen
);
if
(
seqno_minus
(
src
->
seqno
,
seqno
)
>
100
)
{
/* Probably a source that lost its seqno. Let it time-out. */
...
...
@@ -452,7 +447,7 @@ send_unfeasible_request(struct neighbour *neigh, int force,
}
if
(
force
||
!
route
||
route
->
metric
>=
metric
+
512
)
{
send_unicast_multihop_request
(
neigh
,
prefix
,
plen
,
send_unicast_multihop_request
(
neigh
,
src
->
prefix
,
src
->
plen
,
src
->
metric
>=
INFINITY
?
src
->
seqno
:
seqno_plus
(
src
->
seqno
,
1
),
...
...
route.h
View file @
d4e2b1a8
...
...
@@ -66,8 +66,7 @@ struct route *update_route(const unsigned char *a,
void
retract_neighbour_routes
(
struct
neighbour
*
neigh
);
void
send_unfeasible_request
(
struct
neighbour
*
neigh
,
int
force
,
unsigned
short
seqno
,
unsigned
short
metric
,
const
unsigned
char
*
a
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
struct
source
*
src
);
void
consider_route
(
struct
route
*
route
);
void
send_triggered_update
(
struct
route
*
route
,
struct
source
*
oldsrc
,
unsigned
oldmetric
);
...
...
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