PPP, CCP, added MPPE user configuration flags

This commit is contained in:
Sylvain Rochet
2015-04-19 02:17:43 +02:00
parent 4c0af0f79e
commit f94efab6c3
2 changed files with 14 additions and 2 deletions

View File

@@ -402,6 +402,14 @@ static void ccp_init(ppp_pcb *pcb) {
#if PREDICTOR_SUPPORT
ao->predictor_1 = 1;
#endif /* PREDICTOR_SUPPORT */
#if MPPE_SUPPORT
if (pcb->settings.require_mppe) {
wo->mppe = ao->mppe =
(pcb->settings.refuse_mppe_40 ? 0 : MPPE_OPT_40)
| (pcb->settings.refuse_mppe_128 ? 0 : MPPE_OPT_128);
}
#endif
}
/*