IPCP and LCP structures moved to ppp_pcb

This commit is contained in:
Sylvain Rochet
2012-06-16 02:13:50 +02:00
parent 19238a910c
commit 4b7e3af77c
9 changed files with 244 additions and 298 deletions

View File

@@ -731,7 +731,7 @@ void link_established(ppp_pcb *pcb) {
#if PPP_SERVER
lcp_options *go = &lcp_gotoptions[pcb->unit];
#endif /* #if PPP_SERVER */
lcp_options *ho = &lcp_hisoptions[pcb->unit];
lcp_options *ho = &pcb->lcp_hisoptions;
int i;
struct protent *protp;
@@ -1444,8 +1444,8 @@ auth_check_options()
* to use for authenticating ourselves and/or the peer.
*/
void auth_reset(ppp_pcb *pcb) {
lcp_options *go = &lcp_gotoptions[pcb->unit];
lcp_options *ao = &lcp_allowoptions[pcb->unit];
lcp_options *go = &pcb->lcp_gotoptions;
lcp_options *ao = &pcb->lcp_allowoptions;
if( pcb->settings.passwd[0] ) {