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

1234567891011121314151617181920212223242526272829303132333435363738
  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..56311ea
  7. --- /dev/null
  8. +++ b/batman-adv/patches/1002-batman-adv-decrease-maximum-fragment-size.patch
  9. @@ -0,0 +1,28 @@
  10. +From 3de3f885d441f9059a4d4c88504845851667a68c Mon Sep 17 00:00:00 2001
  11. +Message-Id: <3de3f885d441f9059a4d4c88504845851667a68c.1454958586.git.mschiffer@universe-factory.net>
  12. +In-Reply-To: <bb9feeed3b49a55034cce90be996b11cd095b1ce.1454958586.git.mschiffer@universe-factory.net>
  13. +References: <bb9feeed3b49a55034cce90be996b11cd095b1ce.1454958586.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. +diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
  23. +index 34f56ef..81a7cc2 100644
  24. +--- a/net/batman-adv/main.h
  25. ++++ b/net/batman-adv/main.h
  26. +@@ -147,7 +147,7 @@ enum batadv_uev_type {
  27. + /* Maximum number of fragments for one packet */
  28. + #define BATADV_FRAG_MAX_FRAGMENTS 16
  29. + /* Maxumim size of each fragment */
  30. +-#define BATADV_FRAG_MAX_FRAG_SIZE 1400
  31. ++#define BATADV_FRAG_MAX_FRAG_SIZE 1280
  32. + /* Time to keep fragments while waiting for rest of the fragments */
  33. + #define BATADV_FRAG_TIMEOUT 10000
  34. +
  35. +--
  36. +2.7.0
  37. +