Change in osmo-ttcn3-hacks[master]: WIP: LOCAL HACKS

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Nov 23 21:07:55 UTC 2020


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


Change subject: WIP: LOCAL HACKS
......................................................................

WIP: LOCAL HACKS

Change-Id: I74f5631ce5f5c06b3eb0ad2d23db37365cd37c78
---
M fr-net/FRNET_Tests.cfg
M fr/FR_Tests.cfg
M gbproxy/osmo-gbproxy.cfg
M library/BSSGP_Emulation.ttcnpp
M library/Osmocom_Gb_Types.ttcn
5 files changed, 179 insertions(+), 9 deletions(-)



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

diff --git a/fr-net/FRNET_Tests.cfg b/fr-net/FRNET_Tests.cfg
index dedd828..a90914b 100644
--- a/fr-net/FRNET_Tests.cfg
+++ b/fr-net/FRNET_Tests.cfg
@@ -7,6 +7,90 @@
 [LOGGING]
 
 [MODULE_PARAMETERS]
+FRNET_Tests.mp_num_bvc := 50;
+FRNET_Tests.mp_nsconfig := {
+	{
+		nsei := 1,
+		role_sgsn := true,
+		handle_sns := false,
+		nsvc := {
+			{
+				provider := {
+					fr := {
+						netdev := "hdlcnet1",
+						dlci := 16
+					}
+				},
+				nsvci := 1
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlcnet2",
+						dlci := 17
+					}
+				},
+				nsvci := 2
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlcnet3",
+						dlci := 18
+					}
+				},
+				nsvci := 3
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlcnet4",
+						dlci := 19
+					}
+				},
+				nsvci := 4
+			}
+		}
+	}, {
+		nsei := 2,
+		role_sgsn := true,
+		handle_sns := false,
+		nsvc := {
+			{
+				provider := {
+					fr := {
+						netdev := "hdlcnet5",
+						dlci := 24
+					}
+				},
+				nsvci := 9
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlcnet6",
+						dlci := 25
+					}
+				},
+				nsvci := 10
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlcnet7",
+						dlci := 26
+					}
+				},
+				nsvci := 11
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlcnet8",
+						dlci := 27
+					}
+				},
+				nsvci := 12
+			}
+		}
+	}
+};
+
+
 
 [TESTPORT_PARAMETERS]
 
diff --git a/fr/FR_Tests.cfg b/fr/FR_Tests.cfg
index 9a97c3a..e9d0701 100644
--- a/fr/FR_Tests.cfg
+++ b/fr/FR_Tests.cfg
@@ -7,6 +7,89 @@
 [LOGGING]
 
 [MODULE_PARAMETERS]
+FR_Tests.mp_num_bvc := 20;
+FR_Tests.mp_num_ue_in_bvc := 5;
+FR_Tests.mp_nsconfig := {
+	{
+		nsei := 1,
+		role_sgsn := false,
+		handle_sns := false,
+		nsvc := {
+			{
+				provider := {
+					fr := {
+						netdev := "hdlc1",
+						dlci := 16
+					}
+				},
+				nsvci := 1
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlc2",
+						dlci := 17
+					}
+				},
+				nsvci := 2
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlc3",
+						dlci := 18
+					}
+				},
+				nsvci := 3
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlc4",
+						dlci := 19
+					}
+				},
+				nsvci := 4
+			}
+		}
+	}, {
+		nsei := 2,
+		role_sgsn := false,
+		handle_sns := false,
+		nsvc := {
+			{
+				provider := {
+					fr := {
+						netdev := "hdlc5",
+						dlci := 24
+					}
+				},
+				nsvci := 9
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlc6",
+						dlci := 25
+					}
+				},
+				nsvci := 10
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlc7",
+						dlci := 26
+					}
+				},
+				nsvci := 11
+			}, {
+				provider := {
+					fr := {
+						netdev := "hdlc8",
+						dlci := 27
+					}
+				},
+				nsvci := 12
+			}
+		}
+	}
+};
 
 [TESTPORT_PARAMETERS]
 
diff --git a/gbproxy/osmo-gbproxy.cfg b/gbproxy/osmo-gbproxy.cfg
index 350ddf5..2ee92a5 100644
--- a/gbproxy/osmo-gbproxy.cfg
+++ b/gbproxy/osmo-gbproxy.cfg
@@ -2,17 +2,17 @@
 ! Osmocom Gb Proxy (0.9.0.404-6463) configuration saved from vty
 !!
 !
+log stderr
+ logging level lns debug
 line vty
  no login
 !
-gbproxy
- sgsn nsei 101
 ns
- nse 101 nsvci 101
- nse 101 remote-role sgsn
- nse 101 encapsulation udp
- nse 101 remote-ip 127.0.0.1
- nse 101 remote-port 7777
+ !nse 101 nsvci 101
+ nse 101 nsvci 101 remote-role sgsn
+ nse 101 nsvci 101 encapsulation udp
+ nse 101 nsvci 101 remote-ip 127.0.0.1
+ nse 101 nsvci 101 remote-port 7777
  timer tns-block 3
  timer tns-block-retries 3
  timer tns-reset 3
@@ -23,3 +23,6 @@
  encapsulation udp local-ip 127.0.0.1
  encapsulation udp local-port 23000
  encapsulation framerelay-gre enabled 0
+
+gbproxy
+ sgsn nsei 101
diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp
index 898b38d..c45fd75 100644
--- a/library/BSSGP_Emulation.ttcnpp
+++ b/library/BSSGP_Emulation.ttcnpp
@@ -242,7 +242,7 @@
 	/* port to per-BVC components */
 	port BSSGP_BVC_SP_PT BVC;
 	/* per-BVC state table */
-	var BvcEntity BvcTable[16];
+	var BvcEntity BvcTable[64];
 };
 
 /* one element in the per-BVC state table */
diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index ee03a8a..0be29b1 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -854,7 +854,7 @@
 	}
 
 	template LLC_PDU ts_BSSGP_LLC_PDU(octetstring pdu) := {
-		iEI := '0D'O,
+		iEI := '0E'O,
 		ext := '1'B,
 		lengthIndicator := f_bssgp_length_ind(lengthof(pdu)),
 		lLC_PDU := pdu

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21307
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: I74f5631ce5f5c06b3eb0ad2d23db37365cd37c78
Gerrit-Change-Number: 21307
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201123/2c150cfa/attachment.htm>


More information about the gerrit-log mailing list