BSSGP_Emulation: Implement handling of BVC-UNBLOCK in SGSN role

Change-Id: I7c9cda916f6583613fbf3cdf31f3f08ceadf58d4
This commit is contained in:
Harald Welte 2020-11-24 23:13:01 +01:00
parent e130305aa5
commit ddfc6676d5
1 changed files with 6 additions and 0 deletions

View File

@ -977,6 +977,12 @@ private altstep as_ptp_blocked() runs on BSSGP_BVC_CT {
f_ptp_change_state(BVC_S_UNBLOCKED);
}
/* Inbound BVC-UNBLOCK from peer */
[g_sgsn_role] BVC.receive(tr_ptp_BnsUdInd(t_BVC_UNBLOCK(g_cfg.bvci), 0)) {
BVC.send(ts_ptp_BnsUdReq(t_BVC_UNBLOCK_ACK(g_cfg.bvci), 0, g_bvc_lsp));
f_ptp_change_state(BVC_S_UNBLOCKED);
}
/* RESET-ACK before T2 timeout: reset successful. In SGSN role, CellID must be present */
[g_T2.running and g_sgsn_role] BVC.receive(tr_ptp_BnsUdInd(tr_BVC_RESET_ACK(g_cfg.bvci, g_cfg.cell_id), 0)) -> value udi {
g_T2.stop;