0003-batman-adv-decrease-maximum-fragment-size.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Thu, 6 Aug 2015 21:29:47 +0200
  3. Subject: batman-adv: decrease maximum fragment size
  4. diff --git a/batman-adv/patches/1002-batman-adv-decrease-maximum-fragment-size.patch b/batman-adv/patches/1002-batman-adv-decrease-maximum-fragment-size.patch
  5. new file mode 100644
  6. index 0000000..16cb023
  7. --- /dev/null
  8. +++ b/batman-adv/patches/1002-batman-adv-decrease-maximum-fragment-size.patch
  9. @@ -0,0 +1,23 @@
  10. +From 02c861b6aa334dff1ce8031ffc328924c78beec1 Mon Sep 17 00:00:00 2001
  11. +Message-Id: <02c861b6aa334dff1ce8031ffc328924c78beec1.1438892883.git.mschiffer@universe-factory.net>
  12. +In-Reply-To: <a20c87779270f509227feecc4487e36a7d850c0f.1438892883.git.mschiffer@universe-factory.net>
  13. +References: <a20c87779270f509227feecc4487e36a7d850c0f.1438892883.git.mschiffer@universe-factory.net>
  14. +From: Matthias Schiffer <mschiffer@universe-factory.net>
  15. +Date: Thu, 6 Aug 2015 22:27:01 +0200
  16. +Subject: [PATCH 2/2] batman-adv: decrease maximum fragment size
  17. +
  18. +---
  19. + net/batman-adv/main.h | 2 +-
  20. + 1 file changed, 1 insertion(+), 1 deletion(-)
  21. +
  22. +--- a/net/batman-adv/main.h
  23. ++++ b/net/batman-adv/main.h
  24. +@@ -148,7 +148,7 @@ enum batadv_uev_type {
  25. + /* Maximum number of fragments for one packet */
  26. + #define BATADV_FRAG_MAX_FRAGMENTS 16
  27. + /* Maxumim size of each fragment */
  28. +-#define BATADV_FRAG_MAX_FRAG_SIZE 1400
  29. ++#define BATADV_FRAG_MAX_FRAG_SIZE 1280
  30. + /* Time to keep fragments while waiting for rest of the fragments */
  31. + #define BATADV_FRAG_TIMEOUT 10000
  32. +