summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/os.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-06-01 01:13:04 +0000
committerbrian <brian@FreeBSD.org>1997-06-01 01:13:04 +0000
commit0e779533082753004e1e3529858c07205320d59e (patch)
tree7b1245c42d5ae5109b2a350b44a59a19e8c5599b /usr.sbin/ppp/os.c
parenta7842e1d2874acd07105c22a85f8881dad6c596c (diff)
downloadFreeBSD-src-0e779533082753004e1e3529858c07205320d59e.zip
FreeBSD-src-0e779533082753004e1e3529858c07205320d59e.tar.gz
Implement "set mtu" command to allow the client to
reduce the interface mtu. Allow max mru spec of 16k. Add "show m[rt]u" ability.
Diffstat (limited to 'usr.sbin/ppp/os.c')
-rw-r--r--usr.sbin/ppp/os.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/os.c b/usr.sbin/ppp/os.c
index c1a8962..c5072b2 100644
--- a/usr.sbin/ppp/os.c
+++ b/usr.sbin/ppp/os.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: os.c,v 1.18 1997/05/24 17:32:41 brian Exp $
+ * $Id: os.c,v 1.19 1997/05/26 00:44:08 brian Exp $
*
*/
#include "fsm.h"
@@ -263,6 +263,8 @@ int type, mtu, speed;
info.type = type;
info.mtu = mtu;
+ if (VarPrefMTU != 0 && VarPrefMTU < mtu)
+ info.mtu = VarPrefMTU;
info.baudrate = speed;
if (ioctl(tun_out, TUNSIFINFO, &info) < 0)
perror("TUNSIFINFO");
OpenPOWER on IntegriCloud