diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-04-03 19:24:49 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-04-03 19:24:49 +0000 |
commit | 92f4ff1ccdbdf822fdacb5df1857e120610162de (patch) | |
tree | 939c1c4baaec37b7dae471f9ac442d89a9d01aba /usr.sbin/ppp/chat.c | |
parent | 4df39d1c8f30f7552020cad25be60a3b38091ff4 (diff) | |
download | src-test2-92f4ff1ccdbdf822fdacb5df1857e120610162de.tar.gz src-test2-92f4ff1ccdbdf822fdacb5df1857e120610162de.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r-- | usr.sbin/ppp/chat.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 1bac06691329..41d2ede0ed66 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -23,11 +23,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: chat.c,v 1.44.2.17 1998/03/20 19:47:47 brian Exp $ + * $Id: chat.c,v 1.44.2.18 1998/04/03 19:21:11 brian Exp $ */ #include <sys/param.h> #include <netinet/in.h> +#include <netinet/in_systm.h> +#include <netinet/ip.h> #include <ctype.h> #include <errno.h> @@ -62,6 +64,16 @@ #include "physical.h" #include "chat.h" #include "prompt.h" +#include "mp.h" +#include "auth.h" +#include "pap.h" +#include "chap.h" +#include "slcompress.h" +#include "iplist.h" +#include "ipcp.h" +#include "filter.h" +#include "datalink.h" +#include "bundle.h" #define BUFLEFT(c) (sizeof (c)->buf - ((c)->bufend - (c)->buf)) #define issep(c) ((c) == '\t' || (c) == ' ') @@ -621,7 +633,7 @@ MakeArgs(char *script, char **pvect, int maxargs) * \t Tab character * \U Auth User */ -char * +static char * ExpandString(struct chat *c, const char *str, char *result, int reslen, int sendmode) { @@ -662,7 +674,7 @@ ExpandString(struct chat *c, const char *str, char *result, int reslen, reslen--; break; case 'P': - strncpy(result, VarAuthKey, reslen); + strncpy(result, c->physical->dl->bundle->cfg.auth.key, reslen); reslen -= strlen(result); result += strlen(result); break; @@ -672,7 +684,7 @@ ExpandString(struct chat *c, const char *str, char *result, int reslen, result += strlen(result); break; case 'U': - strncpy(result, VarAuthName, reslen); + strncpy(result, c->physical->dl->bundle->cfg.auth.name, reslen); reslen -= strlen(result); result += strlen(result); break; |