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
ed49f408
Commit
ed49f408
authored
Oct 12, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement retract_neighbour_routes.
parent
bd84f8cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
route.c
route.c
+18
-0
route.h
route.h
+1
-0
No files found.
route.c
View file @
ed49f408
...
...
@@ -513,6 +513,24 @@ consider_route(struct route *route)
return
;
}
void
retract_neighbour_routes
(
struct
neighbour
*
neigh
)
{
int
i
;
i
=
0
;
while
(
i
<
numroutes
)
{
if
(
routes
[
i
].
neigh
==
neigh
)
{
unsigned
short
oldmetric
=
routes
[
i
].
metric
;
if
(
oldmetric
!=
INFINITY
)
{
change_route_metric
(
&
routes
[
i
],
INFINITY
);
route_changed
(
&
routes
[
i
],
routes
[
i
].
src
,
oldmetric
);
}
}
i
++
;
}
}
void
send_triggered_update
(
struct
route
*
route
,
struct
source
*
oldsrc
,
unsigned
oldmetric
)
...
...
route.h
View file @
ed49f408
...
...
@@ -63,6 +63,7 @@ struct route *update_route(const unsigned char *a,
unsigned
short
seqno
,
unsigned
short
refmetric
,
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
);
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
,
...
...
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