diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-03-13 21:07:46 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-03-13 21:07:46 +0000 |
commit | 5828db6d2dd0f1a405f9140373c37e07395466b6 (patch) | |
tree | 7e0a3309adc7623628e61aad414f5aa0fa13b3a1 /usr.sbin/ppp/auth.c | |
parent | a611cad61ddd580230399f0ef61f637a208345fb (diff) | |
download | src-5828db6d2dd0f1a405f9140373c37e07395466b6.tar.gz src-5828db6d2dd0f1a405f9140373c37e07395466b6.zip |
Move the IPCP into struct bundle.
Notes
Notes:
svn path=/cvs2svn/branches/MP/; revision=34557
Diffstat (limited to 'usr.sbin/ppp/auth.c')
-rw-r--r-- | usr.sbin/ppp/auth.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c index fa4f7a68f71f..92d67939cf52 100644 --- a/usr.sbin/ppp/auth.c +++ b/usr.sbin/ppp/auth.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: auth.c,v 1.27.2.11 1998/03/09 19:25:33 brian Exp $ + * $Id: auth.c,v 1.27.2.12 1998/03/13 00:43:51 brian Exp $ * * TODO: * o Implement check against with registered IP addresses. @@ -53,6 +53,7 @@ #include "physical.h" #include "chat.h" #include "lcpproto.h" +#include "bundle.h" const char * Auth2Nam(u_short auth) @@ -169,7 +170,7 @@ AuthValidate(struct bundle *bundle, const char *fname, const char *system, if (n > 2 && !UseHisaddr(bundle, vector[2], 1)) return (0); /* XXX This should be deferred - we may join an existing bundle ! */ - ipcp_Setup(&IpcpInfo); + ipcp_Setup(&bundle->ncp.ipcp); if (n > 3) SetLabel(vector[3]); return 1; /* Valid */ @@ -214,11 +215,12 @@ AuthGetSecret(struct bundle *bundle, const char *fname, const char *system, continue; if (strlen(vector[0]) == len && strncmp(vector[0], system, len) == 0) { if (setaddr) - memset(&IpcpInfo.cfg.peer_range, '\0', sizeof IpcpInfo.cfg.peer_range); + memset(&bundle->ncp.ipcp.cfg.peer_range, '\0', + sizeof bundle->ncp.ipcp.cfg.peer_range); if (n > 2 && setaddr) if (UseHisaddr(bundle, vector[2], 1)) /* XXX This should be deferred - we may join an existing bundle ! */ - ipcp_Setup(&IpcpInfo); + ipcp_Setup(&bundle->ncp.ipcp); else return NULL; if (n > 3) |