aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysmo_l1_if.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-02-22 11:39:30 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-02-22 14:00:17 +0100
commit2efdf69734dc8d7f0953caad1563552f53c47b06 (patch)
treeebae76ede625d173c373946b83dc02214a851246 /src/sysmo_l1_if.c
parent9d5580b6dd8069dbb5cdfa00b65f73978f580bcc (diff)
Introduce --gsmtap-ip/-i option
This option allows user to use custom IP address instead of default "localhost". Correspondingly gsmtap init moved from sysmoBTS-specific code up to "bts" struct level. This way it can be easier reused by other implementations. The lack of regressions was verified by checking following command on sysmoBTS: "./osmo-pcu -c osmo-pcu.cfg -r 1 -i 192.168.10.1" where 192.168.10.1 is the host which was running wireshark and netcat: "nc -u -l 192.168.10.1 -p 4729" to accept gsmtap flow.
Diffstat (limited to 'src/sysmo_l1_if.c')
-rw-r--r--src/sysmo_l1_if.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sysmo_l1_if.c b/src/sysmo_l1_if.c
index 85727861..c7c54dd9 100644
--- a/src/sysmo_l1_if.c
+++ b/src/sysmo_l1_if.c
@@ -357,7 +357,7 @@ int l1if_pdch_req(void *obj, uint8_t ts, int is_ptcch, uint32_t fn,
return 0;
}
-void *l1if_open_pdch(void *priv, uint32_t hlayer1)
+void *l1if_open_pdch(void *priv, uint32_t hlayer1, struct gsmtap_inst *gsmtap)
{
struct femtol1_hdl *fl1h;
int rc;
@@ -378,9 +378,7 @@ void *l1if_open_pdch(void *priv, uint32_t hlayer1)
return NULL;
}
- fl1h->gsmtap = gsmtap_source_init("localhost", GSMTAP_UDP_PORT, 1);
- if (fl1h->gsmtap)
- gsmtap_source_add_sink(fl1h->gsmtap);
+ fl1h->gsmtap = gsmtap;
return fl1h;
}