Enabled MTU field on all PPPx connections.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 8 Dec 2010 17:53:34 +0000 (18:53 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 8 Dec 2010 17:53:34 +0000 (18:53 +0100)
Add MRU field.

config/rootfiles/core/44/filelists/files
html/cgi-bin/pppsetup.cgi
src/initscripts/init.d/networking/red

index c069ea0..de75056 100644 (file)
@@ -4,6 +4,7 @@ etc/rc.d/init.d/checkfstab
 etc/rc.d/init.d/firewall
 etc/rc.d/init.d/squid
 etc/rc.d/init.d/networking/dhcpcd.exe
+etc/rc.d/init.d/networking/red
 srv/web/ipfire/cgi-bin/extrahd.cgi
 srv/web/ipfire/cgi-bin/index.cgi
 srv/web/ipfire/cgi-bin/pakfire.cgi
@@ -11,6 +12,7 @@ srv/web/ipfire/cgi-bin/proxy.cgi
 srv/web/ipfire/cgi-bin/speed.cgi
 srv/web/ipfire/cgi-bin/vpnmain.cgi
 srv/web/ipfire/cgi-bin/ids.cgi
+srv/web/ipfire/cgi-bin/pppsetup.cgi
 srv/web/ipfire/html/images/urlfilter/copy.gif
 var/ipfire/general-functions.pl
 var/ipfire/graphs.pl
index fc28e70..0bfeabd 100644 (file)
@@ -773,14 +773,26 @@ print <<END
         <td colspan='2' width='50%'></td>
         <td width='25%'><input type='text' name='CONCENTRATORNAME' value='$pppsettings{'CONCENTRATORNAME'}' /></td>
 </tr>
+END
+;
+}
+
+print <<END
+<tr><td colspan='4' width='100%'><br></br></td></tr>
+<tr>
+        <td bgcolor='$color{'color20'}' colspan='4' width='100%'><b>MTU/MRU</b></td>
+</tr>
+<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>
+<tr>
+        <td width='25%'>MRU</td>
+        <td width='25%'><input type='text' name='MRU' value='$pppsettings{'MRU'}' /></td>
+</tr>
 END
 ;
-}
 
 print <<END
 <tr><td colspan='4' width='100%'><br></br></td></tr>
index 1940169..f29884b 100644 (file)
@@ -453,7 +453,7 @@ case "${1}" in
                        #
                        PPP_STD_OPTIONS="$PLUGOPTS $DNS defaultroute noipdefault noauth"
                        PPP_STD_OPTIONS+=" default-asyncmap hide-password nodetach mtu ${MTU}"
-                       PPP_STD_OPTIONS+=" mru ${MTU} noaccomp nodeflate nopcomp novj novjccomp"
+                       PPP_STD_OPTIONS+=" mru ${MRU} noaccomp nodeflate nopcomp novj novjccomp"
                        PPP_STD_OPTIONS+=" nobsdcomp user ${USERNAME} lcp-echo-interval 20"
                        PPP_STD_OPTIONS+=" lcp-echo-failure 3 ${AUTH}"