From f94a51b64d8822c80d5cf45997434e98a97b5739 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 10 Aug 2018 00:01:26 +0700 Subject: 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 --- include/grgsm/misc_utils/udp_socket.h | 3 ++- include/grgsm/trx/trx_burst_if.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/grgsm') 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); }; -- cgit v1.2.3