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
580257c7
Commit
580257c7
authored
Oct 10, 2020
by
Juliusz Chroboczek
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of infinite results from install_filter.
parent
3af9f09d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
route.c
route.c
+9
-4
No files found.
route.c
View file @
580257c7
...
...
@@ -467,19 +467,24 @@ change_route(int operation, const struct babel_route *route, int metric,
int
new_ifindex
,
int
new_metric
)
{
struct
filter_result
filter_result
;
unsigned
char
*
pref_src
=
NULL
;
unsigned
int
ifindex
=
route
->
neigh
->
ifp
->
ifindex
;
int
m
=
install_filter
(
route
->
src
->
prefix
,
route
->
src
->
plen
,
route
->
src
->
src_prefix
,
route
->
src
->
src_plen
,
ifindex
,
&
filter_result
);
if
(
m
<
INFINITY
)
pref_src
=
filter_result
.
pref_src
;
if
(
m
>=
INFINITY
)
{
if
(
operation
==
ROUTE_ADD
)
return
0
;
else
if
(
operation
==
ROUTE_MODIFY
)
{
operation
=
ROUTE_FLUSH
;
}
}
int
table
=
filter_result
.
table
?
filter_result
.
table
:
export_table
;
return
kernel_route
(
operation
,
table
,
route
->
src
->
prefix
,
route
->
src
->
plen
,
route
->
src
->
src_prefix
,
route
->
src
->
src_plen
,
pref_src
,
route
->
src
->
src_prefix
,
route
->
src
->
src_plen
,
filter_result
.
pref_src
,
route
->
nexthop
,
ifindex
,
metric
,
new_next_hop
,
new_ifindex
,
new_metric
,
operation
==
ROUTE_MODIFY
?
table
:
0
);
...
...
Joanne Hugé
@jhuge
mentioned in commit
231b2802
·
Sep 30, 2022
mentioned in commit
231b2802
mentioned in commit 231b2802bfb1314237e36000cdbf115852aef604
Toggle commit list
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