diff options
author | Max <msuraev@sysmocom.de> | 2023-02-18 23:45:42 +0300 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-02-20 11:03:05 +0000 |
commit | a747d36166a6a89900570d86e758311e30fc6071 (patch) | |
tree | e360a5206e38c10e2d7d6406b6fc6520ced50557 /include/osmocom/core | |
parent | 310b107284f62a37cf10725d834ac66cc059a4c1 (diff) |
GSMTAP: add gsmtap_source_init*2()
Those allow selecting source host:port for UDP socket sending GSMTAP data.
It's handy when you have several GSMTAP sources operating simultaneously.
Change-Id: I51b3604ba79e42c474aa17007e7e308a12afcea8
Diffstat (limited to 'include/osmocom/core')
-rw-r--r-- | include/osmocom/core/gsmtap_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/core/gsmtap_util.h b/include/osmocom/core/gsmtap_util.h index 33ade95c..9137c1d2 100644 --- a/include/osmocom/core/gsmtap_util.h +++ b/include/osmocom/core/gsmtap_util.h @@ -39,11 +39,15 @@ static inline int gsmtap_inst_fd(struct gsmtap_inst *gti) } int gsmtap_source_init_fd(const char *host, uint16_t port); +int gsmtap_source_init_fd2(const char *local_host, uint16_t local_port, const char *rem_host, uint16_t rem_port); int gsmtap_source_add_sink_fd(int gsmtap_fd); struct gsmtap_inst *gsmtap_source_init(const char *host, uint16_t port, int ofd_wq_mode); +struct gsmtap_inst *gsmtap_source_init2(const char *local_host, uint16_t local_port, + const char *rem_host, uint16_t rem_port, int ofd_wq_mode); + void gsmtap_source_free(struct gsmtap_inst *gti); int gsmtap_source_add_sink(struct gsmtap_inst *gti); |