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.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/23815 )
Change subject: trx_toolkit/data_if.py: set the don't-fragment flag
......................................................................
trx_toolkit/data_if.py: set the don't-fragment flag
Change-Id: If49dfe5d2298b3c2f91f790a3a94ead1a103a0cc
Related: SYS#4895, OS#4941, OS#4006
---
M src/target/trx_toolkit/data_if.py
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/15/23815/1
diff --git a/src/target/trx_toolkit/data_if.py b/src/target/trx_toolkit/data_if.py
index 07f3d32..3f6965e 100644
--- a/src/target/trx_toolkit/data_if.py
+++ b/src/target/trx_toolkit/data_if.py
@@ -22,6 +22,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import logging as log
+import socket
from udp_link import UDPLink
from data_msg import *
@@ -32,6 +33,13 @@
self._hdr_ver = 0x00
UDPLink.__init__(self, *udp_link_args)
+
+ # WTF: socket.{IP_MTU_DISCOVER,IP_PMTUDISC_DONT} are not defined?!?
+ IP_MTU_DISCOVER = 10
+ IP_PMTUDISC_DO = 2
+ # Force the don't-fragment flag to be set on all outgoing packets
+ self.sock.setsockopt(socket.IPPROTO_IP, IP_MTU_DISCOVER, IP_PMTUDISC_DO)
+
log.debug("Init TRXD interface (%s)" % self.desc_link())
def set_hdr_ver(self, ver):
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/23815
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: If49dfe5d2298b3c2f91f790a3a94ead1a103a0cc
Gerrit-Change-Number: 23815
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/6435f26d/attachment.htm>