/[lwip]/lwip/src/netif/ppp/pap.c
ViewVC logotype

Diff of /lwip/src/netif/ppp/pap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jani, Tue May 27 14:37:56 2003 UTC revision 1.1.6.1 by jani, Wed Sep 10 18:10:15 2003 UTC
# Line 216  static void upap_timeout(void *arg) Line 216  static void upap_timeout(void *arg)
216                    
217          if (u->us_transmits >= u->us_maxtransmits) {          if (u->us_transmits >= u->us_maxtransmits) {
218                  /* give up in disgust */                  /* give up in disgust */
219                  ppp_trace(LOG_ERR, "No response to PAP authenticate-requests\n");                  UPAPDEBUG((LOG_ERR, "No response to PAP authenticate-requests\n"));
220                  u->us_clientstate = UPAPCS_BADAUTH;                  u->us_clientstate = UPAPCS_BADAUTH;
221                  auth_withpeer_fail(u->us_unit, PPP_PAP);                  auth_withpeer_fail(u->us_unit, PPP_PAP);
222                  return;                  return;
# Line 299  static void upap_protrej(int unit) Line 299  static void upap_protrej(int unit)
299          upap_state *u = &upap[unit];          upap_state *u = &upap[unit];
300                    
301          if (u->us_clientstate == UPAPCS_AUTHREQ) {          if (u->us_clientstate == UPAPCS_AUTHREQ) {
302                  ppp_trace(LOG_ERR, "PAP authentication failed due to protocol-reject\n");                  UPAPDEBUG((LOG_ERR, "PAP authentication failed due to protocol-reject\n"));
303                  auth_withpeer_fail(unit, PPP_PAP);                  auth_withpeer_fail(unit, PPP_PAP);
304          }          }
305          if (u->us_serverstate == UPAPSS_LISTEN) {          if (u->us_serverstate == UPAPSS_LISTEN) {
306                  ppp_trace(LOG_ERR, "PAP authentication of peer failed (protocol-reject)\n");                  UPAPDEBUG((LOG_ERR, "PAP authentication of peer failed (protocol-reject)\n"));
307                  auth_peer_fail(unit, PPP_PAP);                  auth_peer_fail(unit, PPP_PAP);
308          }          }
309          upap_lowerdown(unit);          upap_lowerdown(unit);
# Line 518  static void upap_rauthnak( Line 518  static void upap_rauthnak(
518                    
519          u->us_clientstate = UPAPCS_BADAUTH;          u->us_clientstate = UPAPCS_BADAUTH;
520                    
521          ppp_trace(LOG_ERR, "PAP authentication failed\n");          UPAPDEBUG((LOG_ERR, "PAP authentication failed\n"));
522          auth_withpeer_fail(u->us_unit, PPP_PAP);          auth_withpeer_fail(u->us_unit, PPP_PAP);
523  }  }
524    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.6.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26