pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43383?usp=email )


Change subject: stp: Use SI in valid range when transmitting data
......................................................................

stp: Use SI in valid range when transmitting data

ITU Q.704 14.2.1 defines Service Indicator as being 4 bits, hence valid
range of the field is 0..0x0F. M3UA encodes it inside a full octet
"justified to the least significant bit.  Unused bits are coded `0'."

Make sure we send a value inside range, since newer libosmo-sigtran will
validate the received m3ua field.
Use SI=0010 "spare" since we are not really sending any meaningful data.

Change-Id: I1d0553b0ed57b9283dd988e0f686dea8a4f17ebb
---
M stp/STP_Tests_M3UA.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/83/43383/1

diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index f1ce309..f740f15 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -776,7 +776,7 @@
 /* Test if traffic is routed from idx_tx/pc_tx to idx_rx/pc_rx */
 friend function f_test_traffic(integer idx_tx, template (omit) OCT4 
rctx_sender, OCT4 pc_tx,
                                integer idx_rx, template (omit) OCT4 
rctx_receiver, OCT4 pc_rx,
-                               OCT1 si := '23'O, OCT1 ni := mp_ni, OCT1 mp := 
'00'O, OCT1 sls := '00'O)
+                               OCT1 si := '02'O, OCT1 ni := mp_ni, OCT1 mp := 
'00'O, OCT1 sls := '00'O)
 runs on RAW_M3UA_CT {
        var octetstring data := f_rnd_octstring_rnd_len(100);
        f_M3UA_send(idx_tx, ts_M3UA_DATA(rctx_sender,

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43383?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1d0553b0ed57b9283dd988e0f686dea8a4f17ebb
Gerrit-Change-Number: 43383
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to