From 89b014431eb1bebcad41462844e088e9773509fc Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 13 Apr 2016 13:21:07 +0300 Subject: ppp: removed mtu/mru size warnings --- accel-pppd/ppp/lcp_opt_mru.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'accel-pppd/ppp/lcp_opt_mru.c') diff --git a/accel-pppd/ppp/lcp_opt_mru.c b/accel-pppd/ppp/lcp_opt_mru.c index 5f19bb21..486ade7b 100644 --- a/accel-pppd/ppp/lcp_opt_mru.c +++ b/accel-pppd/ppp/lcp_opt_mru.c @@ -173,20 +173,10 @@ static void load_config(void) if (opt && atoi(opt) > 0) conf_max_mtu = atoi(opt); - if (conf_min_mtu > conf_mru) { + if (conf_mru && conf_min_mtu > conf_mru) { log_emerg("min-mtu cann't be greater then mtu/mru\n"); conf_min_mtu = conf_mru; } - - if (conf_min_mtu > 1500) { - log_emerg("min-mtu cann't be greater then 1500\n"); - conf_min_mtu = 1500; - } - - if (conf_mru > 1500 || conf_mtu > 1500) { - log_emerg("mtu/mru cann't be greater then 1500\n"); - conf_mru = 1500; - } } static void mru_opt_init() -- cgit v1.2.3