pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/30212 )


Change subject: osmux: Use new osmux_xfrm_input API to set name on each link
......................................................................

osmux: Use new osmux_xfrm_input API to set name on each link

Depends: libosmo-netif.git Change-Id 8bb688e4827f345416c2a4526ced956a07fcc60b
Change-Id: Id5b7d497be4b3405403d30e40e1a52f13101cf5f
---
M src/libosmo-mgcp/mgcp_osmux.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/12/30212/1

diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c
index fcff841..50a5b98 100644
--- a/src/libosmo-mgcp/mgcp_osmux.c
+++ b/src/libosmo-mgcp/mgcp_osmux.c
@@ -155,6 +155,7 @@
 {
        struct osmux_handle *h;
        const struct mgcp_config *cfg = trunk->cfg;
+       char name[128] = "to_";

        h = talloc_zero(trunk, struct osmux_handle);
        if (!h)
@@ -167,6 +168,9 @@
                talloc_free(h);
                return NULL;
        }
+
+       osmo_sockaddr_to_str_buf(name + 3, sizeof(name) - 3, rem_addr);
+       osmux_xfrm_input_set_name(h->in, name);
        /* sequence number to start OSMUX message from */
        osmux_xfrm_input_set_initial_seqnum(h->in, 0);
        osmux_xfrm_input_set_batch_factor(h->in, cfg->osmux.batch_factor);

--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/30212
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Id5b7d497be4b3405403d30e40e1a52f13101cf5f
Gerrit-Change-Number: 30212
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to