From 6fc784e3c8d35dc952f0e92adc2bf29327a8a4b1 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 25 Feb 2018 23:31:37 +0100 Subject: L1CTL: Add message segmentation helper via getMsgLen() As L1CTL is using a stream socket, we need to give the UNIX_DOMAIN port some clue as to where our L1CTL message boundaries are in the stream. This requires a patched UNIX_DOMAIN_SOCKETasp test port with the following commit applied: commit 655cb4ab2ac006b3a73d1b679c83081d9743410a Author: Harald Welte Date: Sun Feb 25 23:25:46 2018 +0100 Add "getMsgLen" function similar to IPL4asp_PT Change-Id: Iab33f57cb4311180e521a76307a552d16287b062 --- lapdm/gen_links.sh | 5 ++++- lapdm/regen_makefile.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'lapdm') diff --git a/lapdm/gen_links.sh b/lapdm/gen_links.sh index 93655f04..5ecc45c9 100755 --- a/lapdm/gen_links.sh +++ b/lapdm/gen_links.sh @@ -15,8 +15,11 @@ DIR=$BASEDIR/titan.TestPorts.UNIX_DOMAIN_SOCKETasp/src FILES="UD_PT.cc UD_PT.hh UD_PortType.ttcn UD_Types.ttcn" gen_links $DIR $FILES +DIR=$BASEDIR/titan.TestPorts.Common_Components.Socket-API/src +FILES="Socket_API_Definitions.ttcn" +gen_links $DIR $FILES DIR=../library -FILES="General_Types.ttcn GSM_Types.ttcn GSM_RR_Types.ttcn RLCMAC_CSN1_Types.ttcn Osmocom_Types.ttcn L1CTL_PortType.ttcn L1CTL_Types.ttcn LAPDm_RAW_PT.ttcn LAPDm_Types.ttcn RLCMAC_Types.ttcn RLCMAC_EncDec.cc" +FILES="General_Types.ttcn GSM_Types.ttcn GSM_RR_Types.ttcn RLCMAC_CSN1_Types.ttcn Osmocom_Types.ttcn L1CTL_PortType.ttcn L1CTL_PortType_CtrlFunct.ttcn L1CTL_PortType_CtrlFunctDef.cc L1CTL_Types.ttcn LAPDm_RAW_PT.ttcn LAPDm_Types.ttcn RLCMAC_Types.ttcn RLCMAC_EncDec.cc" gen_links $DIR $FILES diff --git a/lapdm/regen_makefile.sh b/lapdm/regen_makefile.sh index c3601c80..bb02fe8c 100755 --- a/lapdm/regen_makefile.sh +++ b/lapdm/regen_makefile.sh @@ -1,5 +1,5 @@ #!/bin/sh -FILES="*.ttcn UD_PT.cc UD_PT.hh RLCMAC_EncDec.cc" +FILES="*.ttcn UD_PT.cc UD_PT.hh RLCMAC_EncDec.cc L1CTL_PortType_CtrlFunctDef.cc" ../regen-makefile.sh L1CTL_Test.ttcn $FILES -- cgit v1.2.3