<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-trx/+/23813">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">TRXD: set don't-fragment flag on all outgoing packets<br><br>Change-Id: I0891f1d80e4c7c92a58b34ac986ef5334e8c78e2<br>Related: SYS#4895, OS#4941, OS#4006<br>---<br>M Transceiver52M/Transceiver.cpp<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/13/23813/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp</span><br><span>index 91f06ec..20714cf 100644</span><br><span>--- a/Transceiver52M/Transceiver.cpp</span><br><span>+++ b/Transceiver52M/Transceiver.cpp</span><br><span>@@ -255,6 +255,12 @@</span><br><span>     if (mDataSockets[i] < 0)</span><br><span>       return false;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+    /* Force the don't-fragment flag to be set on all outgoing packets */</span><br><span style="color: hsl(120, 100%, 40%);">+    int val = IP_PMTUDISC_DO;</span><br><span style="color: hsl(120, 100%, 40%);">+    rv = setsockopt(mDataSockets[i], IPPROTO_IP, IP_MTU_DISCOVER, &val, sizeof(val));</span><br><span style="color: hsl(120, 100%, 40%);">+    if (rv != 0)</span><br><span style="color: hsl(120, 100%, 40%);">+      LOG(FATAL) << "Failed to set the don't-fragment flag for TRXD socket";</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>     if (i && filler == FILLER_DUMMY)</span><br><span>       filler = FILLER_ZERO;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-trx/+/23813">change 23813</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-trx/+/23813"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0891f1d80e4c7c92a58b34ac986ef5334e8c78e2 </div>
<div style="display:none"> Gerrit-Change-Number: 23813 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>