Change in osmo-bts[master]: osmo-bts-trx: set don't-fragment flag on all TRXD 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:18:22 UTC 2021


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


Change subject: osmo-bts-trx: set don't-fragment flag on all TRXD packets
......................................................................

osmo-bts-trx: set don't-fragment flag on all TRXD packets

Change-Id: I25415b76b69ccf43f83ddfb0e7dd1e330fb23aa7
Related: SYS#4895, OS#4941, OS#4006
---
M src/osmo-bts-trx/trx_if.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/14/23814/1

diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 2e97319..4a690dd 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -72,6 +72,10 @@
 	if (rc < 0)
 		return rc;
 
+	/* Force the don't-fragment flag to be set on all outgoing packets */
+	int val = IP_PMTUDISC_DO;
+	setsockopt(ofd->fd, IPPROTO_IP, IP_MTU_DISCOVER, &val, sizeof(val));
+
 	return 0;
 }
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I25415b76b69ccf43f83ddfb0e7dd1e330fb23aa7
Gerrit-Change-Number: 23814
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/75a56039/attachment.htm>


More information about the gerrit-log mailing list