Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
947de014
Commit
947de014
authored
Mar 03, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) zapp interface_override_flags
parent
2149c897
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
interfaces.inc
src/etc/inc/interfaces.inc
+2
-20
No files found.
src/etc/inc/interfaces.inc
View file @
947de014
...
@@ -110,20 +110,6 @@ function interfaces_bring_up($interface)
...
@@ -110,20 +110,6 @@ function interfaces_bring_up($interface)
legacy_interface_flags
(
$interface
,
'up'
);
legacy_interface_flags
(
$interface
,
'up'
);
}
}
function
interface_override_flags
()
{
global
$config
;
return
sprintf
(
'%stxcsum %srxcsum %stso %slro %spolling'
,
isset
(
$config
[
'system'
][
'disablechecksumoffloading'
])
?
'-'
:
''
,
isset
(
$config
[
'system'
][
'disablechecksumoffloading'
])
?
'-'
:
''
,
isset
(
$config
[
'system'
][
'disablesegmentationoffloading'
])
?
'-'
:
''
,
isset
(
$config
[
'system'
][
'disablelargereceiveoffloading'
])
?
'-'
:
''
,
isset
(
$config
[
'system'
][
'polling'
])
?
''
:
'-'
);
}
function
does_interface_exist
(
$interface
)
function
does_interface_exist
(
$interface
)
{
{
$ints
=
legacy_interface_listget
();
$ints
=
legacy_interface_listget
();
...
@@ -564,8 +550,6 @@ function interface_bridge_configure(&$bridge, $checkmember = 0)
...
@@ -564,8 +550,6 @@ function interface_bridge_configure(&$bridge, $checkmember = 0)
return
;
return
;
}
}
$flags
=
interface_override_flags
();
if
(
file_exists
(
"/var/run/booting"
)
||
!
empty
(
$bridge
[
'bridgeif'
]))
{
if
(
file_exists
(
"/var/run/booting"
)
||
!
empty
(
$bridge
[
'bridgeif'
]))
{
legacy_interface_destroy
(
$bridge
[
'bridgeif'
]);
legacy_interface_destroy
(
$bridge
[
'bridgeif'
]);
legacy_interface_create
(
$bridge
[
'bridgeif'
]);
legacy_interface_create
(
$bridge
[
'bridgeif'
]);
...
@@ -589,7 +573,7 @@ function interface_bridge_configure(&$bridge, $checkmember = 0)
...
@@ -589,7 +573,7 @@ function interface_bridge_configure(&$bridge, $checkmember = 0)
}
}
/* make sure the parent interface is up */
/* make sure the parent interface is up */
legacy_interface_mtu
(
$realif
,
$mtu
);
legacy_interface_mtu
(
$realif
,
$mtu
);
legacy_interface_flags
(
$realif
,
$flags
);
configure_interface_hardware
(
$realif
);
interfaces_bring_up
(
$realif
);
interfaces_bring_up
(
$realif
);
legacy_bridge_member
(
$bridge
[
'bridgeif'
],
$realif
);
legacy_bridge_member
(
$bridge
[
'bridgeif'
],
$realif
);
}
}
...
@@ -796,16 +780,14 @@ function interface_lagg_configure(&$lagg)
...
@@ -796,16 +780,14 @@ function interface_lagg_configure(&$lagg)
}
}
}
}
$flags
=
interface_override_flags
();
$checklist
=
get_interface_list
();
$checklist
=
get_interface_list
();
foreach
(
$members
as
$member
)
{
foreach
(
$members
as
$member
)
{
if
(
!
array_key_exists
(
$member
,
$checklist
))
{
if
(
!
array_key_exists
(
$member
,
$checklist
))
{
continue
;
continue
;
}
}
legacy_interface_mtu
(
$member
,
$mtu
);
legacy_interface_mtu
(
$member
,
$mtu
);
legacy_interface_flags
(
$member
,
$flags
);
configure_interface_hardware
(
$member
);
interfaces_bring_up
(
$member
);
interfaces_bring_up
(
$member
);
mwexec
(
"/sbin/ifconfig
{
$laggif
}
laggport
{
$member
}
"
);
mwexec
(
"/sbin/ifconfig
{
$laggif
}
laggport
{
$member
}
"
);
}
}
...
...
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