Attention is currently required from: falconia.
pespin has posted comments on this change by falconia. (
https://gerrit.osmocom.org/c/libosmo-netif/+/39281?usp=email )
Change subject: bring twrtp into libosmo-netif
......................................................................
Patch Set 7:
(9 comments)
File include/osmocom/netif/twrtp.h:
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/24aabbf7_88ec686… :
PS1, Line 26: struct osmo_twrtp_stats {
Please see how I handle it in Patchset 7.
Done
File src/twrtp.c:
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/e32d73c2_19c0a0e… :
PS6, Line 231: endp->iofd_rtp = osmo_iofd_setup(endp, -1, NULL,
Please see how I handle it in Patchset 7.
Done
File src/twrtp.c:
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/6e241ec1_b6a1b9c… :
PS7, Line 304: close(rtcp_fd);
if (rtcp_fd >= 0)
close(rtcp_fd);
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/c2e0c004_3ba7c52… :
PS7, Line 313: close(rtcp_fd);
if (rtcp_fd >= 0)
close(rtcp_fd);
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/15f382b7_7a580ec… :
PS7, Line 322: close(rtcp_fd);
if (rtcp_fd >= 0)
close(rtcp_fd);
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/5c828ce9_226dadf… :
PS7, Line 333: close(rtcp_fd);
if (rtcp_fd >= 0)
close(rtcp_fd);
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/a7083f49_6118359… :
PS7, Line 343: close(rtcp_fd);
if (rtcp_fd >= 0)
close(rtcp_fd);
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/3f71ef68_97e0184… :
PS7, Line 348: return 0;
You could add return goto tags here for failing cases to make closing/freeing more
organized and clean.
File src/twrtp_base.c:
https://gerrit.osmocom.org/c/libosmo-netif/+/39281/comment/7201a664_e91a75d… :
PS1, Line 132: * another variant of this API with that alternative behavior.
Please see how I handle it in Patchset 7.
Done
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-netif/+/39281?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ib63215aaf13ef8ab8f2e0c8d310164cd5c8824eb
Gerrit-Change-Number: 39281
Gerrit-PatchSet: 7
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: falconia <falcon(a)freecalypso.org>
Gerrit-Comment-Date: Mon, 01 Sep 2025 08:45:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: falconia <falcon(a)freecalypso.org>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>