diff options
author | Max <msuraev@sysmocom.de> | 2016-02-22 11:39:30 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-02-22 14:00:17 +0100 |
commit | 2efdf69734dc8d7f0953caad1563552f53c47b06 (patch) | |
tree | ebae76ede625d173c373946b83dc02214a851246 /src/bts.h | |
parent | 9d5580b6dd8069dbb5cdfa00b65f73978f580bcc (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/bts.h')
-rw-r--r-- | src/bts.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,7 @@ extern "C" { #include <osmocom/core/rate_ctr.h> #include <osmocom/core/stat_item.h> #include <osmocom/core/timer.h> +#include <osmocom/core/gsmtap.h> } #include "poll_controller.h" @@ -172,6 +173,7 @@ struct gprs_rlcmac_bts { uint8_t n3101; uint8_t n3103; uint8_t n3105; + struct gsmtap_inst *gsmtap; struct gprs_rlcmac_trx trx[8]; int (*alloc_algorithm)(struct gprs_rlcmac_bts *bts, struct GprsMs *ms, |