MTU MRU einstellbar bei PPoE
authormaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 11 Apr 2007 10:19:22 +0000 (10:19 +0000)
committermaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 11 Apr 2007 10:19:22 +0000 (10:19 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@490 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

html/cgi-bin/pppsetup.cgi
src/initscripts/init.d/net/red/pppoe

index d81a4fe..445097d 100644 (file)
@@ -752,6 +752,16 @@ print <<END
        <td colspan='2' width='50%'>$Lang::tr{'concentrator name'}&nbsp;<img src='/blob.gif' alt='*' /></td>
        <td width='25%'><input type='text' name='CONCENTRATORNAME' value='$pppsettings{'CONCENTRATORNAME'}' /></td>
 </tr>
+<tr>
+       <td width='25%'>MRU</td>
+       <td colspan='2' width='50%'></td>
+       <td width='25%'><input type='text' name='MRU' value='$pppsettings{'MRU'}' /></td>
+</tr>
+<tr>
+       <td width='25%'>MTU</td>
+       <td colspan='2' width='50%'></td>
+       <td width='25%'><input type='text' name='MTU' value='$pppsettings{'MTU'}' /></td>
+</tr>
 END
 ;
 }
@@ -940,6 +950,8 @@ sub initprofile
        $pppsettings{'PHONEBOOK'} = 'RELAY_PPP1';
        $pppsettings{'PROTOCOL'} = 'RFC2364';
        $pppsettings{'METHOD'} = 'PPPOE_PLUGIN';
+       $pppsettings{'MTU'} = '1492';
+       $pppsettings{'MRU'} = '1492';
        $pppsettings{'DIALMODE'} = 'T';
        $pppsettings{'MAXRETRIES'} = 5;
        $pppsettings{'HOLDOFF'} = 30;
index dff50a2..6509775 100644 (file)
@@ -53,8 +53,8 @@ case "${2}" in
                                DEMAND+=" active-filter outbound and not icmp[0] == 3 and not tcp[13] & 4 != 0"
                        fi
                        
-                       ARGS+=" noipdefault default-asyncmap defaultroute hide-password local mtu 1492"
-                       ARGS+=" mru 1492 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp"
+                       ARGS+=" noipdefault default-asyncmap defaultroute hide-password local mtu ${MTU}"
+                       ARGS+=" mru ${MRU} noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp"
                        ARGS+=" user ${USERNAME} lcp-echo-interval 20 lcp-echo-failure 3 lcp-max-configure 50"
                        ARGS+=" maxfail ${MAXRETRIES}"