diff options
author | brian <brian@FreeBSD.org> | 1999-02-06 02:54:47 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-02-06 02:54:47 +0000 |
commit | 4435d086fa4374c8a6b2091bf4acccf59f7db3d0 (patch) | |
tree | d1336bbacc5640555b58b1ebfb93986ba3586343 /usr.sbin/ppp/hdlc.c | |
parent | bd140b22548c2a839c934b79c6dab11f47d412d3 (diff) | |
download | FreeBSD-src-4435d086fa4374c8a6b2091bf4acccf59f7db3d0.zip FreeBSD-src-4435d086fa4374c8a6b2091bf4acccf59f7db3d0.tar.gz |
Decouple pap & chap output routines from the corresponding
input routines and take advantage of the new init/continue
interface in libradius. This allows a timely response on
other links in an MP setup while RADIUS requests are in
progress as well as the ability to handle other data from
the peer in parallel. It should also make the future addition
of PAM support trivial.
While I'm in there, validate pap & chap header IDs if
``idcheck'' is enabled (the default) for other FSM packet
types.
NOTE: This involved integrating the generation of chap
challenges and the validation of chap responses
(and commenting what's going on in those routines).
I currently have no way of testing ppps ability
to respond to M$Chap CHALLENGEs correctly, so if
someone could do the honours, it'd be much
appreciated (it *looks* ok!).
Sponsored by: Internet Business Solutions Ltd., Switzerland
Diffstat (limited to 'usr.sbin/ppp/hdlc.c')
-rw-r--r-- | usr.sbin/ppp/hdlc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c index ce5db46..bca157d 100644 --- a/usr.sbin/ppp/hdlc.c +++ b/usr.sbin/ppp/hdlc.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: hdlc.c,v 1.36 1998/08/07 18:42:48 brian Exp $ + * $Id: hdlc.c,v 1.37 1999/01/28 01:56:32 brian Exp $ * * TODO: */ @@ -393,7 +393,7 @@ hdlc_DecodePacket(struct bundle *bundle, u_short proto, struct mbuf * bp, break; case PROTO_PAP: if (p) - pap_Input(bundle, bp, p); + pap_Input(p, bp); else { log_Printf(LogERROR, "DecodePacket: PAP: Not a physical link !\n"); mbuf_Free(bp); @@ -418,7 +418,7 @@ hdlc_DecodePacket(struct bundle *bundle, u_short proto, struct mbuf * bp, break; case PROTO_CHAP: if (p) - chap_Input(bundle, bp, p); + chap_Input(p, bp); else { log_Printf(LogERROR, "DecodePacket: CHAP: Not a physical link !\n"); mbuf_Free(bp); |