aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-virtual/main.c
diff options
context:
space:
mode:
authorSebastian Stumpf <sebastian.stumpf87@googlemail.com>2017-01-08 16:31:50 +0100
committerSebastian Stumpf <sebastian.stumpf87@googlemail.com>2017-01-08 16:31:50 +0100
commita8b7c8aa05bf7292c6ed289f22f961d9ec397fc1 (patch)
tree6b1d32a5de81a1c731d96e0c299343cdf384771b /src/osmo-bts-virtual/main.c
parent17eb1a45b446d631449143a52b503978e6661637 (diff)
VIRT-PHY: Added functionality to cooperate with osmocom-bb virt-phy.
This patch improves the virtual physical layer designed to replace the air interface. The purpose is to get rid of the hardware requirements and be able to start testing and implementing layer 2 communication functionality on one machine. Multicast sockets are used to enable bidirectional communication between the BTS and the MS process. The GSMTAP protocol designed for wireshark capturing is used to encapsulate the payload on the virtual physical layer. * Working mcast socket communication and extraction of its functionality. * Fixed OML and RSL startup sequences. * Icludes tests for mcast socket and virtual UM. * Ecapsulation and parsing methods to and from GSMTAP messages. * Basic handlers for file descriptor callbacks from incoming mcast messages. * Multiplexing to different channels based on GSMTAP header channel type.
Diffstat (limited to 'src/osmo-bts-virtual/main.c')
-rw-r--r--src/osmo-bts-virtual/main.c27
1 files changed, 22 insertions, 5 deletions
diff --git a/src/osmo-bts-virtual/main.c b/src/osmo-bts-virtual/main.c
index a27ee453..d4900d61 100644
--- a/src/osmo-bts-virtual/main.c
+++ b/src/osmo-bts-virtual/main.c
@@ -76,12 +76,10 @@ int bts_model_handle_options(int argc, char **argv)
while (1) {
int option_idx = 0, c;
static const struct option long_options[] = {
- /* specific to this hardware */
- { 0, 0, 0, 0 }
- };
+ /* specific to this hardware */
+ {0, 0, 0, 0}};
- c = getopt_long(argc, argv, "",
- long_options, &option_idx);
+ c = getopt_long(argc, argv, "", long_options, &option_idx);
if (c == -1)
break;
@@ -101,6 +99,25 @@ void bts_model_abis_close(struct gsm_bts *bts)
bts_shutdown(bts, "Abis close");
}
+void bts_model_phy_link_set_defaults(struct phy_link *plink)
+{
+}
+
+void bts_model_phy_instance_set_defaults(struct phy_instance *pinst)
+{
+}
+
+int bts_model_ts_disconnect(struct gsm_bts_trx_ts *ts)
+{
+ return -ENOTSUP;
+}
+
+int bts_model_ts_connect(struct gsm_bts_trx_ts *ts,
+ enum gsm_phys_chan_config as_pchan)
+{
+ return -ENOTSUP;
+}
+
int main(int argc, char **argv)
{
return bts_main(argc, argv);