diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-08-10 00:01:26 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-08-10 16:38:59 +0700 |
commit | 5394c6012d05d6565d1374e1c7a67b3f5f2decc6 (patch) | |
tree | 1371ea16a810e05d204a2dc64c02ac79ebabae98 /include | |
parent | 0e246372bc692f2f12198b61010c4ea156056428 (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')
-rw-r--r-- | include/grgsm/misc_utils/udp_socket.h | 3 | ||||
-rw-r--r-- | include/grgsm/trx/trx_burst_if.h | 1 |
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); }; |