summaryrefslogtreecommitdiffstats
path: root/c/src/libnetworking/pppd/auth.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-04-10 16:20:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-04-10 16:20:38 +0000
commit48cdb95aa2444a386a911be1a8251483d79a9935 (patch)
treeb0732fa7f30d87e972ad1a587235cd8789fcde7b /c/src/libnetworking/pppd/auth.c
parent2003-04-10 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-48cdb95aa2444a386a911be1a8251483d79a9935.tar.bz2
2003-04-10 Joel Sherrill <joel@OARcorp.com>
PR 371/pppd * pppd/auth.c, pppd/chat.c, pppd/demand.c, pppd/fsm.c, pppd/lcp.c, pppd/options.c, pppd/pppd.h, pppd/rtemsmain.c, pppd/rtemspppd.c: Change many symbols to static. There are still global symbols in rtemspppd.h which might need to be changed or converted into member of a structure which is dereferenced with a pointer that is managed as a per task variable. But this patch should avoid many conflicts.
Diffstat (limited to 'c/src/libnetworking/pppd/auth.c')
-rw-r--r--c/src/libnetworking/pppd/auth.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/c/src/libnetworking/pppd/auth.c b/c/src/libnetworking/pppd/auth.c
index 418ad7d58e..a92654a650 100644
--- a/c/src/libnetworking/pppd/auth.c
+++ b/c/src/libnetworking/pppd/auth.c
@@ -249,7 +249,7 @@ void
link_terminated(unit)
int unit;
{
- if (phase == PHASE_DEAD)
+ if (pppd_phase == PHASE_DEAD)
return;
if (pap_logout_hook) {
pap_logout_hook();
@@ -283,7 +283,7 @@ link_down(unit)
}
num_np_open = 0;
num_np_up = 0;
- if (phase != PHASE_DEAD)
+ if (pppd_phase != PHASE_DEAD)
new_phase(PHASE_TERMINATE);
}
@@ -323,7 +323,7 @@ link_established(unit)
} else if (!wo->neg_upap || !null_login(unit)) {
warn("peer refused to authenticate: terminating link");
lcp_close(unit, "peer refused to authenticate");
- status = EXIT_PEER_AUTH_FAILED;
+ pppd_status = EXIT_PEER_AUTH_FAILED;
return;
}
}
@@ -425,7 +425,7 @@ auth_peer_fail(unit, protocol)
* Authentication failure: take the link down
*/
lcp_close(unit, "Authentication failed");
- status = EXIT_PEER_AUTH_FAILED;
+ pppd_status = EXIT_PEER_AUTH_FAILED;
}
/*
@@ -483,7 +483,7 @@ auth_withpeer_fail(unit, protocol)
* authentication secrets.
*/
lcp_close(unit, "Failed to authenticate ourselves to peer");
- status = EXIT_AUTH_TOPEER_FAILED;
+ pppd_status = EXIT_AUTH_TOPEER_FAILED;
}
/*
@@ -531,7 +531,7 @@ np_up(unit, proto)
/*
* At this point we consider that the link has come up successfully.
*/
- status = EXIT_OK;
+ pppd_status = EXIT_OK;
unsuccess = 0;
new_phase(PHASE_RUNNING);
@@ -603,7 +603,7 @@ check_idle(arg)
notice("Terminating connection due to lack of activity.");
lcp_close(0, "Link inactive");
need_holdoff = 0;
- status = EXIT_IDLE_TIMEOUT;
+ pppd_status = EXIT_IDLE_TIMEOUT;
} else {
TIMEOUT(check_idle, NULL, tlim);
}
@@ -618,7 +618,7 @@ connect_time_expired(arg)
{
info("Connect time expired");
lcp_close(0, "Connect time expired"); /* Close connection */
- status = EXIT_CONNECT_TIME;
+ pppd_status = EXIT_CONNECT_TIME;
}
/*