summaryrefslogtreecommitdiffstats
path: root/usr.sbin/i4b/isdnd/fsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/i4b/isdnd/fsm.c')
-rw-r--r--usr.sbin/i4b/isdnd/fsm.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/usr.sbin/i4b/isdnd/fsm.c b/usr.sbin/i4b/isdnd/fsm.c
index e555fa8..b87b17e 100644
--- a/usr.sbin/i4b/isdnd/fsm.c
+++ b/usr.sbin/i4b/isdnd/fsm.c
@@ -29,7 +29,7 @@
*
* $FreeBSD$
*
- * last edit-date: [Tue Mar 26 14:35:56 2002]
+ * last edit-date: [Sat May 13 13:06:40 2006]
*
*---------------------------------------------------------------------------*/
@@ -90,7 +90,7 @@ static char *event_text[N_EVENTS] = {
static void
F_ill(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_ill: Illegal State reached !!!")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_ill: Illegal State reached !!!")));
}
/*---------------------------------------------------------------------------*
@@ -107,7 +107,7 @@ F_NcNa(cfg_entry_t *cep)
static void
F_MCI(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_MCI: tx SETUP_RESP_ACCEPT")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_MCI: tx SETUP_RESP_ACCEPT")));
sendm_connect_resp(cep, cep->cdid, SETUP_RESP_ACCEPT, 0);
start_timer(cep, TIMEOUT_CONNECT_ACTIVE);
}
@@ -118,7 +118,7 @@ F_MCI(cfg_entry_t *cep)
static void
F_MCAI(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_MCAI: Connection active!")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_MCAI: Connection active!")));
stop_timer(cep);
@@ -135,7 +135,7 @@ F_MCAI(cfg_entry_t *cep)
static void
F_TIMO(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_TIMO: Timout occured!")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_TIMO: Timout occured!")));
sendm_disconnect_req(cep, (CAUSET_I4B << 8) | CAUSE_I4B_NORMAL);
cep->cdid = CDID_UNUSED;
}
@@ -146,7 +146,7 @@ F_TIMO(cfg_entry_t *cep)
static void
F_IDIS(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_IDIS: disconnect indication")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_IDIS: disconnect indication")));
cep->cdid = CDID_UNUSED;
}
@@ -156,7 +156,7 @@ F_IDIS(cfg_entry_t *cep)
static void
F_DRQ(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_DRQ: local disconnect request")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DRQ: local disconnect request")));
sendm_disconnect_req(cep, (CAUSET_I4B << 8) | CAUSE_I4B_NORMAL);
}
@@ -166,7 +166,7 @@ F_DRQ(cfg_entry_t *cep)
static void
F_MDI(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_MDI: disconnect indication, local disconnected")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_MDI: disconnect indication, local disconnected")));
cep->cdid = CDID_UNUSED;
}
@@ -176,7 +176,7 @@ F_MDI(cfg_entry_t *cep)
static void
F_DIAL(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_DIAL: local dial out request")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DIAL: local dial out request")));
if(cep->dialrandincr)
cep->randomtime = (random() & RANDOM_MASK) + cep->recoverytime;
@@ -194,7 +194,7 @@ F_DIAL(cfg_entry_t *cep)
static void
F_DOK(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_DOK: dial out ok")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DOK: dial out ok")));
select_this_dialno(cep);
}
@@ -214,7 +214,7 @@ F_DFL(cfg_entry_t *cep)
{
/* inside normal retry cycle */
- DBGL(DL_STATE, (log(LL_DBG, "F_DFL: dial fail, dial retry")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DFL: dial fail, dial retry")));
select_next_dialno(cep);
cep->cdid = CDID_RESERVED;
cep->state = ST_DIALRTMRCHD;
@@ -225,7 +225,7 @@ F_DFL(cfg_entry_t *cep)
if(!cep->usedown)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_DFL: dial retry fail, dial retries exhausted")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DFL: dial retry fail, dial retries exhausted")));
dialresponse(cep, DSTAT_TFAIL);
cep->cdid = CDID_UNUSED;
cep->dial_count = 0;
@@ -240,7 +240,7 @@ F_DFL(cfg_entry_t *cep)
if(cep->down_retry_count > cep->downtries)
{
/* set interface down */
- DBGL(DL_STATE, (log(LL_DBG, "F_DFL: dial retry cycle fail, setting interface down!")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DFL: dial retry cycle fail, setting interface down!")));
dialresponse(cep, DSTAT_PFAIL);
if_down(cep);
cep->state = ST_DOWN;
@@ -248,7 +248,7 @@ F_DFL(cfg_entry_t *cep)
else
{
/* enter new dial retry cycle */
- DBGL(DL_STATE, (log(LL_DBG, "F_DFL: dial retry cycle fail, enter new retry cycle!")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DFL: dial retry cycle fail, enter new retry cycle!")));
select_next_dialno(cep);
cep->state = ST_DIALRTMRCHD;
}
@@ -258,7 +258,7 @@ F_DFL(cfg_entry_t *cep)
}
else /* cdp->dialouttype == DIALOUT_CALLEDBACK */
{
- DBGL(DL_STATE, (log(LL_DBG, "F_DFL: calledback dial done, wait for incoming call")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_DFL: calledback dial done, wait for incoming call")));
cep->cdid = CDID_RESERVED;
cep->state = ST_PCB_WAITCALL;
}
@@ -270,7 +270,7 @@ F_DFL(cfg_entry_t *cep)
static void
F_ACBW(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_ACBW: local callback, wait callback recovery time")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_ACBW: local callback, wait callback recovery time")));
if(cep->dialrandincr)
cep->randomtime = (random() & RANDOM_MASK) + cep->recoverytime;
@@ -292,7 +292,7 @@ F_ACBR(cfg_entry_t *cep)
{
/* inside normal retry cycle */
- DBGL(DL_STATE, (log(LL_DBG, "F_ACBR: dial fail, dial retry")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_ACBR: dial fail, dial retry")));
select_next_dialno(cep);
cep->cdid = CDID_RESERVED;
cep->state = ST_ACB_DIALFAIL;
@@ -303,7 +303,7 @@ F_ACBR(cfg_entry_t *cep)
if(!cep->usedown)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_ACBR: dial retry fail, dial retries exhausted")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_ACBR: dial retry fail, dial retries exhausted")));
dialresponse(cep, DSTAT_TFAIL);
cep->cdid = CDID_UNUSED;
cep->dial_count = 0;
@@ -318,7 +318,7 @@ F_ACBR(cfg_entry_t *cep)
if(cep->down_retry_count > cep->downtries)
{
/* set interface down */
- DBGL(DL_STATE, (log(LL_DBG, "F_ACBR: dial retry cycle fail, setting interface down!")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_ACBR: dial retry cycle fail, setting interface down!")));
dialresponse(cep, DSTAT_PFAIL);
if_down(cep);
cep->state = ST_DOWN;
@@ -326,7 +326,7 @@ F_ACBR(cfg_entry_t *cep)
else
{
/* enter new dial retry cycle */
- DBGL(DL_STATE, (log(LL_DBG, "F_ACBR: dial retry cycle fail, enter new retry cycle!")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_ACBR: dial retry cycle fail, enter new retry cycle!")));
select_next_dialno(cep);
cep->state = ST_ACB_DIALFAIL;
}
@@ -341,7 +341,7 @@ F_ACBR(cfg_entry_t *cep)
static void
F_ALRT(cfg_entry_t *cep)
{
- DBGL(DL_STATE, (log(LL_DBG, "F_ALRT: local send alert request")));
+ DBGL(DL_STATE, (llog(LL_DBG, "F_ALRT: local send alert request")));
cep->alert_time = cep->alert;
@@ -385,7 +385,7 @@ next_state(cfg_entry_t *cep, int event)
if(event > N_EVENTS)
{
- log(LL_ERR, "next_state: event > N_EVENTS");
+ llog(LL_ERR, "next_state: event > N_EVENTS");
error_exit(1, "next_state: event > N_EVENTS");
}
@@ -393,7 +393,7 @@ next_state(cfg_entry_t *cep, int event)
if(currstate > N_STATES)
{
- log(LL_ERR, "next_state: currstate > N_STATES");
+ llog(LL_ERR, "next_state: currstate > N_STATES");
error_exit(1, "next_state: currstate > N_STATES");
}
@@ -401,13 +401,13 @@ next_state(cfg_entry_t *cep, int event)
if(newstate > N_STATES)
{
- log(LL_ERR, "next_state: newstate > N_STATES");
+ llog(LL_ERR, "next_state: newstate > N_STATES");
error_exit(1, "next_state: newstate > N_STATES");
}
if(newstate != ST_SUSE)
{
- DBGL(DL_STATE, (log(LL_DBG, "FSM event [%s]: [%s => %s]", event_text[event],
+ DBGL(DL_STATE, (llog(LL_DBG, "FSM event [%s]: [%s => %s]", event_text[event],
state_text[currstate],
state_text[newstate])));
}
@@ -416,7 +416,7 @@ next_state(cfg_entry_t *cep, int event)
if(newstate == ST_ILL)
{
- log(LL_ERR, "FSM ILLEGAL STATE, event=%s: oldstate=%s => newstate=%s]",
+ llog(LL_ERR, "FSM ILLEGAL STATE, event=%s: oldstate=%s => newstate=%s]",
event_text[event],
state_text[currstate],
state_text[newstate]);
@@ -424,7 +424,7 @@ next_state(cfg_entry_t *cep, int event)
if(newstate == ST_SUSE)
{
- DBGL(DL_STATE, (log(LL_DBG, "FSM (SUSE) event [%s]: [%s => %s]", event_text[event],
+ DBGL(DL_STATE, (llog(LL_DBG, "FSM (SUSE) event [%s]: [%s => %s]", event_text[event],
state_text[currstate],
state_text[cep->state])));
}
OpenPOWER on IntegriCloud