aboutsummaryrefslogtreecommitdiffstats
path: root/include/grgsm
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-08-10 00:01:26 +0700
committerPiotr Krysik <ptrkrysik@gmail.com>2018-09-13 15:35:44 +0200
commitf94a51b64d8822c80d5cf45997434e98a97b5739 (patch)
tree34a90f1f21d4e73f42c4c00c378c1e9d9fb7e5d8 /include/grgsm
parent053f9e53f0f30b652f3d48310c05efecde0a88ea (diff)
gsm_trx_burst_if: allow to customize the bind address
Pleviously remote address for DATA interface was also used as the bind address, what is definitely wrong. Let's change the API a bit in order to allow one to specify a custom bind address. Change-Id: I6e5f7b7119ac454217b8dd04f9ee0dd3b23972b6
Diffstat (limited to 'include/grgsm')
-rw-r--r--include/grgsm/misc_utils/udp_socket.h3
-rw-r--r--include/grgsm/trx/trx_burst_if.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/grgsm/misc_utils/udp_socket.h b/include/grgsm/misc_utils/udp_socket.h
index 15b2c66..d1ceb9f 100644
--- a/include/grgsm/misc_utils/udp_socket.h
+++ b/include/grgsm/misc_utils/udp_socket.h
@@ -53,8 +53,9 @@ namespace gr {
public:
udp_socket(
- const std::string &remote_addr,
+ const std::string &bind_addr,
const std::string &src_port,
+ const std::string &remote_addr,
const std::string &dst_port,
size_t mtu);
~udp_socket();
diff --git a/include/grgsm/trx/trx_burst_if.h b/include/grgsm/trx/trx_burst_if.h
index 0e7a35a..9277dc5 100644
--- a/include/grgsm/trx/trx_burst_if.h
+++ b/include/grgsm/trx/trx_burst_if.h
@@ -48,6 +48,7 @@ namespace gr {
* creating new instances.
*/
static sptr make(
+ const std::string &bind_addr,
const std::string &remote_addr,
const std::string &base_port);
};