Change in libosmocore[master]: lapdm_pad_msgb(): cosmetic: use GSM_MACBLOCK_PADDING

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

fixeria gerrit-no-reply at lists.osmocom.org
Thu Aug 27 12:42:35 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/19843 )


Change subject: lapdm_pad_msgb(): cosmetic: use GSM_MACBLOCK_PADDING
......................................................................

lapdm_pad_msgb(): cosmetic: use GSM_MACBLOCK_PADDING

Change-Id: Ic2ff931ea4272903c440c7c5ea996dd84c2e470b
---
M src/gsm/lapdm.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/43/19843/1

diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index e5fbaf0..21227e3 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -336,8 +336,8 @@
 		return;
 	}
 
-	data = msgb_put(msg, pad_len);
-	memset(data, 0x2B, pad_len);
+	data = msgb_put(msg, pad_len); /* TODO: random padding */
+	memset(data, GSM_MACBLOCK_PADDING, pad_len);
 }
 
 /* input function that L2 calls when sending messages up to L3 */

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ic2ff931ea4272903c440c7c5ea996dd84c2e470b
Gerrit-Change-Number: 19843
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200827/1485447d/attachment.htm>


More information about the gerrit-log mailing list