mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1966,6 +1966,8 @@ handle_event_nt(void *dat, void *arg)
|
|||||||
cb_event(EVENT_PORT_ALARM, &stack->bc[0], glob_mgr->user_data);
|
cb_event(EVENT_PORT_ALARM, &stack->bc[0], glob_mgr->user_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* when we get the L2 UP, the L1 is UP definitely too*/
|
||||||
|
stack->l1link = 1;
|
||||||
stack->l2link = 1;
|
stack->l2link = 1;
|
||||||
stack->l2upcnt=0;
|
stack->l2upcnt=0;
|
||||||
|
|
||||||
@@ -2812,6 +2814,9 @@ int handle_mgmt(msg_t *msg)
|
|||||||
|
|
||||||
case SSTATUS_L2_ESTABLISHED:
|
case SSTATUS_L2_ESTABLISHED:
|
||||||
cb_log(3, stack->port, "MGMT: SSTATUS: L2_ESTABLISH \n");
|
cb_log(3, stack->port, "MGMT: SSTATUS: L2_ESTABLISH \n");
|
||||||
|
|
||||||
|
/*when the L2 goes UP, L1 needs to be UP too*/
|
||||||
|
stack->l1link=1;
|
||||||
stack->l2link=1;
|
stack->l2link=1;
|
||||||
if ( !stack->ptp && !stack->nt )
|
if ( !stack->ptp && !stack->nt )
|
||||||
stack->l1link=2;
|
stack->l1link=2;
|
||||||
|
|||||||
Reference in New Issue
Block a user