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
31207371
Commit
31207371
authored
Dec 31, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) fix Undefined variable: smallermtu in /usr/local/etc/inc/interfaces.inc on line 593
parent
1923ee6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
interfaces.inc
src/etc/inc/interfaces.inc
+8
-9
No files found.
src/etc/inc/interfaces.inc
View file @
31207371
...
...
@@ -542,23 +542,22 @@ function interface_bridge_configure(&$bridge, $checkmember = 0)
}
/* Calculate smaller mtu and enforce it */
$mtu
=
1500
;
$mtu
=
null
;
$foundgif
=
false
;
foreach
(
$members
as
$member
)
{
$realif
=
get_real_interface
(
$member
);
$opts
=
pfSense_get_interface_addresses
(
$realif
);
$mtu
=
$opts
[
'mtu'
];
if
(
substr
(
$realif
,
0
,
3
)
==
"gif"
)
{
$foundgif
=
true
;
if
(
$checkmember
==
1
)
{
return
;
}
if
(
$
mtu
<=
1500
)
{
if
(
$
opts
[
'mtu'
]
<=
1500
)
{
continue
;
}
}
if
(
!
empty
(
$opts
[
'mtu'
])
&&
$opts
[
'mtu'
]
<
$mtu
)
{
$mtu
=
$
mtu
=
$
opts
[
'mtu'
];
if
(
!
empty
(
$opts
[
'mtu'
])
&&
(
$mtu
==
null
||
$opts
[
'mtu'
]
<
$mtu
)
)
{
$mtu
=
$opts
[
'mtu'
];
}
}
...
...
@@ -590,7 +589,7 @@ function interface_bridge_configure(&$bridge, $checkmember = 0)
continue
;
}
/* make sure the parent interface is up */
legacy_interface_mtu
(
$realif
,
$
smaller
mtu
);
legacy_interface_mtu
(
$realif
,
$mtu
);
legacy_interface_flags
(
$realif
,
$flags
);
interfaces_bring_up
(
$realif
);
legacy_bridge_member
(
$bridge
[
'bridgeif'
],
$realif
);
...
...
@@ -790,11 +789,11 @@ function interface_lagg_configure(&$lagg)
}
/* Calculate smaller mtu and enforce it */
$mtu
=
1500
;
$mtu
=
null
;
foreach
(
$members
as
$member
)
{
$opts
=
pfSense_get_interface_addresses
(
$member
);
if
(
!
empty
(
$opts
[
'mtu'
])
&&
$opts
[
'mtu'
]
<
$mtu
)
{
$
smallermtu
=
$mtu
;
if
(
!
empty
(
$opts
[
'mtu'
])
&&
(
$mtu
==
null
||
$opts
[
'mtu'
]
<
$mtu
)
)
{
$
mtu
=
$opts
[
'mtu'
]
;
}
}
...
...
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