diff options
author | Ermal <eri@pfsense.org> | 2013-01-30 10:31:35 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-30 10:31:35 +0000 |
commit | a6bc492fecd64a3a9f3b4cc4a003d6761494a694 (patch) | |
tree | 3ad6533abcd96151b87b7d4016643444ebc5e4ec | |
parent | 9eb49a5152a8f3affbf85eaf1923e60eef3b1375 (diff) | |
download | pfsense-a6bc492fecd64a3a9f3b4cc4a003d6761494a694.zip pfsense-a6bc492fecd64a3a9f3b4cc4a003d6761494a694.tar.gz |
Fixes #2674. Use the interface mtu rather than hardcoded 1280. Needs to be seen if issues with fragmentation can come from this on 6rd/6to4 tunnels
-rw-r--r-- | etc/inc/services.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 0fe7a45..159f689 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -108,7 +108,11 @@ function services_radvd_configure() { $radvdconf .= "\tAdvSendAdvert on;\n"; $radvdconf .= "\tMinRtrAdvInterval 5;\n"; $radvdconf .= "\tMaxRtrAdvInterval 20;\n"; - $radvdconf .= "\tAdvLinkMTU 1280;\n"; + $mtu = get_interface_mtu($realif); + if (is_numeric($mtu)) + $radvdconf .= "\tAdvLinkMTU {$mtu};\n"; + else + $radvdconf .= "\tAdvLinkMTU 1280;\n"; // $radvdconf .= "\tDeprecatePrefix on;\n"; switch($dhcpv6ifconf['rapriority']) { case "low": |