diff options
author | hm <hm@FreeBSD.org> | 2001-01-10 13:49:11 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2001-01-10 13:49:11 +0000 |
commit | 5f7b4f840dfaf841087b0a3b4550f5c80ecdad92 (patch) | |
tree | ae3b9751c8cd8954082ae36a220372f06d442b54 /usr.sbin/i4b | |
parent | c2138298a57d2867e2620e5a7122b0349a67b69b (diff) | |
download | FreeBSD-src-5f7b4f840dfaf841087b0a3b4550f5c80ecdad92.zip FreeBSD-src-5f7b4f840dfaf841087b0a3b4550f5c80ecdad92.tar.gz |
Bugfix to make configuration of isp/isppp interfaces by using isdnd.rc work
Submitted by: bad@k.bsd.de (Christoph Badura)
Diffstat (limited to 'usr.sbin/i4b')
-rw-r--r-- | usr.sbin/i4b/isdnd/rc_config.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/usr.sbin/i4b/isdnd/rc_config.c b/usr.sbin/i4b/isdnd/rc_config.c index 4a70a4a..4a4cd71 100644 --- a/usr.sbin/i4b/isdnd/rc_config.c +++ b/usr.sbin/i4b/isdnd/rc_config.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2001 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,11 +27,9 @@ * i4b daemon - config file processing * ----------------------------------- * - * $Id: rc_config.c,v 1.60 2000/10/09 11:17:07 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Tue Oct 31 10:57:07 2000] + * last edit-date: [Wed Jan 10 14:46:58 2001] * *---------------------------------------------------------------------------*/ @@ -304,32 +302,32 @@ set_isppp_auth(int entry) { if(cep->ppp_expect_auth == AUTH_NONE) { - spr.defs.myauth.proto = 0; + spr.defs.hisauth.proto = 0; } else if ((cep->ppp_expect_auth == AUTH_CHAP || cep->ppp_expect_auth == AUTH_PAP) && cep->ppp_expect_name[0] != 0 && cep->ppp_expect_password[0] != 0) { - spr.defs.myauth.proto = cep->ppp_expect_auth == AUTH_PAP ? PPP_PAP : PPP_CHAP; - strncpy(spr.defs.myauth.name, cep->ppp_expect_name, AUTHNAMELEN); - strncpy(spr.defs.myauth.secret, cep->ppp_expect_password, AUTHKEYLEN); + spr.defs.hisauth.proto = cep->ppp_expect_auth == AUTH_PAP ? PPP_PAP : PPP_CHAP; + strncpy(spr.defs.hisauth.name, cep->ppp_expect_name, AUTHNAMELEN); + strncpy(spr.defs.hisauth.secret, cep->ppp_expect_password, AUTHKEYLEN); } } if (cep->ppp_send_auth != AUTH_UNDEF) { if(cep->ppp_send_auth == AUTH_NONE) { - spr.defs.hisauth.proto = 0; + spr.defs.myauth.proto = 0; } else if ((cep->ppp_send_auth == AUTH_CHAP || cep->ppp_send_auth == AUTH_PAP) && cep->ppp_send_name[0] != 0 && cep->ppp_send_password[0] != 0) { - spr.defs.hisauth.proto = cep->ppp_send_auth == AUTH_PAP ? PPP_PAP : PPP_CHAP; - strncpy(spr.defs.hisauth.name, cep->ppp_send_name, AUTHNAMELEN); - strncpy(spr.defs.hisauth.secret, cep->ppp_send_password, AUTHKEYLEN); + spr.defs.myauth.proto = cep->ppp_send_auth == AUTH_PAP ? PPP_PAP : PPP_CHAP; + strncpy(spr.defs.myauth.name, cep->ppp_send_name, AUTHNAMELEN); + strncpy(spr.defs.myauth.secret, cep->ppp_send_password, AUTHKEYLEN); if(cep->ppp_auth_flags & AUTH_REQUIRED) spr.defs.hisauth.flags &= ~AUTHFLAG_NOCALLOUT; |