This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9359 ) Change subject: mgcp_network: do not log destination invalid ip/port as error ...................................................................... mgcp_network: do not log destination invalid ip/port as error It is legal to create connection without setting the destination ip and port (this usually done later through MDCX). However, if some other connection tries to deliver an RTP packet through a a half open connection, then the fact that no destination ip is set is logged as error even if it is a pretty normal situation. - Check if destination ip and port are set to zero. If yes, we assume that the destination connection details are intentionally not set yet. Only when one value is set and the other one not, we log an error. Otherweise we log a message to debug. Change-Id: If96e5a60b8ab92259d3bddaa143121893bb6c525 Related OS#3104 --- M src/libosmo-mgcp/mgcp_network.c 1 file changed, 9 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified Harald Welte: Looks good to me, approved diff --git a/src/libosmo-mgcp/mgcp_network.c b/src/libosmo-mgcp/mgcp_network.c index 4144382..2da37b4 100644 --- a/src/libosmo-mgcp/mgcp_network.c +++ b/src/libosmo-mgcp/mgcp_network.c @@ -867,6 +867,15 @@ struct mgcp_endpoint *endp; endp = conn->conn->endp; + /* Note: it is legal to create a connection but never setting a port + * and IP-address for outgoing data. */ + if (strcmp(inet_ntoa(conn->end.addr), "0.0.0.0") == 0 && conn->end.rtp_port == 0) { + LOGP(DRTP, LOGL_DEBUG, + "endpoint:0x%x destination IP-address and rtp port is (not yet) known\n", + ENDPOINT_NUMBER(endp)); + return -1; + } + if (strcmp(inet_ntoa(conn->end.addr), "0.0.0.0") == 0) { LOGP(DRTP, LOGL_ERROR, "endpoint:0x%x destination IP-address is invalid\n", -- To view, visit https://gerrit.osmocom.org/9359 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: If96e5a60b8ab92259d3bddaa143121893bb6c525 Gerrit-Change-Number: 9359 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180529/709a6712/attachment.htm>