From 07cb87a90c3f9778d8cdc3d1baeca335ac0f4103 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 13 Sep 2020 18:38:02 +0200 Subject: BSSGP_Emulation: Fix build without BSSGP_EM_L3 Change-Id: Ic58e2d6bc37cb8fd8f0235b8497f674db7cfdd85 --- library/BSSGP_Emulation.ttcnpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp index 05a730b9..185fd82d 100644 --- a/library/BSSGP_Emulation.ttcnpp +++ b/library/BSSGP_Emulation.ttcnpp @@ -526,11 +526,14 @@ altstep as_blocked() runs on BSSGP_CT { } private function f_send_bssgp_dec(BssgpDecoded dec, BSSGP_Client_CT vc_conn, BSSGP_SP_PT pt := BSSGP_SP) runs on BSSGP_CT { +#ifdef BSSGP_EM_L3 if (ispresent(dec.l3_mt)) { pt.send(dec.l3_mt) to vc_conn; } else if (ispresent(dec.l3_mo)) { pt.send(dec.l3_mo) to vc_conn; - } else if (ispresent(dec.sndcp)) { + } else +#endif + if (ispresent(dec.sndcp)) { pt.send(dec.sndcp) to vc_conn; } else if (ispresent(dec.llc)) { pt.send(dec.llc) to vc_conn; -- cgit v1.2.3