pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/16011 )
Change subject: ss7: Set ASP default remote addr to 127.0.0.1 if none set in VTY ...................................................................... ss7: Set ASP default remote addr to 127.0.0.1 if none set in VTY Similar to what we do with local address. Should fix creating the stream when no remote address is provided on an ASP configured through VTY. Related: OS#4260 Change-Id: I33672e76a51a5d5a483906749d30e4c4e08b66ce --- M src/osmo_ss7_vty.c 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/11/16011/1 diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c index 35640df..1a246db 100644 --- a/src/osmo_ss7_vty.c +++ b/src/osmo_ss7_vty.c @@ -1775,6 +1775,11 @@ asp->cfg.local.host[0] = NULL; asp->cfg.local.host_cnt = 1; } + /* If no remote addr was set */ + if (!asp->cfg.remote.host_cnt) { + asp->cfg.remote.host[0] = "127.0.0.1"; + asp->cfg.remote.host_cnt = 1; + } osmo_ss7_asp_restart(asp); vty->node = L_CS7_NODE; vty->index = asp->inst; -- To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/16011 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-sccp Gerrit-Branch: master Gerrit-Change-Id: I33672e76a51a5d5a483906749d30e4c4e08b66ce Gerrit-Change-Number: 16011 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pes...@sysmocom.de> Gerrit-MessageType: newchange