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/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19421 )
Change subject: WIP: PCU socket: test NSVC IPv4/IPv6
......................................................................
WIP: PCU socket: test NSVC IPv4/IPv6
Change-Id: Iae854875a45dbc29cd46a267ccaf60f1f2ac2973
---
M bts/BTS_Tests.ttcn
1 file changed, 38 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/21/19421/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 1c8127b..9038924 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -35,6 +35,7 @@
import from L1CTL_Types all;
import from LAPDm_Types all;
import from LAPDm_RAW_PT all;
+import from Native_Functions all;
import from Osmocom_CTRL_Adapter all;
import from Osmocom_CTRL_Functions all;
@@ -5434,6 +5435,41 @@
setverdict(pass);
}
+testcase TC_pcu_socket_nsvc_ipv4() runs on test_CT {
+ f_init_vty_bsc();
+ f_vty_config2(BSCVTY, {"network", "bts 0"} , "gprs nsvc 0 remote ip 127.127.127.127");
+ f_vty_transceive(BSCVTY, "drop bts connection 0 oml");
+
+ f_init();
+
+ if (g_pcu_last_info.u.info_ind.remote_protocol[0] != PCU_IF_ADRESS_IPV4) {
+ setverdict(fail, "Expected address family = IPV4");
+ }
+
+ if (substr(g_pcu_last_info.u.info_ind.remote_ip[0], 0, 4) != f_inet_addr("127.127.127.127")) {
+ setverdict(fail, "Invalid remote_ip!");
+ }
+
+ setverdict(pass);
+}
+
+testcase TC_pcu_socket_nsvc_ipv6() runs on test_CT {
+ f_init_vty_bsc();
+ f_vty_config2(BSCVTY, {"network", "bts 0"} , "gprs nsvc 0 remote ip fd00::ca:ff:ee");
+
+ f_init();
+
+ if (g_pcu_last_info.u.info_ind.remote_protocol[0] != PCU_IF_ADRESS_IPV6) {
+ setverdict(fail, "Expected address family = IPV6");
+ }
+
+ if (g_pcu_last_info.u.info_ind.remote_ip[0] != f_inet6_addr("fd00::ca:ff:ee")) {
+ setverdict(fail, "Invalid remote_ip!");
+ }
+
+ setverdict(pass);
+}
+
/***********************************************************************
* Osmocom Style Dynamic Timeslot Support
***********************************************************************/
@@ -6831,6 +6867,8 @@
execute( TC_pcu_socket_disconnect_nosi3gprs() );
execute( TC_pcu_socket_disconnect_nosi4gprs() );
execute( TC_pcu_socket_verify_info_ind() );
+ execute( TC_pcu_socket_nsvc_ipv4() );
+ execute( TC_pcu_socket_nsvc_ipv6() );
execute( TC_dyn_osmo_pdch_act_deact() );
execute( TC_dyn_osmo_pdch_double_act() );
execute( TC_dyn_ipa_pdch_act_deact() );
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19421
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: Iae854875a45dbc29cd46a267ccaf60f1f2ac2973
Gerrit-Change-Number: 19421
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200728/b6b8062a/attachment.htm>