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
95532da8
Commit
95532da8
authored
Apr 02, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename trigger_route_change to route_changed.
parent
6e5bb697
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
route.c
route.c
+4
-4
route.h
route.h
+2
-2
No files found.
route.c
View file @
95532da8
...
@@ -287,7 +287,7 @@ update_route_metric(struct route *route)
...
@@ -287,7 +287,7 @@ update_route_metric(struct route *route)
if
(
newmetric
!=
oldmetric
)
{
if
(
newmetric
!=
oldmetric
)
{
change_route_metric
(
route
,
newmetric
);
change_route_metric
(
route
,
newmetric
);
trigger_route_change
(
route
,
route
->
src
,
oldmetric
);
route_changed
(
route
,
route
->
src
,
oldmetric
);
}
}
}
}
...
@@ -422,7 +422,7 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
...
@@ -422,7 +422,7 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
change_route_metric
(
route
,
metric
);
change_route_metric
(
route
,
metric
);
if
(
feasible
)
if
(
feasible
)
trigger_route_change
(
route
,
oldsrc
,
oldmetric
);
route_changed
(
route
,
oldsrc
,
oldmetric
);
else
else
send_unfeasible_request
(
neigh
,
seqno
,
metric
,
a
,
p
,
plen
);
send_unfeasible_request
(
neigh
,
seqno
,
metric
,
a
,
p
,
plen
);
...
@@ -585,8 +585,8 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
...
@@ -585,8 +585,8 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
/* A route has just changed. Decide whether to switch to a different route or
/* A route has just changed. Decide whether to switch to a different route or
send an update. */
send an update. */
void
void
trigger_route_change
(
struct
route
*
route
,
route_changed
(
struct
route
*
route
,
struct
source
*
oldsrc
,
unsigned
short
oldmetric
)
struct
source
*
oldsrc
,
unsigned
short
oldmetric
)
{
{
if
(
route
->
installed
)
{
if
(
route
->
installed
)
{
if
(
route
->
metric
>
oldmetric
)
{
if
(
route
->
metric
>
oldmetric
)
{
...
...
route.h
View file @
95532da8
...
@@ -71,7 +71,7 @@ void send_unfeasible_request(struct neighbour *neigh,
...
@@ -71,7 +71,7 @@ void send_unfeasible_request(struct neighbour *neigh,
void
consider_route
(
struct
route
*
route
);
void
consider_route
(
struct
route
*
route
);
void
send_triggered_update
(
struct
route
*
route
,
void
send_triggered_update
(
struct
route
*
route
,
struct
source
*
oldsrc
,
int
oldmetric
);
struct
source
*
oldsrc
,
int
oldmetric
);
void
trigger_route_change
(
struct
route
*
route
,
void
route_changed
(
struct
route
*
route
,
struct
source
*
oldsrc
,
unsigned
short
oldmetric
);
struct
source
*
oldsrc
,
unsigned
short
oldmetric
);
void
route_lost
(
struct
source
*
src
,
int
oldmetric
);
void
route_lost
(
struct
source
*
src
,
int
oldmetric
);
void
expire_routes
(
void
);
void
expire_routes
(
void
);
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