Change in osmo-mgw[master]: mgcp_network.c: Set proper CRC Header for ACK Initialization

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/.

pespin gerrit-no-reply at lists.osmocom.org
Thu Dec 16 15:11:46 UTC 2021


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


Change subject: mgcp_network.c: Set proper CRC Header for ACK Initialization
......................................................................

mgcp_network.c: Set proper CRC Header for ACK Initialization

Discovered while debugging wireshark CRC calculation and implementing
new IuUP code in libosmocore.

Change-Id: Ic8350d1f9a9e5dcefeb787462d267bfac08d778f
---
M src/libosmo-mgcp/mgcp_network.c
1 file changed, 1 insertion(+), 0 deletions(-)



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

diff --git a/src/libosmo-mgcp/mgcp_network.c b/src/libosmo-mgcp/mgcp_network.c
index 2d275ec..264e263 100644
--- a/src/libosmo-mgcp/mgcp_network.c
+++ b/src/libosmo-mgcp/mgcp_network.c
@@ -1225,6 +1225,7 @@
 				if (data[0] == 0xe0) {
 					data[0] = 0xe4;
 					data[1] = 0x00;
+					data[2] = 0x09; /* Patch CRC Header to adapt to new header above */
 					rtp_state->patched_first_rtp_payload = true;
 					LOGPENDP(endp, DRTP, LOGL_DEBUG,
 						 "Patching over first two bytes"

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

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Ic8350d1f9a9e5dcefeb787462d267bfac08d778f
Gerrit-Change-Number: 26598
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211216/43d96933/attachment.htm>


More information about the gerrit-log mailing list