Change in osmo-trx[master]: TRXD: set don't-fragment flag on all outgoing packets

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
Tue Apr 20 19:17:42 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/23813 )


Change subject: TRXD: set don't-fragment flag on all outgoing packets
......................................................................

TRXD: set don't-fragment flag on all outgoing packets

Change-Id: I0891f1d80e4c7c92a58b34ac986ef5334e8c78e2
Related: SYS#4895, OS#4941, OS#4006
---
M Transceiver52M/Transceiver.cpp
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/13/23813/1

diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 91f06ec..20714cf 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -255,6 +255,12 @@
     if (mDataSockets[i] < 0)
       return false;
 
+    /* Force the don't-fragment flag to be set on all outgoing packets */
+    int val = IP_PMTUDISC_DO;
+    rv = setsockopt(mDataSockets[i], IPPROTO_IP, IP_MTU_DISCOVER, &val, sizeof(val));
+    if (rv != 0)
+      LOG(FATAL) << "Failed to set the don't-fragment flag for TRXD socket";
+
     if (i && filler == FILLER_DUMMY)
       filler = FILLER_ZERO;
 

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

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I0891f1d80e4c7c92a58b34ac986ef5334e8c78e2
Gerrit-Change-Number: 23813
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/20210420/e55d51c9/attachment.htm>


More information about the gerrit-log mailing list