Date: Wed, 7 Feb 2001 22:56:27 +0100 (MET) From: Martin Husemann <martin@duskware.de> To: Ingolf Steinbach <ingolf@jellonet.de> Cc: freebsd-isdn@freebsd.org Subject: Re: isdnd.rc: ppp-send-* not working correctly Message-ID: <200102072156.f17LuRq01190@night-porter.duskware.de> In-Reply-To: <20010207223336.A1255@maus.local.net> "from Ingolf Steinbach at Feb 7, 2001 10:33:36 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
--ELM981582987-660-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII > This happens on NetBSD-1.5/i386 with i4b-00.96.0. Has > anyone else seen this? This has been fixed in the version inside NetBSD (hope I did send Helmuth a copy, but guess I did so). You can either go to -current (duck, run for cover) or apply the appended patch. Martin --ELM981582987-660-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: attachment; filename=patch Content-Description: rc_config.c.diff Index: rc_config.c =================================================================== RCS file: /cvsroot/basesrc/usr.sbin/isdn/isdnd/rc_config.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -u -r1.1 -r1.2 --- rc_config.c 2001/01/06 13:00:26 1.1 +++ rc_config.c 2001/01/07 09:00:49 1.2 @@ -27,7 +27,7 @@ * i4b daemon - config file processing * ----------------------------------- * - * $Id: rc_config.c,v 1.1 2001/01/06 13:00:26 martin Exp $ + * $Id: rc_config.c,v 1.2 2001/01/07 09:00:49 martin Exp $ * * $FreeBSD$ * @@ -305,32 +305,32 @@ { 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; --ELM981582987-660-0_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102072156.f17LuRq01190>