pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/28168 )


Change subject: ggsn: TC_act_deact_retrans_duplicate: Fix case where initial 
seq_nr is 65535
......................................................................

ggsn: TC_act_deact_retrans_duplicate: Fix case where initial seq_nr is 65535

Change-Id: I2a7a399cf962311aaf7270260cb2e4e00e5a676a
---
M ggsn_tests/GGSN_Tests.ttcn
1 file changed, 5 insertions(+), 1 deletion(-)



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

diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index 3993ad6..358d756 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -2096,7 +2096,11 @@
                /* g_c_seq_nr was increased during f_pdp_ctx_del(), we want a
                   duplicate. If it was not a duplicate, osmo-ggsn would answer
                   with a failure since that PDP ctx was already deleted. */
-               g_c_seq_nr := g_c_seq_nr - 1;
+               if (g_c_seq_nr == 0) {
+                       g_c_seq_nr := 65535;
+               } else {
+                       g_c_seq_nr := g_c_seq_nr - 1;
+               }
                f_pdp_ctx_del(ctx, '1'B, expect_diameter := false);

                /* Now send a new pdp ctx del (increased seqnum). It should 
fail with cause "non-existent": */

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

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

Reply via email to