diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/BSSGP_Emulation.ttcn | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/library/BSSGP_Emulation.ttcn b/library/BSSGP_Emulation.ttcn index ca97ccda..c650fd55 100644 --- a/library/BSSGP_Emulation.ttcn +++ b/library/BSSGP_Emulation.ttcn @@ -136,6 +136,14 @@ type record LLC_Entity { uint9_t n_u_rx_last optional }; +function f_llc_create(boolean sgsn_role := false) return LLC_Entities { + var LLC_Entities llc; + for (var integer i := 0; i < 16; i := i+1) { + llc[i] := valueof(t_LLC_init(sgsn_role)); + } + return llc; +} + private template LLC_Entity t_LLC_init(boolean sgsn_role := false) := { sgsn_role := sgsn_role, n_u_tx_next := 0, @@ -576,13 +584,13 @@ altstep as_unblocked() runs on BSSGP_CT { } } -private function f_llc_get_n_u_tx(inout LLC_Entity llc) return uint9_t { +function f_llc_get_n_u_tx(inout LLC_Entity llc) return uint9_t { var uint9_t ret := llc.n_u_tx_next; llc.n_u_tx_next := llc.n_u_tx_next + 1; return ret; } -private function f_llc_sapi_by_l3_mo(PDU_L3_MS_SGSN l3_mo) return BIT4 { +function f_llc_sapi_by_l3_mo(PDU_L3_MS_SGSN l3_mo) return BIT4 { if (ischosen(l3_mo.msgs.gprs_mm)) { return c_LLC_SAPI_LLGMM; } else if (ischosen(l3_mo.msgs.gprs_sm)) { |