diff options
author | Ermal <eri@pfsense.org> | 2011-05-05 10:23:17 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-05 10:23:17 +0000 |
commit | 5fd3cb92a081547549ec914141fabd6aec980427 (patch) | |
tree | c613a0270bd83068cacecf5b0ad1d077be6a96e5 | |
parent | 4a916dc89b36b92ba1a7076af04b157ca88990d7 (diff) | |
download | pfsense-5fd3cb92a081547549ec914141fabd6aec980427.zip pfsense-5fd3cb92a081547549ec914141fabd6aec980427.tar.gz |
Ticket #CZH-831780. If gif(4) is part of a bridge and its mtu is smaller than 1500(ethernet standard) do not consider it in finding the smaller mtu because we have a patch to allow gif(4) be member of a bridge with smaller mtu. See https://rcs.pfsense.org/projects/pfsense-tools/repos/mainline/commits/67d3135722db4a3c911761ead5c881ccaef02c65 for details.
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 4a3cd88..6a5b2d1 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -416,6 +416,8 @@ function interface_bridge_configure(&$bridge) { $realif = get_real_interface($member); $opts = pfSense_get_interface_addresses($realif); $mtu = $opts['mtu']; + if (substr($realif, 0, 3) == "gif" && $mtu < 1500) + continue; if (!isset($opts['encaps']['txcsum'])) $commontx = false; if (!isset($opts['encaps']['rxcsum'])) |