Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
3519f4e6
Unverified
Commit
3519f4e6
authored
6 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-radv-filterd: correct call to ebtables-tiny
Fixes:
8e5abf02
("treewide: switch to ebtables-tiny")
parent
a2eb50e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-radv-filterd/src/gluon-radv-filterd.c
+4
-4
4 additions, 4 deletions
package/gluon-radv-filterd/src/gluon-radv-filterd.c
with
4 additions
and
4 deletions
package/gluon-radv-filterd/src/gluon-radv-filterd.c
+
4
−
4
View file @
3519f4e6
...
...
@@ -167,11 +167,11 @@ static void cleanup(void) {
if
(
G
.
chain
)
{
/* Reset chain to accept everything again */
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables"
,
(
const
char
*
[])
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables
-tiny
"
,
(
const
char
*
[])
{
"ebtables-tiny"
,
"-F"
,
G
.
chain
,
NULL
}))
DEBUG_MSG
(
"warning: flushing ebtables chain %s failed, not adding a new rule"
,
G
.
chain
);
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables"
,
(
const
char
*
[])
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables
-tiny
"
,
(
const
char
*
[])
{
"ebtables-tiny"
,
"-A"
,
G
.
chain
,
"-j"
,
"ACCEPT"
,
NULL
}))
DEBUG_MSG
(
"warning: adding new rule to ebtables chain %s failed"
,
G
.
chain
);
}
...
...
@@ -719,10 +719,10 @@ static void update_ebtables(void) {
G
.
max_tq
);
G
.
best_router
=
router
;
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables"
,
(
const
char
*
[])
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables
-tiny
"
,
(
const
char
*
[])
{
"ebtables-tiny"
,
"-F"
,
G
.
chain
,
NULL
}))
error_message
(
0
,
0
,
"warning: flushing ebtables chain %s failed, not adding a new rule"
,
G
.
chain
);
else
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables"
,
(
const
char
*
[])
else
if
(
fork_execvp_timeout
(
&
timeout
,
"ebtables
-tiny
"
,
(
const
char
*
[])
{
"ebtables-tiny"
,
"-A"
,
G
.
chain
,
"-s"
,
mac
,
"-j"
,
"ACCEPT"
,
NULL
}))
error_message
(
0
,
0
,
"warning: adding new rule to ebtables chain %s failed"
,
G
.
chain
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment