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
2c151460
Commit
2c151460
authored
Nov 03, 2015
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Nov 12, 2015
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simpler install filter (don't match ifindex).
parent
abe653ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
configuration.c
configuration.c
+1
-2
configuration.h
configuration.h
+1
-1
kernel_netlink.c
kernel_netlink.c
+1
-1
No files found.
configuration.c
View file @
2c151460
...
...
@@ -1096,12 +1096,11 @@ redistribute_filter(const unsigned char *prefix, unsigned short plen,
int
install_filter
(
const
unsigned
char
*
prefix
,
unsigned
short
plen
,
const
unsigned
char
*
src_prefix
,
unsigned
short
src_plen
,
unsigned
int
ifindex
,
struct
filter_result
*
result
)
{
int
res
;
res
=
do_filter
(
install_filters
,
NULL
,
prefix
,
plen
,
src_prefix
,
src_plen
,
NULL
,
ifindex
,
0
,
result
);
src_prefix
,
src_plen
,
NULL
,
0
,
0
,
result
);
if
(
res
<
0
)
res
=
INFINITY
;
return
res
;
...
...
configuration.h
View file @
2c151460
...
...
@@ -64,5 +64,5 @@ int redistribute_filter(const unsigned char *prefix, unsigned short plen,
struct
filter_result
*
result
);
int
install_filter
(
const
unsigned
char
*
prefix
,
unsigned
short
plen
,
const
unsigned
char
*
src_prefix
,
unsigned
short
src_plen
,
unsigned
int
ifindex
,
struct
filter_result
*
result
);
struct
filter_result
*
result
);
int
finalise_config
(
void
);
kernel_netlink.c
View file @
2c151460
...
...
@@ -963,7 +963,7 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen,
ipv4
=
v4mapped
(
gate
);
install_filter
(
dest
,
plen
,
src
,
src_plen
,
ifindex
,
&
filter_result
);
install_filter
(
dest
,
plen
,
src
,
src_plen
,
&
filter_result
);
if
(
filter_result
.
table
)
{
table
=
filter_result
.
table
;
}
else
if
(
src_plen
==
0
)
{
...
...
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