diff options
Diffstat (limited to 'accel-pppd/ppp/lcp_opt_mru.c')
-rw-r--r-- | accel-pppd/ppp/lcp_opt_mru.c | 12 |
1 files changed, 1 insertions, 11 deletions
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() |