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
4f4e3cba
Commit
4f4e3cba
authored
Jun 16, 2017
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Jan 31, 2018
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing of source prefix length in filters for IPv4 routes.
parent
08312612
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
configuration.c
configuration.c
+2
-2
No files found.
configuration.c
View file @
4f4e3cba
...
@@ -451,8 +451,6 @@ parse_filter(int c, gnc_t gnc, void *closure, struct filter **filter_return)
...
@@ -451,8 +451,6 @@ parse_filter(int c, gnc_t gnc, void *closure, struct filter **filter_return)
filter
->
af
=
af
;
filter
->
af
=
af
;
else
if
(
filter
->
af
!=
af
)
else
if
(
filter
->
af
!=
af
)
goto
error
;
goto
error
;
if
(
af
==
AF_INET
&&
filter
->
action
.
src_plen
==
96
)
memset
(
&
filter
->
action
.
src_prefix
,
0
,
16
);
}
else
if
(
strcmp
(
token
,
"table"
)
==
0
)
{
}
else
if
(
strcmp
(
token
,
"table"
)
==
0
)
{
int
table
;
int
table
;
c
=
getint
(
c
,
&
table
,
gnc
,
closure
);
c
=
getint
(
c
,
&
table
,
gnc
,
closure
);
...
@@ -472,6 +470,8 @@ parse_filter(int c, gnc_t gnc, void *closure, struct filter **filter_return)
...
@@ -472,6 +470,8 @@ parse_filter(int c, gnc_t gnc, void *closure, struct filter **filter_return)
}
else
if
(
filter
->
af
==
AF_INET
)
{
}
else
if
(
filter
->
af
==
AF_INET
)
{
filter
->
plen_le
+=
96
;
filter
->
plen_le
+=
96
;
filter
->
plen_ge
+=
96
;
filter
->
plen_ge
+=
96
;
filter
->
src_plen_le
+=
96
;
filter
->
src_plen_ge
+=
96
;
}
}
*
filter_return
=
filter
;
*
filter_return
=
filter
;
return
c
;
return
c
;
...
...
Ghost User
@ghost
mentioned in commit
1ffff57e
·
Mar 01, 2019
mentioned in commit
1ffff57e
mentioned in commit 1ffff57e44a4a507786f5626070d9b1f3e371389
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