Change in libosmocore[master]: gprs_ns2: fix check of MTU changes for frame relay

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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Fri Jul 2 14:25:06 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/24825 )


Change subject: gprs_ns2: fix check of MTU changes for frame relay
......................................................................

gprs_ns2: fix check of MTU changes for frame relay

The frame relay need 2 byte for data packets.

Related: OS#5192
Change-Id: I02d4e81896a473aeb79ea2f2983e12324244048f
---
M src/gb/gprs_ns2_fr.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/25/24825/1

diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c
index 3113b00..e5d97d6 100644
--- a/src/gb/gprs_ns2_fr.c
+++ b/src/gb/gprs_ns2_fr.c
@@ -601,7 +601,7 @@
 	struct priv_bind *bpriv = bind->priv;
 	struct gprs_ns2_nse *nse;
 
-	if (mtu == bind->mtu)
+	if (mtu - 2 == bind->mtu)
 		return;
 
 	LOGBIND(bind, LOGL_INFO, "MTU changed from %d to %d.\n",

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I02d4e81896a473aeb79ea2f2983e12324244048f
Gerrit-Change-Number: 24825
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210702/5bc8f6d9/attachment.htm>


More information about the gerrit-log mailing list