summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-30 10:31:35 +0000
committerErmal <eri@pfsense.org>2013-01-30 10:31:35 +0000
commita6bc492fecd64a3a9f3b4cc4a003d6761494a694 (patch)
tree3ad6533abcd96151b87b7d4016643444ebc5e4ec
parent9eb49a5152a8f3affbf85eaf1923e60eef3b1375 (diff)
downloadpfsense-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.inc6
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":
OpenPOWER on IntegriCloud